Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions
Jump to navigation
Jump to search
Udemy Playwright: Web Automation Testing From Zero to Hero (view source)
Revision as of 19:16, 20 May 2024
, 20 May→Ways to Run & Debug
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 | : 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 | : this opens the Playwright inspector showing the code, debugging controls, and console information | ||
: and the browser window | : and the browser window | ||