How to parameterize and configure your custom Playwright fixtures

preview_player
Показать описание
Join Stefan Judis in this Playwright tutorial, where he explains how to make your custom Playwright fixtures configurable using "option fixtures". Stefan briefly explains the fixture concept but then focuses on creating an option fixture configurable on a global, project, and spec file basis.

0:00 Intro
0:52 The problem — custom fixtures are not configurable
1:59 Custom fixtures explained
2:46 Provide configuration values via environment variables
3:07 Add a custom fixture option
4:13 Override the defined fixture option
5:53 Summary
6:18 Outro

#checkly #playwright #syntheticmonitoring
Рекомендации по теме
Комментарии
Автор

This needs to be better outlined in the documentation... I've been trying to work around not having this for the last 11 months. THANK YOU!

DJ_Locks
Автор

Greetings from Ukraine
I have 7+ years of C# experience in UI, API testing.
But now the market has changed and I have to learn new languages ​​and technologies. Thank you for the videos.

yurademchenko
Автор

Awesome video! Glad that great question was asked! Always something new and cool to learn from you. What I would really like to know is how to run tests as a Playwright job on Jenkins, where more than once PC is running Playwright tests. I got it to run on a single PC, the same PC that is hosting Jenkins. But how do I tell it to run the same job (or multiple jobs?) concurrently on remote PCs? Maybe you could do a series on Jenkins, covering all the basics leading up to this? If not, just one video for this scenario? Your videos Rock!

VAudioVideo
Автор

any example how to use it to
mantain browser session between tests?
i have the playwright.config.ts -> with order config,
But unfortunately i m loosing the context and my browser gets closed,

ppp.
Автор

test.use only affects a test.describe or whole test file, what I can do if I want only affect on one test from the test file?

YenovSegal
Автор

Can you build an example to show how multiple test data fixture files could be used along with page fixtures in a test?

ICIC-clqk
Автор

Can u guys make playwright-bdd library videos ??

AKHILDABRAL
Автор

Which method is best for you in this user credentials scenario? .env or parameterized fixtures?

rafaeldanelogomez