Hi I don't want to give static value in test case.i want to write a scripts and then call value or match test case it is possible or not using jest-playwright.
Hi Koushik, I have some quires related to Jest allure report, I am able to generate allure report but facing below issues 1)I want to add custom information in to allure-jest report like Browser name, Browser version, Os Name, Os version. 2)how to store Allure report in local project folder with out using another tools
Hi Koushik, I am getting Error after launching the url getting this error at Reportutils.screenshot() like: TypeError: Cannot read properties of undefined (reading 'screenshot') Ca you please help me on this. Thanks in advance
Hi Koushik, I am getting Error like: TypeError: Cannot read properties of undefined (reading 'screenshot') Ca you please help me on this. Thanks in advance
Thanks, very informative. A couple of things, if we plan to move to folio for our test runner, can you recommend or possibly create a video for reporting in that since we will not be using jest. Not sure if allure reporting would still work. Thoughts? It is very interesting the extra code required to perform the reporting, very repetitive. I assume the best practice would be to wrap at the high level test layer. Would you recommend just reporting on the critical end to end regression tests? I could see this becoming hard to maintain on a large scale. Thanks for putting this content together very useful.
Hi Koushik, while defining the report util as class, i am getting the error for the below command: - const screenshotBuffer = await page.screenshot(); in the above command it is saying page cannot be find name page.
Hi for amazing videos, I have an open question do you know if we could integrate playwright scripts with Zephyr on Jira, thanks a lot for your support!
Hi Koushik, can you help me to solve this problem in cmd after "allure" command: "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation."?
Hi, Java version 8 or above isrequired to use the allure command line tool. You have to set the JDK home for that. you can refer this site to set the home path javatutorial.net/set-java-home-windows-10
Hi, I want to take screenshot only if the test case fails.Like how we do in Listeners in testng.can you pls help me on that? Really simple and nice video.
getting below error TypeError: Cannot read property 'description' of undefined 62 | test('Login to portlet and Verify the labels', async () => { 63 | await reporter > 64 | .description("Login to Page Portal") | ^ 65 | .severity(Severity.Critical) 66 | .story("BOND-007"); 2. ReferenceError: reporter is not defined 61 | using(plusProvider, (data: { langCode: any; }) => { 62 | test('Login to portlet and Verify the labels', async () => { > 63 | await reporter There is no compile time error.. Once we initiate the execution getting the above error Steps followed as per the video
@@letcode I'm also facing same issue. Allure is installed successfully still reporter variable is not getting identified by script. Don't know why? Any idea?
Hi Koushik, Can you please help me with this error? FAIL browser: chromium ./TC001_Login.test.ts ● Test suite failed to run TypeError: Jest: a transform must export something. at node_modules/jest-runner/node_modules/@jest/transform/build/ScriptTransformer.js:386:19 at async Promise.all (index 0)
Hi, this will happen for few reasons, u might have given the wrong pattern in the jest config for the transform option. another reason might be u haven't installed all the dependencies as dev dependencies. check this config and repo for more details - github.com/ortoniKC/Playwright-TypeScript-Jest/blob/main/jest.config.js
@@letcode poitaa iruku bro 😂 , IPO tha lite lite ah understand aguthu ❤️ . POM la simple ah code split Pana oru video podunga bro . Pothuva use panikura Mari , eg base class , locator , Pg wise selenium code , etc . Oru blueprint Mari solunga Anna , initial stage la enaku essay ah irukum ❤️
Can I use the allure report with playwright and cucumber ? Is it possible ? I am not getting any examples of that
Yes, already video is there in our channel.
Hi I don't want to give static value in test case.i want to write a scripts and then call value or match test case it is possible or not using jest-playwright.
Hi Koushik,
I have some quires related to Jest allure report,
I am able to generate allure report but facing below issues
1)I want to add custom information in to allure-jest report like Browser name, Browser version, Os Name, Os version.
2)how to store Allure report in local project folder with out using another tools
I think I have given your solution in the previous comment.
Hi Koushik, I am getting Error after launching the url getting this error at Reportutils.screenshot() like: TypeError: Cannot read properties of undefined (reading 'screenshot')
Ca you please help me on this. Thanks in advance
Kindly check the code in my GitHub, i think you have missed the declaration
Hi Koushik,
I am getting Error like: TypeError: Cannot read properties of undefined (reading 'screenshot')
Ca you please help me on this. Thanks in advance
When u r getting this error?
@@letcode For screenshot method do we need to install any dependency or add any config??
@@letcode after launching the url getting this error at Reportutils.screenshot()
Thanks, very informative. A couple of things, if we plan to move to folio for our test runner, can you recommend or possibly create a video for reporting in that since we will not be using jest. Not sure if allure reporting would still work. Thoughts? It is very interesting the extra code required to perform the reporting, very repetitive. I assume the best practice would be to wrap at the high level test layer. Would you recommend just reporting on the critical end to end regression tests? I could see this becoming hard to maintain on a large scale. Thanks for putting this content together very useful.
Hi, folio or playwright test runner is great.
It supports allure. Please check the latest videos in the playlist.
Hi Koushik,
while defining the report util as class, i am getting the error for the below command: -
const screenshotBuffer = await page.screenshot();
in the above command it is saying page cannot be find name page.
You have to import the page or receive from the constructor.
Instead of jest, I'll recommend switching to the Playwright test runner.
@@letcode Thanks buddy :)
Hi koushik
Can you please tell me how to add parent suite?
Hi, not sure about that.
Hi for amazing videos, I have an open question do you know if we could integrate playwright scripts with Zephyr on Jira, thanks a lot for your support!
Thanks.
I tried once but it didn't work, I have to check again.
Hi Koushik, can you help me to solve this problem in cmd after "allure" command: "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation."?
Hi, Java version 8 or above isrequired to use the allure command line tool. You have to set the JDK home for that.
you can refer this site to set the home path javatutorial.net/set-java-home-windows-10
@@letcode Thank you! It was very helpful!
How can we integrate this allure report in CI/CD pipeline ? Or how can we run it using command line ?
allure serve is the command to open report.
Helli,
Do we have any what's group for queries ?
I have discord server
discord.gg/t9PfDTdR
Hi Koushik, can we integrate extent or xslt reports too with Playwright, can you share some links or videos on this please?
Both are for java I believe, we cannot use in js/ts.
Can you say how to write console output to a file ?
Ok sure
Thanks a lot ..Really helpful info. How can I print the my customized message with variable injected in Alllure report.
Not sure with allure, but using playwright report we can do that.
@@letcode ok.thanks for quick response . playwright report
Link could you please provide..if you have specific video
ruclips.net/video/vMTBAbaLaf4/видео.html
Brother pls provide a video to input the test data from Excel or XML. How to pass 1000s of test data and that in a iterative way
Hi, I want to take screenshot only if the test case fails.Like how we do in Listeners in testng.can you pls help me on that? Really simple and nice video.
I'll look into it ☺️
@@letcode Any update on it?
Can you show customised allure report with steps only with playwright/test?
Did u mean allure with playwright test runner?
@@letcode yes
It is not possible now, playwright team is working on it, in the next release we can expect this feature.
ruclips.net/video/Pa7_klzkCXU/видео.html
Watch this
getting below error
TypeError: Cannot read property 'description' of undefined
62 | test('Login to portlet and Verify the labels', async () => {
63 | await reporter
> 64 | .description("Login to Page Portal")
| ^
65 | .severity(Severity.Critical)
66 | .story("BOND-007");
2.
ReferenceError: reporter is not defined
61 | using(plusProvider, (data: { langCode: any; }) => {
62 | test('Login to portlet and Verify the labels', async () => {
> 63 | await reporter
There is no compile time error.. Once we initiate the execution getting the above error
Steps followed as per the video
Pls check if the allure dependencies are there.
@@letcode I'm also facing same issue. Allure is installed successfully still reporter variable is not getting identified by script. Don't know why? Any idea?
Nice videos. Allure is pronounced as if it were 'alyooor'
Sometimes my communication go bad sorry 😞 for that.
I'll try to improve🤗.
Thank you 😊
Hi Koushik,
Can you please help me with this error?
FAIL browser: chromium ./TC001_Login.test.ts
● Test suite failed to run
TypeError: Jest: a transform must export something.
at node_modules/jest-runner/node_modules/@jest/transform/build/ScriptTransformer.js:386:19
at async Promise.all (index 0)
Hi, this will happen for few reasons, u might have given the wrong pattern in the jest config for the transform option. another reason might be u haven't installed all the dependencies as dev dependencies.
check this config and repo for more details - github.com/ortoniKC/Playwright-TypeScript-Jest/blob/main/jest.config.js
This issue still not resolved bro. Please help to resolve with the versions.
Hi jest is not required now in playwright.
We can use the playwright test runner itself without jest.
Can I have your email id Kaushik?
@@tamilarasangnanasekaran3038 koushik350@gmail.com
How to slide a web page?
Sorry I didn't get you
❤️ Anna cucumber video podunga
Ok bro ... Sikiram ah start panra.
But b4 that POM full ah practice pantingala ? 😜
@@letcode poitaa iruku bro 😂 , IPO tha lite lite ah understand aguthu ❤️ . POM la simple ah code split Pana oru video podunga bro . Pothuva use panikura Mari , eg base class , locator , Pg wise selenium code , etc . Oru blueprint Mari solunga Anna , initial stage la enaku essay ah irukum ❤️
@@nagulrd5214 tomorrow video coming.
@@letcode Deivam Anna nega 🥺
Hello :)
declare const reporter : any;
Missing semicolon error even after giving semicolon
Sometimes it happens, can you close the file and try again.
It might be problem with eslint as well.
@@letcode will look into it. Thank you
Hi bro😇
Hello bro :)
Hi Brother , can you give me this framework which will be much helpful, thanks in advance
Hi, u can find the GitHub link in the video description 🤗
@@letcode can you give me any frame in javascript
Hey, I tried to integrate with Allure but getting error as allure results does not exist. Can you tell me the work around for the same..
Can u see the allure results folder
@@letcode Hi I have the same problem, and I have result folder with results, it's not empty, but the report is empty