Skip to content

binhdao112/CyPress_Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published