Playwright Beginner Tutorial 6 | How to use Trace Viewer
Automation Step by Step
@raghavpalAbout
Simple Basic Beginners Step-by-Step tutorials ❤️ I create videos on Automation, Testing, DevOps, CI and related tools, technologies and platform Raghav is a teacher and founder of AutomationStepByStep.com He was an Automation Architect and has led multiple teams of Automation and DevOps Engineers. For over a decade, Raghav witnessed, worked, and delivered multiple Automation Testing Projects and worked with some awesome people in this industry ► https://automationstepbystep.com/ Some topics covered: - Jenkins - JMeter - Selenium - Appium - Cypress - Playwright - Katalon Studio - API Testing - Postman - Docker - Kubernetes - Other DevOps topics Words from Raghav We often need someone to hold our hand and help us take the first few steps before we learn to walk and run. I am on a mission to spread education and make it available to anyone willing to learn Never Stop Learning Raghav All education here is FREE FOR ALL, FOREVER Share with as many people as you can in your lifetime
Video Description
▬ 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
Upgrade Your Gear Hauling
AI-recommended products based on this video

COTUBLR 31 Inch Computer Desk, Home Office Desk, Simple Modern Small Desk for Bedroom, Writing Desk with Storage Bag, Study Table for Students, Grey Oak

Pool Toy Storage Net - Heavy Duty Mesh Organizer Bag 59-Inch, Waterproof Poolside Storage for Floats, Inflatable Rafts, Rings - Portable Outdoor Gear for Beach, Boat, Camping, Backyard, Gym, Deck
![Tongate for Samsung Galaxy S25 Ultra Case, [with Privacy Screen Protector & Slide Camera Cover] [2 Front Frames] Full-Body Heavy Duty S25 Ultra Case with Stand & Belt Clip Holster, Black Privacy Film](https://m.media-amazon.com/images/I/819Zy2jAKGL._AC_UL960_FMwebp_QL65_.jpg)
Tongate for Samsung Galaxy S25 Ultra Case, [with Privacy Screen Protector & Slide Camera Cover] [2 Front Frames] Full-Body Heavy Duty S25 Ultra Case with Stand & Belt Clip Holster, Black Privacy Film

Vihibii for Samsung Galaxy S25 Ultra Case with Card Holder (4 Cards), RFID Blocking & Slide Camera Cover, Military Grade Drop Protection, Rugged Hard Back & Silicone Edge Wallet Case, 6.9" 2025, Black
![Vihibii for Samsung Galaxy S25+ Plus Case Wallet with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover, Military Grade Drop Protection, Rugged Back & Silicone Edge Case, 6.7" 2025, Rose Gold](https://m.media-amazon.com/images/I/71tUjh+3eGL._AC_UL960_FMwebp_QL65_.jpg)
Vihibii for Samsung Galaxy S25+ Plus Case Wallet with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover, Military Grade Drop Protection, Rugged Back & Silicone Edge Case, 6.7" 2025, Rose Gold
![Vihibii for Samsung Galaxy S25+ Plus Wallet Case with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover & Raised Edges Protect Screen, Shockproof Rugged Case for S25+ Plus 6.7" 2025, Black](https://m.media-amazon.com/images/I/71YSDNV+PHL._AC_UL960_FMwebp_QL65_.jpg)
Vihibii for Samsung Galaxy S25+ Plus Wallet Case with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover & Raised Edges Protect Screen, Shockproof Rugged Case for S25+ Plus 6.7" 2025, Black

Water Heater Cleaning and Flushing Tool, Sediment Buster Hot Water Tank Flush Kit, Breaks Up Stubborn Clogs, Remove Sediment & Dirt Easily, Friendly Plumbing Maintenance Kit for Electric & Gas Heaters

SISUPASSIE 20FT Reach Gutter Cleaning Tools from Ground, Telescopic Rain Gutter Cleaners Tool with Quick Connect Adapter and Bendable Wand for 2nd Story House

Pedicure Foot File - Stainless Steel Foot File | Toe Gaps Cleaning Brush | Long Handled Toe Cleaning Brush | Callus Remover Feet Scrubber | Crevice Care Pedicure Tool For Wet And Dry Feet




















