Summary
Keywords
Full Transcript
▬ ASK RAGHAV ► https://bit.ly/2CoJGWf ▬ QUIZ ► https://forms.gle/8vbYLzrneJXjukjVA 00:00 *Intro* 01:05 *What is Trace Viewer* Trace Viewer is a GUI tool that helps viewing the executed test along with snapshots, timeline and other details (traces) 03:14 *How to use Trace Viewer* Step 1 - Open config file and set trace: 'on-first-retry' It means - Collect trace when retrying the failed test for the 1st time only Step 2 - Save and Run a test to fail Step 3 - Check trace.zip file created under test-results folder Step 4 - View trace - *npx playwright show-trace trace.zip* 14:28 *Screenshot moment* 14:34 *Trace Viewer Options* 'on-first-retry' - Record a trace only when retrying a test for the first time. 'off' - Do not record a trace. 'on' - Record a trace for each test. (not recommended as it's performance heavy) 'retain-on-failure' - Record a trace for each test, but remove it from successful test runs To set trace on from command *npx playwright test --trace on* 15:32 *Screenshot moment* 15:56 *Different ways to view trace* Using command - npx playwright show-trace trace.zip Using HTML Report Using utility - https://trace.playwright.dev/ 17:12 *How to set Tracing programmatically* test.only('test demo', async ({ page, context }) => { await context.tracing.start({snapshots: true, screenshots: true}) // test code await context.tracing.stop({path: 'test-trace.zip'}); }); let context let page test.beforeAll(async ({ browser }) => { context = await browser.newContext() await context.tracing.start({ screenshots: true, snapshots: true }) page = await context.newPage() }) test.afterAll(async () => { await context.tracing.stop({ path: 'test-trace.zip' }); }) 38:24 *Outro* #playwright #automation #testing ▬ ALL FREE COURSES ► https://automationstepbystep.com/ ▬▬ CI CD DEVOPS ▬▬ JENKINS BEGINNER ► https://bit.ly/2MIn8EC JENKINS TIPS & TRICKS ►https://bit.ly/2LRt6xC JENKINSFILE ► https://bit.ly/3JSMSZ7 DOCKER ► https://bit.ly/2MInnzx KUBERNETES ► http://bit.ly/2MJIlMK ▬▬ UI TESTING ▬▬ SELENIUM BEGINNERS ► https://bit.ly/2MGRS8K SELENIUM JAVA FRAMEWORK ► https://bit.ly/2N9xvR6 SELENIUM PYTHON ► https://bit.ly/2oyMp5x SELENIUM TIPS ► https://bit.ly/2owxc50 SELENIUM BUILDER ► https://bit.ly/2MKNtlq SELENIUM 4 ► https://bit.ly/3AiJOlP KATALON STUDIO ► https://bit.ly/2wARFdi ROBOT FRAMEWORK with RIDE ► https://bit.ly/2Px6Ue9 ROBOT FRAMEWORK with Eclipse► http://bit.ly/2N8DZxb PROTRACTOR ► http://bit.ly/2KtqVkU ACCELQ ► https://bit.ly/3PlsAsh TEST PROJECT ► http://bit.ly/2DRNJYE CUCUMBER BDD ► https://bit.ly/3Cnno4z CYPRESS ► https://bit.ly/3PpEukM XPATH & WEB LOCATORS ► https://bit.ly/3PpEvoQ ▬▬ API TESTING ▬▬ WEB SERVICES (API) ► https://bit.ly/2MGafL7 SOAPUI ► https://bit.ly/2MGahmd POSTMAN ► https://bit.ly/2wz8LrW POSTMAN 2022 ► https://bit.ly/3JWm4qX JMETER API TESTING ► https://bit.ly/3AgVPar GENERAL ► https://bit.ly/2PYdwmV KATALON STUDIO API ► https://bit.ly/2BwuCTN REST ASSURED ► https://bit.ly/3zUdhRD KARATE API ► https://bit.ly/3w3H5Ku API MOCKING ► https://bit.ly/3bYPsjS JMETER BEGINNER ► https://bit.ly/2oBbtIU Visual Studio Code ► https://bit.ly/2V15yvt JAVA BEGINNERS ► https://bit.ly/2PVUcXs GROOVY ► https://bit.ly/2FvWV5C JAVASCRIPT ► http://bit.ly/2KJDZ8o TYPESCRIPT ► https://bit.ly/3dvJBmz PYTHON ► http://bit.ly/2Z4iRye MAVEN ► https://bit.ly/2NJdDRS GRADLE ► http://bit.ly/30l3h1B GIT & GITHUB ►https://bit.ly/2Q1pagY GITLAB ► http://bit.ly/2kQPGyQ BROWSERSTACK ► https://bit.ly/3w7kxZn SAUCELABS ► https://bit.ly/3w7kAo1 LAMBDATEST ► https://bit.ly/3C6TBwM JSON ► https://bit.ly/3w450tq XML ► https://bit.ly/3PqRneH VIRTUALIZATION ON WINDOWS ► http://bit.ly/2SItIL9 MOCK INTERVIEWS ► https://bit.ly/3QGwwVJ QnA FRIDAY ► https://bit.ly/2NgwGpw SUNDAY SPECIAL ► https://bit.ly/2wB23BO STORIES BY RAGHAV ► https://automationstepbystep.com/stories/ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you You can support my mission for education by sharing this knowledge and helping as many people as you can If my work has helped you, consider helping any animal near you, in any way you can NEVER STOP LEARNING Raghav Pal
