🥝
Cypress Notlari
  • 🥑1. Cypress – Giriş
  • 📐2. Cypress Kurulum
  • 🥳3. Test Runner
  • 🔥4. Cypress ile İlk Test
  • ⚔️5. Cypress Destekleyen Tarayıcılar
  • 🦇6. Cypress Basit Komutlar
  • 👾7. Cypress Değişkenler (Variables)
  • 😎8. Cypress Aliases
  • 👻9. Cypress Locators
  • ☝️10. Cypress Assertions(iddia)
  • 📔11. Cypress Metin Doğrulaması
  • 🧞12. Cypress Eşzamansız Davranış(Asynchronous Behavior)
  • 🦊13. Cypress XHR ile çalışma
  • ✅14. Cypress Checkbox
  • 🍪15. Cypress Cookie İşlemleri
  • ☘️16. Cypress Get ve Post İşlemleri
  • 🦆17. Api Response Data Type Kontrolu
  • ☔18. Chai Json Schema
  • 🥳19. Chai ile Schema Oluşturma Örnekleri
  • 🇲🇬20. Cypress Fixtures
  • 🆓21. Cypress — Dashboard Hackliyoruz
  • 🎥22. Cypress Screenshotlar ve Videolar
  • 😋23. Cypress Debugging
  • 🛃24. Cypress Custom Commands
  • 📖25. Cypress Environment Variables
  • 🪝26. Cypress Hooks
  • 🎑27. Cypress Reports
  • ⛳28.Best Practices
  • Kaynakça
Powered by GitBook
On this page

20. Cypress Fixtures

Fixtures klasörü altında example.json dosyası oluşturuyoruz.

{
 "email": "abctest@gmail.com",
 "password": "Test@123"
}

İçeriğini giriyoruz.

Implementation of Actual Test

describe('Tutorialspoint Test', function () {
    //part of before hook
    before(function(){
        //access fixture data
        cy.fixture('example').then((signInData) => {
            this.signInData = signInData
        })
    })
    
    // test case
    it('Test Case1', function (){
        // launch URL
        cy.visit("https://www.linkedin.com/")
        
        //data driven from fixture
        cy.get('#session_key ')
            .type(this.signInData.email)
            
        cy.get('# session_password')
            .type(this.signInData.password)
    });
 });
Previous19. Chai ile Schema Oluşturma ÖrnekleriNext21. Cypress — Dashboard Hackliyoruz

Last updated 2 years ago

🇲🇬