https://crossbrowsertesting.com/blog/test-automation/selenium-vs-cypress/

Selenium에서 Cypress로 갈아탄 후기

Selenium과 Cypress의 차이점

김지환
김지환
Jan 13 · 10 min read

Cypress : JavaScript Only/Selenium : Python, Java, C#…etc

https://www.tutorialrepublic.com/javascript-tutorial/
https://www.nascenia.com/necessary-factors-to-make-agile-software-development-a-success/

실제 개발에 사용해본 후기

Sample code — from google to gmail
//Google to gmail test code
describe('google -> Gamil introducing', function () {
it('should move to gmail url', function () {
cy.visit('https://www.google.com')
cy.contains('Gmail').click()
cy.url().should('eq', 'https://www.google.com/intl/ko/gmail/about/#')
})
})
//Sample code
describe('cart count test', function () {
it('should add 3 items and then click buy', function () {
cy.visit(target)
cy.contains('item add').click()
const cart_count = cy.contains('cart_count')
if(cart_count.innerText == '3 개 있습니다.'){
cy.contains('buy').click()
}
})
})
//Sample code
describe('cart count test', function () {
it('should add 3 items and then click buy', function () {
cy.visit(target)
cy.contains('item add').click()
cy.contains('cart_count')
.then(cart_count ->{
if(cart_count.innerText == '3 개 있습니다.'){
cy.contains('buy').click()
}
}
})
})

결론


HardBoiledSmith Stories

DevOps & QA 자동화 전문 스타트업 HBSmith의 Blog - https://hbsmith.io

    김지환

    Written by

    김지환

    HardBoiledSmith Stories

    DevOps & QA 자동화 전문 스타트업 HBSmith의 Blog - https://hbsmith.io