Playwright Tutorial | Pass Test data as Fixtures

  Рет қаралды 1,422

WishInfinite

WishInfinite

Күн бұрын

Пікірлер: 12
@WishInfinite
@WishInfinite 6 ай бұрын
Playwright with TypeScript / JavaScript Series - kzbin.info/aero/PL83cimSRP5ZmwhC6u255huRwSi9tlP-nc Read data from Json file Video - kzbin.info/www/bejne/bonOZWuYpL6IgNU Read data from CSV file Video - kzbin.info/www/bejne/bonOZWuYpL6IgNU Understanding of Fixtures Video - kzbin.info/www/bejne/mISmmpSNht1gjdE POM with Fixtures Video - kzbin.info/www/bejne/p6qmgaeYet-nrNk Fixtures over hooks Video - kzbin.info/www/bejne/p3_VpZJogZKrpLc OrangeHRM Practice Website - demoqa.com/automation-practice-form
@WishInfinite
@WishInfinite 6 ай бұрын
@prabhubabu9709 Thank you for your wonderful feedback! I'm glad you find the videos helpful and easy to follow. I appreciate your interest in the code. While I haven't uploaded the code to Git just yet, I'll definitely consider it and share you the link. In the meantime, if you have any specific questions about the code or need further clarification, feel free to ask here. I'm here to help! Happy learning!
@DiRo0566
@DiRo0566 4 ай бұрын
Well explained!
@WishInfinite
@WishInfinite 4 ай бұрын
Thank you 🙂
@notmyname2027
@notmyname2027 17 күн бұрын
I see that you have pom fixtures as well, how would you import and use both pom and test data fixtures in the same test
@WishInfinite
@WishInfinite 16 күн бұрын
@notmyname2027 , This is good question, I have noted your scenario and will cover it with My Framework Videos, For now if you want to do it then You can do it by chaining your import of test. Follow below steps - 1 - Let's say 1st you are importing test as baseTest from @playwright/test in TestDataFixture.ts file like below - (and from same file you will export test with test data) - So No change here. import { test as baseTest } from "@playwright/test"; 2 - Now in POMFixture.ts file, rather then importing test as baseTest from @playwright/test module you will import it from TestDataFixture.ts and now here in POMFixture.ts file also you would be able to use test data fixture, (and from same file you will export test with POM fixture) import {test as baseTest} from "../fixtures/TestDataFixture". 3 - Now if you will import test from POMFixture in your any of the test script file, then with this test you would be able to use both POM fixtures as well as data fixture, because in base test we included test data fixture first and then in same test we included POM fixture. hope this will help :)
@CodeFreak1981
@CodeFreak1981 6 ай бұрын
Very hard to see the video with the low quality. Can you upload higher quality?
@WishInfinite
@WishInfinite 6 ай бұрын
Hello @CodeFreak1981, It seems you're encountering video quality issues. I see that the video was uploaded in 4K. KZbin might still be processing higher resolutions. Please check the video settings again later to see if 4K playback is available. In the meantime, you can try navigating to the Settings menu, click on Quality, and choose from options such as 4K, HD, 720p, or any other suitable setting available.
@sathisheverseeu8519
@sathisheverseeu8519 Ай бұрын
Is it possible to run single step with multiple set of data like dataset in specflow
@WishInfinite
@WishInfinite Ай бұрын
I would suggest then use JSON or CSV to pass data in such cases as I have explained in kzbin.info/www/bejne/bonOZWuYpL6IgNU, kzbin.info/www/bejne/jKPYqJ2lm5eHj9k . Still you want to try it with fixture then you will have to pass data in array from fixture and then you will have to iterate inside test only as you would not be able to receive fixture details outside test block so it would not be possible to use for loop outside test. and in above case you would be executing same code / step with different data in single test and it will not get considered as separate test. Hope this helps.
@vishalsinghgurjar2373
@vishalsinghgurjar2373 6 ай бұрын
You explained very well Thanks for these videos.
@WishInfinite
@WishInfinite 6 ай бұрын
Glad you like them! 😊
Playwright at Scale
52:45
Checkly
Рет қаралды 1,8 М.
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 12 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 37 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 26 МЛН
Why "page.goto()" is slowing down your tests
8:55
Checkly
Рет қаралды 4,4 М.
int() Di Python
6:48
DreaViAm
Рет қаралды 15
Use Fixtures in Playwright to manage your page objects
10:13
robustQA - Abhishek Patel
Рет қаралды 1,4 М.
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33