Jest Allure Report | Playwright - Part 19

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 76

  • @santoshpanda3264
    @santoshpanda3264 3 года назад +2

    Can I use the allure report with playwright and cucumber ? Is it possible ? I am not getting any examples of that

    • @letcode
      @letcode  3 года назад +1

      Yes, already video is there in our channel.

  • @nomanshahid1397
    @nomanshahid1397 2 года назад +1

    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.

  • @keshavvkshirsagar7335
    @keshavvkshirsagar7335 3 года назад +2

    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

    • @letcode
      @letcode  3 года назад

      I think I have given your solution in the previous comment.

  • @saivamshikrishnapeddammala8678
    @saivamshikrishnapeddammala8678 2 года назад +1

    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

    • @letcode
      @letcode  2 года назад

      Kindly check the code in my GitHub, i think you have missed the declaration

  • @supriyareddy2998
    @supriyareddy2998 2 года назад +1

    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

    • @letcode
      @letcode  2 года назад

      When u r getting this error?

    • @supriyareddy2998
      @supriyareddy2998 2 года назад

      @@letcode For screenshot method do we need to install any dependency or add any config??

    • @supriyareddy2998
      @supriyareddy2998 2 года назад

      @@letcode after launching the url getting this error at Reportutils.screenshot()

  • @feralgoose7157
    @feralgoose7157 3 года назад +1

    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.

    • @letcode
      @letcode  3 года назад

      Hi, folio or playwright test runner is great.
      It supports allure. Please check the latest videos in the playlist.

  • @bhavindesai8003
    @bhavindesai8003 2 года назад +1

    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.

    • @letcode
      @letcode  2 года назад

      You have to import the page or receive from the constructor.
      Instead of jest, I'll recommend switching to the Playwright test runner.

    • @bhavindesai8003
      @bhavindesai8003 2 года назад +1

      @@letcode Thanks buddy :)

  • @sangeethashanmugam6809
    @sangeethashanmugam6809 2 года назад +1

    Hi koushik
    Can you please tell me how to add parent suite?

    • @letcode
      @letcode  2 года назад

      Hi, not sure about that.

  • @AdrianArguedasRojas
    @AdrianArguedasRojas Год назад +1

    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!

    • @letcode
      @letcode  Год назад

      Thanks.
      I tried once but it didn't work, I have to check again.

  • @КостянтинБєлозьоров
    @КостянтинБєлозьоров 3 года назад +1

    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."?

    • @letcode
      @letcode  3 года назад +1

      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

    • @КостянтинБєлозьоров
      @КостянтинБєлозьоров 3 года назад +1

      ​@@letcode Thank you! It was very helpful!

  • @nikitadhurve8776
    @nikitadhurve8776 3 года назад +1

    How can we integrate this allure report in CI/CD pipeline ? Or how can we run it using command line ?

    • @letcode
      @letcode  3 года назад

      allure serve is the command to open report.

  • @jyotibora182
    @jyotibora182 2 года назад +1

    Helli,
    Do we have any what's group for queries ?

    • @letcode
      @letcode  2 года назад

      I have discord server
      discord.gg/t9PfDTdR

  • @ankittvaish5355
    @ankittvaish5355 3 года назад +1

    Hi Koushik, can we integrate extent or xslt reports too with Playwright, can you share some links or videos on this please?

    • @letcode
      @letcode  3 года назад

      Both are for java I believe, we cannot use in js/ts.

  • @No-yp1uv
    @No-yp1uv 3 года назад +1

    Can you say how to write console output to a file ?

  • @mohapatradharitree
    @mohapatradharitree 2 года назад +1

    Thanks a lot ..Really helpful info. How can I print the my customized message with variable injected in Alllure report.

    • @letcode
      @letcode  2 года назад

      Not sure with allure, but using playwright report we can do that.

    • @mohapatradharitree
      @mohapatradharitree 2 года назад +1

      @@letcode ok.thanks for quick response . playwright report
      Link could you please provide..if you have specific video

    • @letcode
      @letcode  2 года назад

      ruclips.net/video/vMTBAbaLaf4/видео.html

  • @balajiekambaram
    @balajiekambaram 3 года назад +1

    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

  • @saranyab2304
    @saranyab2304 3 года назад +2

    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.

    • @letcode
      @letcode  3 года назад +1

      I'll look into it ☺️

    • @himanidutta1654
      @himanidutta1654 3 года назад

      @@letcode Any update on it?

  • @No-yp1uv
    @No-yp1uv 3 года назад +1

    Can you show customised allure report with steps only with playwright/test?

    • @letcode
      @letcode  3 года назад +1

      Did u mean allure with playwright test runner?

    • @No-yp1uv
      @No-yp1uv 3 года назад +1

      @@letcode yes

    • @letcode
      @letcode  3 года назад

      It is not possible now, playwright team is working on it, in the next release we can expect this feature.

    • @letcode
      @letcode  3 года назад

      ruclips.net/video/Pa7_klzkCXU/видео.html
      Watch this

  • @vinayakahegde9712
    @vinayakahegde9712 3 года назад +1

    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
      @letcode  3 года назад

      Pls check if the allure dependencies are there.

    • @shivkumarudage8428
      @shivkumarudage8428 2 года назад

      @@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?

  • @adisurd
    @adisurd 3 года назад +1

    Nice videos. Allure is pronounced as if it were 'alyooor'

    • @letcode
      @letcode  3 года назад

      Sometimes my communication go bad sorry 😞 for that.
      I'll try to improve🤗.
      Thank you 😊

  • @arjityadavv
    @arjityadavv 3 года назад +1

    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)

    • @letcode
      @letcode  3 года назад

      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

    • @tamilarasangnanasekaran3038
      @tamilarasangnanasekaran3038 3 года назад

      This issue still not resolved bro. Please help to resolve with the versions.

    • @letcode
      @letcode  3 года назад +1

      Hi jest is not required now in playwright.
      We can use the playwright test runner itself without jest.

    • @tamilarasangnanasekaran3038
      @tamilarasangnanasekaran3038 3 года назад +1

      Can I have your email id Kaushik?

    • @letcode
      @letcode  3 года назад

      @@tamilarasangnanasekaran3038 koushik350@gmail.com

  • @weijieli4590
    @weijieli4590 3 года назад +1

    How to slide a web page?

    • @letcode
      @letcode  3 года назад

      Sorry I didn't get you

  • @nagulrd5214
    @nagulrd5214 3 года назад +1

    ❤️ Anna cucumber video podunga

    • @letcode
      @letcode  3 года назад +1

      Ok bro ... Sikiram ah start panra.
      But b4 that POM full ah practice pantingala ? 😜

    • @nagulrd5214
      @nagulrd5214 3 года назад +1

      @@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 ❤️

    • @letcode
      @letcode  3 года назад +1

      @@nagulrd5214 tomorrow video coming.

    • @nagulrd5214
      @nagulrd5214 3 года назад +1

      @@letcode Deivam Anna nega 🥺

  • @letcode
    @letcode  3 года назад

    Hello :)

  • @chinthasushmareddy7065
    @chinthasushmareddy7065 3 года назад

    declare const reporter : any;
    Missing semicolon error even after giving semicolon

    • @letcode
      @letcode  3 года назад +1

      Sometimes it happens, can you close the file and try again.
      It might be problem with eslint as well.

    • @chinthasushmareddy7065
      @chinthasushmareddy7065 3 года назад +1

      @@letcode will look into it. Thank you

  • @snatarun2079
    @snatarun2079 3 года назад +1

    Hi bro😇

    • @letcode
      @letcode  3 года назад

      Hello bro :)

  • @yasodhakrishna6094
    @yasodhakrishna6094 3 года назад

    Hi Brother , can you give me this framework which will be much helpful, thanks in advance

    • @letcode
      @letcode  3 года назад

      Hi, u can find the GitHub link in the video description 🤗

    • @yasodhakrishna6094
      @yasodhakrishna6094 3 года назад

      @@letcode can you give me any frame in javascript

  • @letscode6304
    @letscode6304 3 года назад +1

    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..

    • @letcode
      @letcode  3 года назад

      Can u see the allure results folder

    • @nataliamerkulov6830
      @nataliamerkulov6830 3 года назад +1

      @@letcode Hi I have the same problem, and I have result folder with results, it's not empty, but the report is empty