- This is manual testcases :
-
This repository is my automation part I work with your URL. In this repo, I use :
- Page Object Model concept to work with 3 pages : pages folder
- Homepage
- New product page
- Product Detail page
- Using Awesome reporter to collect report json file and merge it to 1 report file. After that, convert it to HTML file
- Using Github Actions to trigger pipelines and export Report everytime automation testing is done. You can visit this URL to see the report after running is finished on GITHUB Actions. REPORT LINK
- Page Object Model concept to work with 3 pages : pages folder
###How to run on your local machine
- Install node (above 13)
- Install
Yarn
- Clone this repository
cd finalAssignmentCypress
&&yarn
- Run command
yarn cypress verify
- After Cypress library is verified, please run
yarn open
if you want to open Cypress and run each spec file. If you want to run cypress with headless mode, please useyarn cy:run
- (NOTE!!!!) After Cypress with headless mode is finish, If you want to open the HTML report, please use this command
yarn gen:report
. After that , please open it with path./cypress/reports/html/report.html
- Everytime trigger Cypress with headless mode, please use this command first
yarn clean:win
if you useWindows
oryarn clean:unix
if you useLINUX
orMACOS
###How to trigger Cypress on GITHUB actions
- Go to this repository
- Select
Actions
tab - Select
Github Actions Demo
option at the left - Select
Run workflow
dropdown and inputYourname
- Click
Run workflow
and wait a bit - You will see your runner is appeared in workflow runs list
- Click that runner to see whole process of runner
- After the runner is finish, you can go to this URL to see the report is generated. REPORT LINK
If you have a question, please send me via my email : sin.sin27100@gmail.com Thank you very much Have a nice day !