Рет қаралды 33,610
▬ ASK RAGHAV ► bit.ly/2CoJGWf
▬ QUIZ ► 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 - 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 ► automationstepbystep.com/
▬▬ CI CD DEVOPS ▬▬
JENKINS BEGINNER ► bit.ly/2MIn8EC
JENKINS TIPS & TRICKS ►bit.ly/2LRt6xC
JENKINSFILE ► bit.ly/3JSMSZ7
DOCKER ► bit.ly/2MInnzx
KUBERNETES ► bit.ly/2MJIlMK
▬▬ UI TESTING ▬▬
SELENIUM BEGINNERS ► bit.ly/2MGRS8K
SELENIUM JAVA FRAMEWORK ► bit.ly/2N9xvR6
SELENIUM PYTHON ► bit.ly/2oyMp5x
SELENIUM TIPS ► bit.ly/2owxc50
SELENIUM BUILDER ► bit.ly/2MKNtlq
SELENIUM 4 ► bit.ly/3AiJOlP
KATALON STUDIO ► bit.ly/2wARFdi
ROBOT FRAMEWORK with RIDE ► bit.ly/2Px6Ue9
ROBOT FRAMEWORK with Eclipse► bit.ly/2N8DZxb
PROTRACTOR ► bit.ly/2KtqVkU
ACCELQ ► bit.ly/3PlsAsh
TEST PROJECT ► bit.ly/2DRNJYE
CUCUMBER BDD ► bit.ly/3Cnno4z
CYPRESS ► bit.ly/3PpEukM
XPATH & WEB LOCATORS ► bit.ly/3PpEvoQ
▬▬ API TESTING ▬▬
WEB SERVICES (API) ► bit.ly/2MGafL7
SOAPUI ► bit.ly/2MGahmd
POSTMAN ► bit.ly/2wz8LrW
POSTMAN 2022 ► bit.ly/3JWm4qX
JMETER API TESTING ► bit.ly/3AgVPar
GENERAL ► bit.ly/2PYdwmV
KATALON STUDIO API ► bit.ly/2BwuCTN
REST ASSURED ► bit.ly/3zUdhRD
KARATE API ► bit.ly/3w3H5Ku
API MOCKING ► bit.ly/3bYPsjS
JMETER BEGINNER ► bit.ly/2oBbtIU
Visual Studio Code ► bit.ly/2V15yvt
JAVA BEGINNERS ► bit.ly/2PVUcXs
GROOVY ► bit.ly/2FvWV5C
JAVASCRIPT ► bit.ly/2KJDZ8o
TYPESCRIPT ► bit.ly/3dvJBmz
PYTHON ► bit.ly/2Z4iRye
MAVEN ► bit.ly/2NJdDRS
GRADLE ► bit.ly/30l3h1B
GIT & GITHUB ►bit.ly/2Q1pagY
GITLAB ► bit.ly/2kQPGyQ
BROWSERSTACK ► bit.ly/3w7kxZn
SAUCELABS ► bit.ly/3w7kAo1
LAMBDATEST ► bit.ly/3C6TBwM
JSON ► bit.ly/3w450tq
XML ► bit.ly/3PqRneH
VIRTUALIZATION ON WINDOWS ► bit.ly/2SItIL9
MOCK INTERVIEWS ► bit.ly/3QGwwVJ
QnA FRIDAY ► bit.ly/2NgwGpw
SUNDAY SPECIAL ► bit.ly/2wB23BO
STORIES BY RAGHAV ► automationstepbystep.com/stor...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
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