Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 2.22 KB

README.md

File metadata and controls

42 lines (29 loc) · 2.22 KB

Test booking flight and login with CyPress

Setup Enviroment:

  • Install NodeJS in NodeJS Home

  • In Terminal, use npm install to setup Cypress and dependencies

Open and Start test with Cypress:

  • In terminal, use npm run test or npx cypress open to start CYPRESS (:pray::pray:The first time start Cypess can error "Cypress verification timed out.",:fist_right::fist_right: try again, from second time Cypress open normal)

  • In UI Cypress, choose [Running intergration tests] to start all test or Choose file .js in TestCase to start only test are selected.

image

  • In terminal, user npx cypress run to run all test with handle mode

  • You can change brower in handle mode by using npx cypress run --browser [brower name][with brower name is name brower(chrome, edge, firefox) installed in your system] or using npm run cypress:run:[brower name]

    Ex: npx cypress run --brower chrome or npm run cypress:run:chrome

    You can see them in Launching Browsers.

HTML Report

  • In terminal, use npx cypress run to run all test case and create html report
  • You can see report by open file index in cypress/reports/
  • In UI in HTML report Cypress: image

you can see and apply HTML Report in HTMP Report CyPress.

Allure Reports

  • In Terminal, use npm run cy:run or npx cypress run --env allure=true to run all test and create Allure-results
  • In terminal, use npm run posttest or npm run allure:report to generate Allure-reports
  • In terminal, use npm run allure:clear to clear Allure exist in your System
  • UI of Allure report: image you can see and apply Allure Report in Cypress in Cypress Allure Report.