Get Started With Playwright Framework | Playwright Tutorial Part 56

  Рет қаралды 8,885

LetCode with Koushik

LetCode with Koushik

Күн бұрын

Пікірлер
@aniltaurus
@aniltaurus 3 жыл бұрын
Nicely Presented Akshay.. kudos..
@akshaypramodpai7736
@akshaypramodpai7736 2 жыл бұрын
Thank you Anil
@elumalai09
@elumalai09 3 жыл бұрын
Big Thanks to Akshay for the detailed explanation. @Koushik bro - Thanks for this video. This is amazing learning for everyone. Happy to be one of your subscriber! :) Keep going!!!!
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
Glad that you liked it.☺️
@elumalai09
@elumalai09 3 жыл бұрын
@@akshaypramodpai7736 @Koushik - I am getting "your internet access is blocked" message when i open allure report. Is this something related to proxy error?
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
@@elumalai09 I don't think so . I have not configured any proxy. Try to Delete allure-results, allure-reports and test-results folder and rerun the Test case. And try generating allure reports
@elumalai09
@elumalai09 3 жыл бұрын
Thanks Akshay.
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
I have added logic to automatically delete allure results before execution. This should solve your issue now
@vedikagupta1585
@vedikagupta1585 Жыл бұрын
Hey can you please comment on the exact advantages of playwright/test over playwright and why we should switch if we have a stable test suite in playwright
@letcode
@letcode Жыл бұрын
One video is not enough, i have already posted several videos. You can check those..
@azimadayani2379
@azimadayani2379 3 жыл бұрын
What changes needs to be made in test match after u add folders for api, db
@letcode
@letcode 3 жыл бұрын
kzbin.info/www/bejne/mpaofGOifdd2Y9k
@madhurireddy6031
@madhurireddy6031 2 жыл бұрын
Great effort
@akshaypramodpai7736
@akshaypramodpai7736 2 жыл бұрын
Thank you Madhuri
@mv8167
@mv8167 3 жыл бұрын
Thank you, Akshay and Kumar, I enjoyed your framework. I have a few questions, or thoughts for future add-ons to your framework: 1) Do you also use Folio and/or Jest 2) With Allure can we track a daily report (showing a detailed report of pass/fail, exaction time)? 3) Can we use Jenkins to send out the execution results status email automatically (as TestNG has an emailable report)? THANK YOU, I am enjoying this series of testing using Playwright
@letcode
@letcode 3 жыл бұрын
Hi, foloi is now known as playwright test runner and we are using that. Allure can be tracked if the folder is set to its default directory. Jenkins is possible but the email report will not work as the file size will get increased.
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
Yes using Jenkins we can send html report, but first we have to convert allure report in to emailable html. For that you have to use Fresco Allure Docker service.
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
Hi I have updated my framework template today in which with Playwright 1.17 you get emailable reports
@tallurivamsi6413
@tallurivamsi6413 5 ай бұрын
Its was a good demo,but Where the configs for environment like QA,UAT,PROD etc..depending upon the environment it will pick up the configs and run in the same environment. Important thing when we run in docker container in CI/CD Pipelines,where can we see the reports in gitlab or jenkins.... Please let me know your throughts on this....
@letcode
@letcode 5 ай бұрын
Thanks, I posted a few videos on whatever you asked. Pls check the playlist.
@tallurivamsi6413
@tallurivamsi6413 5 ай бұрын
@@letcode thank you brother for the response
@sqalearnings4356
@sqalearnings4356 3 жыл бұрын
Thanks for the video. Can we add logging part in Playwright framework?
@letcode
@letcode 3 жыл бұрын
Yes we can 🤗
@sqalearnings4356
@sqalearnings4356 3 жыл бұрын
@@letcode Can you add to your Playwright series? That will be helpful
@letcode
@letcode 3 жыл бұрын
Yeah ok bro
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
Logging is added in my latest build. Please checkout latest build
@sqalearnings4356
@sqalearnings4356 3 жыл бұрын
@@akshaypramodpai7736 Checked your code repo, but I can't see logging(loggers) in typescript code
@kiranbenni9366
@kiranbenni9366 3 жыл бұрын
Very well explained akshay!
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
Thank you Kiran🤩
@rakshithkumar8213
@rakshithkumar8213 3 жыл бұрын
Very well explained Akshay👏👏👏
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
Thanks a lot Rakshit 🤩
@ramganesh4954
@ramganesh4954 2 жыл бұрын
Hi Koushik, Could you please explain CI/CD with Docker container or please please share any documentation that would be really helpful for us.
@letcode
@letcode 2 жыл бұрын
I don't use docker that much, but I'll try to bring some content
@bhumilvyas989
@bhumilvyas989 2 жыл бұрын
In POM there will be different files for different pages, so let’s say if I am on Dashboard page, do I need to rewrite/call login functions while executing dashboard test spec?
@letcode
@letcode 2 жыл бұрын
kzbin.info/www/bejne/jYTHZ2COYtNphpo
@pavithrap7655
@pavithrap7655 2 жыл бұрын
Nice video... Can please let me know how to download Framework from github...
@letcode
@letcode 2 жыл бұрын
You can find the link in description 😊
@AlanBeer
@AlanBeer 2 жыл бұрын
Hi Koushik, there was a mention of readDataFromExcel in the code from Akshay - but it would be great if you could do a video on steps (installs, code, etc) needed to read data from an excel file and onto populating a page during a test.ts. It would also be great to discuss how that would work in a framework - reading test data from a feed file and using it to test screens whilst in parallel with PW device-projects (and avoiding duplicate record problems if more than one PW instance tries the same test record). [I'm trying to test a system with list-edit screens rather than just webpages].
@letcode
@letcode 2 жыл бұрын
Yes sure. I'll do it.
@cmpunk8599
@cmpunk8599 2 жыл бұрын
Hey koushik bro, thank you very for your videos. They are really helpful. I was following this video to setup playwright framework using JavaScript but was facing multiple issues where I was not able to import objects or functions created in different JS files to my main test.js file. If possible can you please do a detailed video on how to create framework from scratch I mean along with import statements and how to call functions from other files to main test file? Also I’ve seen from one of your comments that you are working on BDD cucumber with playwright, can you please upload some video around it if possible? Thank you in advance koushik bro!
@letcode
@letcode 2 жыл бұрын
To do the import you can refer the protractor playlist. I have covered those in detail. However I'll recommend to use typescript similar to js but added features are there..
@debasisnath4558
@debasisnath4558 11 ай бұрын
@@letcode how to do customer reports in framework using java script can you please take a session
@letcode
@letcode 11 ай бұрын
kzbin.info/www/bejne/ql6upHtrpZtjqc0si=Lrr_7WDLYqDMlIXx
@AmitSaini-g1b
@AmitSaini-g1b Жыл бұрын
Is designing a playwright framework with Javascript is challenging as compare to ts?
@letcode
@letcode Жыл бұрын
Somewhat yes I will say.... Ts is easy and fun.
@sreesai452
@sreesai452 Жыл бұрын
Hi Koushik, I am building framework based your video and GIT repository. I configured azure build pipeline based on your video and trying to run the below cross-env script. It is working in local but it is not working in azure build pipeline. Could you please help how to run cross-env thing in azure dev pipeline. "test:singleqa": "cross-env CI=true test_env=qa npx playwright test 003_MyResources.test --project=Chrome",
@letcode
@letcode Жыл бұрын
Hi, pls refer to this video kzbin.info/www/bejne/iHTdiah5qZ1_pMk
@AliKhan-wm5lt
@AliKhan-wm5lt 3 жыл бұрын
Thank you somuch Akshay and Koushik. Your videos are very much useful. May I know if there is any dataprovider (like the one in TestNG) in this playwright. I basically want to understand how can we execute single testcase with multiple sets of data and see all details in the report. Also do you have cucumber framework?
@letcode
@letcode 3 жыл бұрын
Hi, cucumber support is there, no straight forward strategy like data provider, but using loop we can run test for multiple data. I'll find a better approach for this and will make a video
@AliKhan-wm5lt
@AliKhan-wm5lt 3 жыл бұрын
@@letcode Thank you so much for the quick reply.
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
kzbin.info/www/bejne/o5zEmXqsnJWtqbc
@alikhanmohammad5920
@alikhanmohammad5920 3 жыл бұрын
Hi @LetCode with Koushik , In my framework I get an error "Cannot use import statement outside a module”. Steps: 1. I’ve created a framework project in typescript, that consists of only utility classes & functions and published it to npm artifactory. 2. Then I've created a sample project in typescript in my local and added the above artifact as a dependency in my package.json. On running "npm install" it downloaded the artifact successfully inside node_modules. 3. Now while executing the feature files, I get the error “Cannot use import statement outside a module”. This error displaying in the console log is pointing to the utility classes at the places wherever import statements are written. My Understanding: Since the error is pointing to the utility classes, I think the script is able to import the class from the node_module but import is not working internal to the node_modules. That means importing one utility class from another class in same package inside the node_modules has some problem. When I changed the import statement to “require”, then the problem is solved, but wherever “type” is specified, I’m getting another error “unexpected token : colon”. So I’m totally confused. Could you please help.
@letcode
@letcode 3 жыл бұрын
R u using eslint ?
@alikhanmohammad5920
@alikhanmohammad5920 3 жыл бұрын
@@letcode Yes, I'm using.. I mean, I have it in my package.json. When I run "npm install" it threw few compatibility issues with respect to eslint versions and so I ran with npm6. The command that I triggered is "npx -p npm@6 npm install" and from then onwards I did not see any errors related to eslint.
@alikhanmohammad5920
@alikhanmohammad5920 3 жыл бұрын
@@letcode Infact I removed the eslint dependencies and tried.. Still no luck
@letcode
@letcode 3 жыл бұрын
Somehow u r comments are getting deleted, sorry for that. Colon might be because of eslint configuration. Regarding the node modules use I'm not sure bro.
@alikhanmohammad5920
@alikhanmohammad5920 3 жыл бұрын
@@letcode Thanks for the reply...Is it because of eslint configuration? Let me try it by deleting that dependency. Till now I was thinking that "let browser: ChromeBrowser" is throwing an error "unexpected : colon" so it could be because it's treating that as javascript file, instead of the typescript, and hence typesafety is not working.
@prasadverma4794
@prasadverma4794 3 жыл бұрын
Hi Koushik, is it possible to connect to Database using playwright. If there is any option, please give some info on that. Thank you
@letcode
@letcode 3 жыл бұрын
I beleive that is covered in this video itself 🤗
@prasadverma4794
@prasadverma4794 3 жыл бұрын
Thanks Koushik. It's really helpful. I'll implement this in my POC. If possible can you make a video on how to configure cucumber framework in playwright.
@letcode
@letcode 3 жыл бұрын
Coming soon 😊
@AliKhan-wm5lt
@AliKhan-wm5lt 2 жыл бұрын
Hi Koushik/Akshay, Inside the framework wrapper methods, I see that we are waiting for the element to be visible before performing the actual action like click, fill text, etc. Since playwright already provides auto-waiting mechanism, why do we want to again wait for the element to be visible before calling the playwright click method, etc? Is there any reason for that?
@akshaypramodpai7736
@akshaypramodpai7736 2 жыл бұрын
Hi Ali. I am yet to change that. I will work on this previously thar was not he case so I had added it. Thanks for feedback
@AliKhan-wm5lt
@AliKhan-wm5lt 2 жыл бұрын
@@akshaypramodpai7736 Thanks for the quick reply. Need one more clarification. Since this is a cucumber framework, we have used playwright, but not playwright test. So will all the features that are available in playwright test be available in playwright as well? Because I don't see a way to include soft assertions in this framework.
@akshaypramodpai7736
@akshaypramodpai7736 2 жыл бұрын
@@AliKhan-wm5lt I thinks it's reverse way in playwright test we get all features. We can just include playwright test.
@AliKhan-wm5lt
@AliKhan-wm5lt 2 жыл бұрын
@@akshaypramodpai7736 Sure. thank you so much
@karthic5231
@karthic5231 3 жыл бұрын
Koushik bro...Can you tell how to custom report after finished all test to send the report to stack holders in playwright via configuration...Like @Aftersuite i need to execute that send mail class after complete the overall test is finshed.in 1.16 version of playwright they give HTML report with lot of minimum and excellent option but it's immediate execute with out any extra work we do it...It's shows the report but I want to send the report where to config this i had the node mailer code its working in protractor well but I am not able to send after fished the testing its execute parellel is it any config shOuld i need for this ...Can you help me
@letcode
@letcode 3 жыл бұрын
Sure I'll make a video on sharing report
@karthic5231
@karthic5231 3 жыл бұрын
@@letcode hi now i am finished the send mail report using custom reporter bro.but in my organisation they dont need the default html reporter.i use the custom report for sending the attached email.its working fine now.i am fully new to javascript i did not no how to produced or created html report.in java i use string to add the html tag directly and using file option open and write the string variables to html file then i create my own html content in java script or type script.but how can we do it java script these things only i need to know Koushik bro..currently i am using playwright but reporter part i used default allure because its very less(3mb) in memory.
@letcode
@letcode 3 жыл бұрын
OK bro I will try to make a video on this, but it might take a little time. meanwhile can u check this to share allure report kzbin.info/www/bejne/qnfcmXyXa6-KmLs
@karthic5231
@karthic5231 3 жыл бұрын
@@letcode Thanks koushik bro.i already seen first the report sharing your video. then only i started your video to continue for choose the playwright.thanks for your video.its guide me lot.i will try to start my work with the combination of pupeeteer and protractor with playwright for configuration part then after to start framework with your video.i will try to make custom report for my company.once again thans @Koushik bro
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
Playwright 1.17 has emailable report feature do check it out
@bhargavareddychintharedddy2101
@bhargavareddychintharedddy2101 Жыл бұрын
I'm sir akshay's framework, but I got a set back of before all code isn't running. Please help
@letcode
@letcode Жыл бұрын
Hi, can you elaborate the issue?
@СергійГуменюк-х1ж
@СергійГуменюк-х1ж 2 жыл бұрын
Hi Koushik Myabe it's not the right video under which this question should be asked but anyway) In Selenium frameworks it is considered to be a good practice when method(function) returns the next page object in case it's needed For example smth like this: public HomePage submitLogin() { driver.findElement(loginButtonLocator).submit(); return new HomePage(driver); } Can we use such "pattern" in TS, Playwright ? If yes, why you are not showing it? I would appreciate if you would show an example of such code in TS, Playwright Thanks in advance
@letcode
@letcode 2 жыл бұрын
We don't do that because in async and await long Chaining is not possible. Before calling every method we have to use await right.
@СергійГуменюк-х1ж
@СергійГуменюк-х1ж 2 жыл бұрын
@@letcode Oh, I see. I thought that "await" on the begining of chain will be used for all))
@SuryaVeda
@SuryaVeda 11 ай бұрын
Please enable quality, unable to see clearly
@letcode
@letcode 11 ай бұрын
Pls check your internet speed, all videos are in 1080p resolution.
@bumbee556
@bumbee556 2 жыл бұрын
Thanks Akshay and Koushik, Thanks for the video to develop a framework.♥... Could you please help me with a video for a framework with Playwright, TypeScript and Cucumber?
@letcode
@letcode 2 жыл бұрын
I'm not using cucumber yet, framework playlist is in progress.
@AliKhan-wm5lt
@AliKhan-wm5lt 3 жыл бұрын
Hi Koushik/Akshay, May I know if it is possible to generate allure report in case of cucumber framework? Because I tried to generate but no luck so just wondering if it is really in place or not.
@letcode
@letcode 3 жыл бұрын
I'm not sure, I don't see any official doc.
@AliKhan-wm5lt
@AliKhan-wm5lt 3 жыл бұрын
@@letcode oops... In that case, I don't think people can go for the cucumber framework if they are really interested in the allure report. Can we log a defect for that in playwright?
@letcode
@letcode 3 жыл бұрын
They are working on the cucumber release, so we can wait until that.
@AliKhan-wm5lt
@AliKhan-wm5lt 3 жыл бұрын
@@letcode Sure thank you..
@akshaypramodpai7736
@akshaypramodpai7736 3 жыл бұрын
They are trying to include steps in playwright allure reports so no need for separate reporter in coming releases.
@kapilkapoor7191
@kapilkapoor7191 Ай бұрын
Grt Job.
@letcode
@letcode Ай бұрын
Thanks 👍
@divyanshusharma4792
@divyanshusharma4792 2 жыл бұрын
Its a great implementation of playwright capabilities within a single framework. Can anyone of you can create a framework using Cucumber BDD approach using playwright configurations only....that would be very helpful😊😊
@letcode
@letcode 2 жыл бұрын
I'm working on it, will bring tutorial.
@pavankumarshanbhag5452
@pavankumarshanbhag5452 3 жыл бұрын
It's Akshay not pramod
@letcode
@letcode 3 жыл бұрын
Yeah, sorry for that 😔
Parallel Tests - Mouse Wheel Control | Playwright Tutorial Part 57
13:04
LetCode with Koushik
Рет қаралды 7 М.
Playwright locator API In Detail | Playwright Tutorial - Part 53
9:30
LetCode with Koushik
Рет қаралды 3,9 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Same test with multiple data | Playwright Tutorial - Part 75
7:38
LetCode with Koushik
Рет қаралды 21 М.
Playwright Visual Comparisons | Playwright part - 28
15:37
LetCode with Koushik
Рет қаралды 12 М.
End of Postman? No-Code API Testing with Playwright + AI 🧠🤖
13:49
Execute Automation
Рет қаралды 1,7 М.
5 Dangerous Things to Avoid Saying In a Job Interview
12:57
Don Georgevich
Рет қаралды 7 МЛН
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 802 М.
Selenium Vs Cypress : Which One Should You Choose?
6:38
The Testing Academy
Рет қаралды 41 М.
Page Object Model | Playwright - Part 16
41:34
LetCode with Koushik
Рет қаралды 25 М.
Playwright Skip Login | Playwright Tutorial part - 31
11:06
LetCode with Koushik
Рет қаралды 23 М.