Hi Koushik, have a question on the combo of serial mode + retry failed test method. Scenario Description : A home policy /quote creation involves multiple pages, each page depends on the successful completion of the previous page. Data is filled on each page and the process continues until the last page. After reaching the last page the policy gets created. The automation approach that I need: 1. Treat each page as an individual test 2. Test execution depends on the pass Status of the previous test. 3. If any test fails subsequently should be skipped. 4. Playwright should retry only the failed test for the retry count I provide, shouldn't attempt retrying any previously passed test(s). 5. If the previously failed test passes during retrial executes subsequent tests. Please help, I have tried several combinations & approaches but no success yet! Thanks in advance.
@letcode
3 ай бұрын
Hi, As there are data dependencies on each page of the previous page, it is not possible. It should be one test for verbose you can have each page as a step.
@naveenbv1838
3 жыл бұрын
Hi Koushik👋 Thank you so much for your efforts in making the things so simple and understandable easily. I hope everything is fine, bcs I miss something in the video and that's ur smile 🙂 Thanks for the detailed videos and you are the one helping me a lot always through your teachings🙏
@letcode
3 жыл бұрын
All is well 😁. Thank you 😊
@tusharraut7793
3 жыл бұрын
Hi Koushik Always wait for ur videos😍
@letcode
3 жыл бұрын
🤩 thank you 😊
@keshavvkshirsagar7335
3 жыл бұрын
I want add custom Information inside allure report like browser name, browser versions name , os version at runtime. How do it do.
@AliKhan-wm5lt
Жыл бұрын
Hi Koushik, We're using playwright with cucumber instead of the playwright test runner. How can we achieve this retry in that case? Could you pls suggest?
@letcode
Жыл бұрын
I'm not sure about it. I haven't explored the cucumber yet.
@alexanderkomanov4151
3 жыл бұрын
Thanks a lot, Koushik!!! It is awesome! Your videos actually help! I'm writing a project with Playwright - and your videos just help me a lot!!! Are you planning a course for UDEMY maybe? If yes - I'm the first to buy!!!!
@letcode
3 жыл бұрын
Thank you 😊. No plans for Udemy, here itself everyone getting free resources. Why are you preferring Udemy? Just curious to know.
@alexanderkomanov4151
3 жыл бұрын
@@letcode I prefer the quality of amazing product! I actually mean that if you have plan for an Udemy course - I am ready to buy your content! Because it’s amazing and useful!
@letcode
3 жыл бұрын
Got it, thank you ☺️
@user-lj5vh9bs4e
2 жыл бұрын
Hi Koushik Thanks for the video, really helpfull, and rare for this stack (TypeScript + Playwright) Question: Is there a way to take screenshot with the address line? Because in example that you are showing in the video we know that the problem is in the address, but screenshot is not showing the addres line. Same with the video. Thanks
@letcode
2 жыл бұрын
Hi, all the automation tool can capture only the DOM part, address cannot be captured. May be third party api/lib can be used.
@rajath7180
3 ай бұрын
Hi kaushik thankyou , I can see whenever I trying screenshot and video previous folder is getting replaced by new one in ur case you are getting 2 separate folders under test result can you guide pls :(
@letcode
3 ай бұрын
Hi, the default behaviour is an existing folder will be deleted and a new folder will be created.
@nguyennguyen4619
2 жыл бұрын
Hi Koushik, How I attach screenshot in cucumber html reporter using playwright ?
@letcode
2 жыл бұрын
In general, we can attach report using hooks
@bongiss
2 жыл бұрын
how do you attach the screenshots in azure pipeline?
@letcode
2 жыл бұрын
Not sure as of now, I have to check.
@anupkapale7953
3 жыл бұрын
Hey, Koushik, Thank you for the awesome videos, helping a lot to understand Playwright in deep, Is any plan for Data Driven tutorials in upcoming videos?
@letcode
3 жыл бұрын
Thank you 😊 We can use json or excel to read data and pass it to test script. I already have a video to read data from JSON. kzitem.info/news/bejne/kWaurYOmp4Grl6g
@keshavvkshirsagar7335
3 жыл бұрын
How to add custom information like browser name ,browser version , Os name , OS version in jest-html-playwright report at run time.
@letcode
3 жыл бұрын
We have option to do that, Check this link www.npmjs.com/package/jest-allure
@gokilaraj2203
3 жыл бұрын
Bro , BDD cucumber class adunga
@sqalearnings4356
3 жыл бұрын
Thank you for the video. I have a query. If I want to run Playwright test cases in Docker, Ubuntu container and don't want to use Playwright default browsers, can it be possible?
@letcode
3 жыл бұрын
I'm not sure bro, but I think it's possible, we can use the channel option in playwright.
@uditagrawal6603
3 жыл бұрын
Hi Koushik Thanks for creating such awesome playlist, trying to adopt playwright in my organization. Need your help with the issue I am facing. Issue: In my test case scenario test case failure is expected on the new page created using popup event on the first page.But by observation I found out that screenshot is only taken till the navigation from first page and no screenshot taken for the failure on the second page. I was expecting the screenshot to be for the failure on the second page. Have you encountered such issue, or any solution for that would be highly appreciated. thank you!!
@letcode
3 жыл бұрын
Hi, screenshot will be taken on the active page. If you have to take screenshot on that another page then you have to switch to that and bring it to front. You can refer my window handling video I have explained it there.
@uditagrawal6603
3 жыл бұрын
@@letcode So problem is screenshot on the active tab is not working only, instead taking screenshot from non active tab.
@uditagrawal6603
3 жыл бұрын
Though explicitly using the screenshot call is working.
@ernestchakhoyan8643
3 жыл бұрын
Hi, first of all thank you for your videos, awesome job! I have a question: How can we take a screenshot on failing tests using Jest, not playwright test runner?
@letcode
3 жыл бұрын
Thank you, there is no direct way to achieve it. Here is a reference, u can give it a try. gremlich.dev/2021/01/playwright-screenshots-on-jest-test-failure/
@ernestchakhoyan8643
3 жыл бұрын
@@letcode cool thanks, i was thinking also using some helper functions using try catch, but i was thinking that it can be done by some configuration :) but thank you anyway
@letcode
3 жыл бұрын
Yeah no direct implementation. Welcome 🤗
@keshavvkshirsagar7335
3 жыл бұрын
HI, I want take screen shot on test failure and add that on jest-html-report in playwright.
@letcode
3 жыл бұрын
Hi, this feature is available only in playwright test runner. As per my understanding we don't have this feature in jest runner.
@keshavvkshirsagar7335
3 жыл бұрын
@@letcode how to do that using playwright test runner?
@letcode
3 жыл бұрын
Unfortunately, playwright test runner have no support for jest now. But we can expect in the future releases.
@keshavvkshirsagar7335
3 жыл бұрын
@@letcode then any other solution to generate reports also attach screen shots on test case failure as well as send execution report via email.
Пікірлер: 56