Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions

Jump to navigation Jump to search
m
Line 59: Line 59:
npx playwright show-report</nowiki>
npx playwright show-report</nowiki>
: => you can now open the trace from the report (which looks similar to the ui tool above)
: => you can now open the trace from the report (which looks similar to the ui tool above)
: trace can be generated from Ci/CD pipeline too, and then you can view the results saved in a zip file with a trace viewer
: trace can be generated from CI/CD pipeline too, and then you can view the results saved in a zip file with a trace viewer


* Test Execution with debug <nowiki>
* Test Execution with debug <nowiki>
npx playwright test --project=chromium --debug</nowiki>
npx playwright test --project=chromium --debug</nowiki>
: this opens the PLaywright inspector showing the code, debugging controls, and console information
: this opens the Playwright inspector showing the code, debugging controls, and console information
: and the browser window
: and the browser window


Navigation menu