Playwright Fixtures | Playwright Tutorial - part 34

preview_player
Показать описание
Playwright Test is based on the concept of the test fixtures. Test fixtures are used to establish an environment for each test, giving the test everything it needs and nothing else. Test fixtures are isolated between tests, which gives Playwright Test following benefits:
Playwright Test runs tests in parallel by default, making your test suite much faster.
Playwright Test can efficiently retry the flaky failures, instead of re-running the whole suite.
You can group tests based on their meaning, instead of their common setup

Source code:

Chapters:
0:00 Playwright Fixture
11:00 TestInfo
14:30 recap
--------------------------Thank you---------------------------

Thanks for watching, if you like the video, give it a thumbs up 👆.
Sharing is caring, kindly share the video with your friends and colleagues.
Don't forget to subscribe and hit the bell 🔔 notification.
--------------------------------SOCIAL--------------------------------

Join our WhatsApp group.

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

ji.you are the really hard and smartworker..i seen around 40 videos of you making...their was a lot of things you explained neatly keep it up and good job koushik bro.you took a right topic at the right time.microsoft gives a other wonderful framework..we expect more video for advanced topics...send mail with attached report for stackholder for sanity or regress test using palywright is the final touch gives your video more meaning ful..thanks bro

karthic
Автор

Around the 12:30/13:00 minute mark, believe the thing tripping you up why you don't see the "is it passed" + info.status. Think you want assert.soft(). I'm sure you know this now, others just getting into PW, making this comment more for them. I think 2 years ago is when the .soft() came in for exceptions and when you did the video you knew of it, just not so familiar as i bet it is now for you... 😎 Koushik, always found you're videos a great resource, never have done much with fixtures, didn't know a better place to learn them from :)

dand
Автор

The best framework. Playwright.
Thanks

maopuerta
Автор

Can we use fixture and beforeEach hooks together?
e.g fixture to create page instances and before hook to register a user

DipeshPatel-vqck
Автор

Is there any video on how to automate the pagination using the looping statements in playwright with Typescript?

johncyvarghese
Автор

Why are we not compiling typescript into js?

faizaaslam
Автор

Hi Kaushik, am getting this error Playwright Test did not expect test() to be called here.
Most common reasons include:
- You are calling test() in a configuration file.
- You are calling test() in a file that is imported by the configuration file.
- You have two different versions of @playwright/test. This usually happens

amruthakumari
Автор

Could you please explain about what exactly it is and how does it work

type koushik = {hey: string}

If possible could you please create a separate video for us

tanujlakshakar
Автор

Hi Kaushik,
First of all, Thank you for great videos on playwright.Could you please make some videos on Cucumber playwright

damayantiphand
Автор

Sorry, it's a nonsense example. Why you not make an example to click a cookie banner away?

andreaskarz