filmov
tv
Playwright Beginner Tutorial 6 | How to use Trace Viewer

Показать описание
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
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 HTML Report
17:12 *How to set Tracing programmatically*
// test code
});
let context
let page
})
})
38:24 *Outro*
#playwright #automation #testing
▬▬ CI CD DEVOPS ▬▬
▬▬ UI TESTING ▬▬
▬▬ API TESTING ▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
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
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
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 HTML Report
17:12 *How to set Tracing programmatically*
// test code
});
let context
let page
})
})
38:24 *Outro*
#playwright #automation #testing
▬▬ CI CD DEVOPS ▬▬
▬▬ UI TESTING ▬▬
▬▬ API TESTING ▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
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
Комментарии