HTML Report with charts | Playwright & Cucumber - Typescript | Part 5

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Hello, in this video, we'll learn how to generate an HTML report with Cucumber and Playwright.
    Reference: github.com/Was...
    Code: github.com/ort...
    ---------------------------------------------------------------------
    Tamil RUclips Channel:
    @kurimurai
    ---------------------------------------------------------------------
    🎁Just in case you want to support me ☺️ donation might be helpful.
    BuyMeCoffe: www.buymeacoff...
    GPay: koushik350-1@okaxis
    -------------------------Thank you--------------------------
    Thanks for watching, if you like the video, give it a thumbs up 👆.
    Sharing is caring, kindly share the video with your friends and colleagues.
    Don't forget to subscribe and hit the bell 🔔 notification.
    -------------------------------SOCIAL-------------------------------
    📝Test Practice Site: letcode.in/
    🐦Discord: / discord
    📸Instagram: / letcode.in
    🎓 LinkedIn: / ortoni
    ⛳️ XPath Extension: bit.ly/2T5EUCu
    Join our WhatsApp group (Only for Channel Members)
    bit.ly/3cSPCpm
    Zerodha referral link: zerodha.com/?c...
    #letcode #playwright #cucumber

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

  • @kumarrajesh-lu3nw
    @kumarrajesh-lu3nw 3 месяца назад +1

    Thank you so much for your videos. Really helped me lot when I stuck so many places while implementing complete new framework.

    • @letcode
      @letcode  3 месяца назад

      Welcome and awesome 👍

  • @deepthiudayan9098
    @deepthiudayan9098 Год назад +2

    Thankyou so much for this BDD- playwright videos

  • @Iamwithyou1243
    @Iamwithyou1243 6 месяцев назад +1

    That look 11:20 for that whistle sound 😂... Bro u r doing an amazing job 💯
    Ps: but don't get mad whoever that is, LOL.

    • @letcode
      @letcode  6 месяцев назад

      I can't that's my mom 😁.
      Thanks 👍

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

    Thanks kaushik , for this video

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

    Very good explanation 👍

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

      Thank you 👍

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

    Amazing reports

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

      Yes it is ❤️

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

    Thank you so much, hope to see more tutorial like this

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

    Great Report! thanks

  • @joostdejong2507
    @joostdejong2507 Год назад +5

    Thanks for the nice video. I still have one issue. I followed the exact steps (filled the package.json under scripts "test": "cross-env ENV=prod cucumber-js test || true"), but when I execute npm test from a Windows machine with a failing test, I get the error message '''true' is not recognized as an internal or external command,
    operable program or batch file'. So the posttest is not executed, no report folder is created. Any idea how to fix this?

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

      Hi, this command won't work with windows default terminal, you have to use gitbash as terminal.

    • @amangupta-pp7zn
      @amangupta-pp7zn Год назад +1

      You can use this instead
      "scripts": {
      "test": "cucumber-js test",
      "posttest": "npx ts-node src/test/helpers/report.ts",
      "test:withpost": "npm test || npm run posttest"
      },
      and then run npm run test:withpost

    • @lucbsilva
      @lucbsilva 8 месяцев назад +5

      Now it works with this "test": "cucumber-js test || (exit 0)",

    • @rossbennett8908
      @rossbennett8908 26 дней назад +2

      @@lucbsilva Thank you for the update, fixed my problem.

    • @jorgefranco2313
      @jorgefranco2313 24 дня назад +1

      @@lucbsilva Grande, muchas gracias por la solución... ya me genera el reporte cuando hay escenarios fallidos.

  • @csatheeshkumar4205
    @csatheeshkumar4205 2 месяца назад +1

    Awesome.

    • @letcode
      @letcode  2 месяца назад

      Thanks 😊

  • @jyothsnat5579
    @jyothsnat5579 5 месяцев назад +1

    Hi Koushik, Can we generate extent report also. If so pls do one video for extent report

    • @letcode
      @letcode  5 месяцев назад

      I don't think the extent report is available for Js/TS.

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

    Hi Koushik, you've made things easier for us👍🏼
    Is there any way to add time duration for features and scenarios?

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

      Thank you :), I guess execution time is visible on report.

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

    For me I followed the instructions in the video, but when I run npm test, I always get this warning "WARNING: No JSON files found in 'test-results'. NO REPORT CAN BE CREATED!" and when I open the index.html report, it is not populated with data. I have the test-results folder with both JSON & HTML cucumber report. Not sure what I am missing.

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

      9:00 i hope you followed all the steps properly.

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

    Hi Koushik..! It is good to see your video, can you post pdf validation with playwright...?

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

    Nice video Koushik! Good job! I have a question here. In the report.ts, how can you pass the browser name, browser version, os name, os version etc details from command line? As of now, you are hard coding it. Also, how can we pass the customData values from command line?

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

      Hi, to pass data from cli I have covered that in the other video, kindly go through the playlist.
      We can do the same for reporters as well.

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

    Thank you very much for the video.... Can you please make a video on HOW TO READ AND WRITE AND UPDATE INTO CSV files in Playwright using typescript?

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

    Hey Koushik, thank you for your videos, very helpful.
    I am observing that with Cucumber & Playwright has slow start? How can I fix this?

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

      Hi, a slowness of 5 or lesser seconds is expected. Is it slower than that?

  • @harshtyagi5744
    @harshtyagi5744 2 месяца назад +1

    How to change report name to dynamic name and how to add real time start time and end time to a scenario or feature in the report, please suggest.

    • @letcode
      @letcode  2 месяца назад

      Please check the official docs for more information.
      I'm not sure as I don't use it in my current project.

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

    You are boss mate ! :)

  • @thusharzacharia1982
    @thusharzacharia1982 10 месяцев назад +1

    Hi Koushik, I have been following your tutorial and its done very well. Specially well crafted for beginners and others. I have been working on play wright with JS code and i was trying to use the multi cucumber report. For some reason on execution, the Index.html file is not getting generated. Could you guide me.

    • @letcode
      @letcode  10 месяцев назад

      Sure, check once if u had followed all the steps .

  • @sivamaamalesh8635
    @sivamaamalesh8635 Месяц назад +1

    Is it possible to group the failures based on where it failed. If yes how , can you please explain?

    • @letcode
      @letcode  Месяц назад

      It gives on the failure, no grouping.

  • @shilpatiwari1939
    @shilpatiwari1939 4 месяца назад +1

    Hi kaushik, your videos are really very helpful. I tried for attach video in the report i am getting error in cucumber.html report like base 64 is not there and in index.html video showing attached but not playing it

    • @letcode
      @letcode  4 месяца назад

      Is the video available on your local folder?

    • @shilpatiwari1939
      @shilpatiwari1939 4 месяца назад +1

      @@letcode. I solve that actually I missed fs now its working fine. Thankyou

    • @letcode
      @letcode  4 месяца назад

      Glad you figured it out.

  • @jyothsnat5579
    @jyothsnat5579 3 месяца назад +1

    Hi Koushik, For scenario outline screenshots are not attaching, only for Scenario it is attaching. Please help how to attach screenshots for scenario Outline too

    • @letcode
      @letcode  3 месяца назад +1

      It should be the same bro, I have explained

    • @riyazcommits7030
      @riyazcommits7030 19 дней назад

      @jyothsnat5579 click on examples in the report brother it will open a scenario related to that example. there you can see report of that example you chose. thanks

  • @pranitdhole5978
    @pranitdhole5978 5 месяцев назад +1

    Hi, will you please make video on cicd for cucumber playwright

    • @letcode
      @letcode  5 месяцев назад +1

      Yes, I'll try my best.

  • @user-km1ul2yu4f
    @user-km1ul2yu4f Год назад +1

    Can you let me know if we have different generated allure reports then if we want to view different Allure reports in a single allure dashboard is it possible?like how can configure multiple allure reports in a single allure dashboard? how can we see multiple allure project in dashboard

  • @ashirbadprusty9327
    @ashirbadprusty9327 2 месяца назад +1

    Hi @koushik
    The donot chart in the report is going veribig and its covering the entire page

    • @letcode
      @letcode  2 месяца назад

      Must be a css issue.
      You have to report on their GitHub.

    • @ashirbadprusty9327
      @ashirbadprusty9327 2 месяца назад +1

      @@letcode thanks
      can I use previous version of multiple-cucumber-html-reporter?

    • @letcode
      @letcode  2 месяца назад

      Give it a try

    • @ashirbadprusty9327
      @ashirbadprusty9327 2 месяца назад

      @@letcode tried same isue.
      something I am doing wrong?

  • @ChandraSekhar-zv2bb
    @ChandraSekhar-zv2bb Год назад +1

    Hi koushik, i have different problem is there any solution for this
    i was able to run and generate cucumber jvm html and cucumber json report. I need to extract few details from either json or html like test data passed and output
    Example : if i am submitting an application for 50 to 70 users i want name of the customer and application number after scenario run .

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

      I'm sure it's possible, but I'll look into it and confirm you.

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

    Hello Koushik. First of all, thank you very much for your amazing tutorials.
    My index file is not created and I have this error:
    Error: Cannot find module 'node:path'
    can you help please? thank you in advance.

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

      Welcome.
      You have to use the path package, import it and it should work.

    • @deepaksrivastava-25
      @deepaksrivastava-25 11 месяцев назад

      @@letcode How and where to import path and please let me know where to use it?

  • @SANYAM0
    @SANYAM0 11 месяцев назад +1

    Hello Koushik, Is there any way to get this type of chart report without using Cucumber, I have already implemented Html and Allure report with help of your videos.

    • @letcode
      @letcode  11 месяцев назад

      It is specific to the report.
      With a custom report we can implement but that will be challenging

  • @sivaramakrishnareddyrajula9605
    @sivaramakrishnareddyrajula9605 10 месяцев назад +1

    "progress-bar" is not showing output console correctly. Lines are breaking. Are there any changes we need to do except add it in cucumber.json

    • @letcode
      @letcode  10 месяцев назад

      It should work, what is the version u r using?

    • @sivaramakrishnareddyrajula9605
      @sivaramakrishnareddyrajula9605 10 месяцев назад

      @@letcode "devDependencies": {
      "@cucumber/cucumber": "^10.0.0",
      "@playwright/test": "^1.39.0",
      "@types/node": "^20.8.5",
      "multiple-cucumber-html-reporter": "^3.5.0",
      "ts-node": "^10.9.1"
      }

  • @s.niraimathimathi7576
    @s.niraimathimathi7576 Год назад +1

    Hi Koushik, Thanks for making this videos.it's very helpful.😊
    To get the multiple cucumber report using javascript what command we have to keep in post test. npx js-node is not working

  • @user-nt3wd4jr1c
    @user-nt3wd4jr1c Год назад +1

    Thanks for the Videos but I am observing the special characters in HTML and JSON reports whenever we compared expected result to String. Kindly help me on this.

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

      I didn't understand

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

      HI Hari did you got any solution for this issue.

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

      That is related to the reporter issue.
      You have to create a bug in their git, they can provide a solution.

  • @shilpatiwari1939
    @shilpatiwari1939 4 месяца назад +1

    I added true in command but after execution getting message like "true ' is not recognized as an internal or external command. How we can solve this

    • @letcode
      @letcode  4 месяца назад

      I hope you are using gitBash as command prompt else you have to find the equivalent command, pls refer the other comments I guess already I have added details about it.

    • @shilpatiwari1939
      @shilpatiwari1939 4 месяца назад

      @@letcode i added exit 0 instead true now its working fine.

  • @RahulReddy-pt2zx
    @RahulReddy-pt2zx 3 месяца назад +1

    Hi koushik when I am trying with the failed test cases cucumber report was generated fine but Multiple cucumber html file was (index) was not generated when im trying failed test cases

    • @letcode
      @letcode  3 месяца назад

      Did you mean it's not giving a single index html file?

    • @RahulReddy-pt2zx
      @RahulReddy-pt2zx 3 месяца назад

      Yes it's not giving when the test case are failed , I'm giving everything correct only if the scenarios was passed it will generate a index.html file

    • @tibivanko4253
      @tibivanko4253 20 дней назад +1

      Try this script: "test": "cross-env ENV=test cucumber-js test || exit 0",

  • @renukrishnadevotee
    @renukrishnadevotee 11 месяцев назад +1

    Hi, Is there any way we can implement allure reports with bdd and playwright?

    • @letcode
      @letcode  11 месяцев назад

      Maybe, I'm not sure.
      But this report is better than allure.

    • @renukrishnadevotee
      @renukrishnadevotee 11 месяцев назад

      @@letcode i have a requirement of allure only

  • @praveen9202
    @praveen9202 11 месяцев назад +1

    Bro once i do the same after running scripts I am getting index html along with one more html with some random suffix if i delete that I could not able to access the link of scenario in index. Html report

    • @letcode
      @letcode  11 месяцев назад

      Yes, that is expected only.
      Don't delete any files or folders.

  • @pranitdhole5978
    @pranitdhole5978 5 месяцев назад +1

    Will you please provide solution for -
    How to handle multiple tabs in this framework?
    I tried in script -
    const allpages=context.pages();
    const newpage=allpages[1]
    but it is giving me error context is not defined, actually we have defined context in hooks.
    Then how to handle this, please reply as soon as possible, is there any other way I can connect with you and share my problem screenshots?
    I'm stuck in my office project.

    • @letcode
      @letcode  5 месяцев назад +1

      You can ask in the discord.
      Link is available in the description.

    • @pranitdhole5978
      @pranitdhole5978 5 месяцев назад

      I asked on discord under #playwright, please reply.

  • @y.dmamatha9674
    @y.dmamatha9674 Год назад +1

    Hi , Thanks for the video and is there any way to change the name of the file from index.html to our own file name ?

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

      I don't remember, but it's possible i guess.

  • @Cecilia_Vlogs
    @Cecilia_Vlogs 3 месяца назад +1

    Hi koushik , can we generate a standalone report which can be shared across

    • @letcode
      @letcode  3 месяца назад +1

      If it has attachment then you have to share the data folder also.

    • @Cecilia_Vlogs
      @Cecilia_Vlogs 3 месяца назад +1

      @@letcode Thanks for the response. Apart from attachment....is it possible to generate standalone .html format ...where if I send .html report the other person should be able to view it

    • @letcode
      @letcode  3 месяца назад

      Yes it should be, are you facing any issue?

    • @Cecilia_Vlogs
      @Cecilia_Vlogs 3 месяца назад

      yeah ....when I am sharing the single index.html report alone.....it's showing no records.....but If I am sharing the complete report folder along with json....html report is proper....

  • @nandaraja5804
    @nandaraja5804 11 месяцев назад +1

    Hi Koushik, is there any way to run a particular feature or scenario?
    If I run a particular scenario using the command npx cucumber-js --name " " , report only showing skipped scenario.
    Any idea how to solve this?

    • @letcode
      @letcode  11 месяцев назад

      If the execution is successful, it should show the result.

    • @nandaraja5804
      @nandaraja5804 11 месяцев назад +1

      No, new report is not generating when I use the command npx cucumber-js

    • @letcode
      @letcode  11 месяцев назад

      @@nandaraja5804 continue with the playlist, i have covered those

    • @nandaraja5804
      @nandaraja5804 11 месяцев назад +1

      By the way thanks for taking time to clear all our doubts👍🏼😁

  • @divya-hz2wi
    @divya-hz2wi 6 месяцев назад +1

    How to run the test cases in responsive view ,can you provide the details for this

    • @divya-hz2wi
      @divya-hz2wi 6 месяцев назад +1

      The main reason for us to implement the playwright is to make our test cases work in responsive views ,but I am stuck on how to invoke them , please tell me the solution for this

    • @letcode
      @letcode  6 месяцев назад

      I will upload a video on this soon.

  • @shashidharamarannavar
    @shashidharamarannavar 5 месяцев назад +1

    I am unable to get the report even i mentioned format in cucumber.json

    • @letcode
      @letcode  5 месяцев назад

      Is the test ran?

  • @user-qv9gl8ff2q
    @user-qv9gl8ff2q 3 месяца назад +1

    hello brother,
    I am getting this error. How can I fix this? TIA

    • @letcode
      @letcode  3 месяца назад

      What error?

  • @user-to4ny7yf5d
    @user-to4ny7yf5d 9 месяцев назад +1

    why when some steps are failed results not save in index.html, when all tests pass is ok

    • @letcode
      @letcode  9 месяцев назад

      You might have missed await in some steps.

    • @user-to4ny7yf5d
      @user-to4ny7yf5d 9 месяцев назад +2

      || exit 0 helped

    • @lilu4480
      @lilu4480 8 месяцев назад

      @@user-to4ny7yf5d It's right!

  • @Jose_Arilson
    @Jose_Arilson 5 месяцев назад +1

    No caso de uma API, como eu posso mostrar no relatório qual o response ou request foi usado em uma step, eu gostaria de colocar no meu relatório.
    In the case of an API, how can I show in the report which response or request was used in a step, I would like to put in my report.

    • @letcode
      @letcode  5 месяцев назад

      I'm not sure, I have to check.

    • @Jose_Arilson
      @Jose_Arilson 5 месяцев назад

      @@letcode I ate it now I was unsuccessful

  • @sumitgoyal385
    @sumitgoyal385 3 месяца назад +1

    Thank you fir this means a lot : One ques : In report in failure we get : Error: [31mTimed out 10000ms waiting for [39m [2mexpect( [22m [31mlocator [39m [2m). [22mtoBeVisible [2m() [22m
    some unreadable character in case of java cucumber : I put monochrome true and it used to fix here I put monochrome : true as below but not worked ,can you tell me where to put this part ? I also put true in double quote same issue
    {
    "default": {
    "formatOptions":{
    "snippetInterface": "async-await",
    "monochrome":true
    },

    • @letcode
      @letcode  3 месяца назад

      Monochrome is changed in this version, I have covered it in the later videos.

    • @sumitgoyal385
      @sumitgoyal385 3 месяца назад

      @@letcode wow thanks

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

    Thanks you so much !!!
    I want to customise the report , to add the total run time for all the features and individual run time
    also can we add customised status like warning

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

      Welcome.
      I don't think that option is available in the report.

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

      @@letcode Thanks :)

  • @shilpatiwari1939
    @shilpatiwari1939 3 месяца назад +1

    How we can add request and reponse of api in the same report

    • @letcode
      @letcode  3 месяца назад

      Writeline function is used in hooks to write in the report, but that is accessible from hooks only.
      I have to check how to do it from the step definition.

    • @shilpatiwari1939
      @shilpatiwari1939 3 месяца назад

      @@letcode hi kausik, i tried to configure playwright.cobfig.ts file in same framework but it did not worked. What Playwright ui is launching but there were no test

    • @letcode
      @letcode  3 месяца назад

      Cucumber and playwright runner are different, so this config will not work for that.

    • @shilpatiwari1939
      @shilpatiwari1939 3 месяца назад

      @@letcode I can add another after in hooks . And just like we are fetching pickle and result same way we can fetch request and response as well and we can attach it in report just like screenshot and video.

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

    Getting true is not recognised as an internal or external command in package.json .when scenario getting failed .kindly help

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

      Your terminal should be git bash

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

      @@letcode how to change that

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

      Install git bash and use as your terminal within vs code.

    • @andrewpoganovsky4937
      @andrewpoganovsky4937 Год назад +2

      Or another way, replace "true" with "exit 0", the line will look like this: "cucumber-js test || exit 0"

    • @lilu4480
      @lilu4480 8 месяцев назад

      @@andrewpoganovsky4937 Thanks for your answer!

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

    Hi Koushik, this is the great videos. But I am having issue in my HTML report whenever there is error like "expecting 'this' but actual is 'something' kind of error" it is not coming in proper way can you please help me on that.

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

      Thanks.
      Proper way means it is showing wrong info or assertion is missing?

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

      It is coming with some special characters.. like it is having some square images with it.. if you can try from your side with this kind of assertion then you will get to know.. can you please help with this issue as I have demo at my job by next week..this will be very helpful

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

      I don't know how to reproduce, kindly send screenshots on our discord server.

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

      Can you please share with me information about discord like how I can connect with you as I don’t know about it

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

      discord.gg/ZJbzwBEV

  • @gautammanda086
    @gautammanda086 2 месяца назад +1

    How to generate allure report

    • @letcode
      @letcode  Месяц назад +1

      I haven't used allure with bdd playwright, I'll check

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

    Hi, when the test is failed, don't run the script "npx ts-node src/helper/report.ts"

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

      If the test fail the next posttest doesn't execute that's y we have || true.
      But it will work with git terminal.

    • @venkateshtumpuru4
      @venkateshtumpuru4 Месяц назад

      @@letcode Didn't get you, How to overcome that?

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

    I am following the steps, but for some reason, the process never gets concluded, steps Passed, but I must need to press ctrl + C to conclude the process, no index Html file by the moment.
    no Error, what did I do wrong?

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

      I could fix it.

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

      Great, what was the issue?

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

      @@letcode a line duplicated in the hook file

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

      @ramkumars9378 r u using git bash?

    • @miguelmorgado3705
      @miguelmorgado3705 11 месяцев назад

      Hi any news on how to fix the need to ctrl + c after the process conclusion?@ramkumars9378 @letcode

  • @educesportshubmusic8503
    @educesportshubmusic8503 9 месяцев назад

    How to add tike stamp... Each scenario time... Execution time?

    • @letcode
      @letcode  9 месяцев назад

      I guess that is shown by default.

  • @user-co6nc5ll2t
    @user-co6nc5ll2t Год назад +1

    "posttest": "npx ts-node src/helper/report.ts" is not getting executed.
    index.html report file is not getting generated and also progress bar is not visible, Please help.

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

      Y , any error message?

    • @user-co6nc5ll2t
      @user-co6nc5ll2t Год назад +1

      @@letcode no error message

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

      Is script failed?

    • @user-co6nc5ll2t
      @user-co6nc5ll2t Год назад

      @@letcode no, it is passed.

    • @user-co6nc5ll2t
      @user-co6nc5ll2t Год назад

      "scripts": {
      "test": "cucumber-js test",
      "posttest": "npx ts-node src/helper/report.ts"
      },
      "keywords": [],
      "author": "",
      "license": "ISC",
      "devDependencies": {
      "@cucumber/cucumber": "^9.0.1",
      "@playwright/test": "^1.31.2",
      "@types/jquery": "^3.5.16",
      "multiple-cucumber-html-reporter": "^3.3.0",
      "ts-node": "^10.9.1"
      }
      posttest is not getting invoked

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

    the sentence "cucumber-js test || true " does not recognize me

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

      Use git bash as terminal

    • @andrewpoganovsky4937
      @andrewpoganovsky4937 Год назад +2

      Or another way, replace "true" with "exit 0", the line will look like this: "cucumber-js test || exit 0"

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

    Will this work in selenium as well?

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

      Yes

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

      @@letcode okay thank you i will try to implement

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

      Sorry, not for Java.

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

      You can refer to this
      ruclips.net/video/P43b7UqXk-w/видео.html

  • @roharizwan4111
    @roharizwan4111 20 дней назад

    i used || true in the script to generate the report when the test fails but i am getting below error: scenarios (1 failed, 1 passed)
    3 steps (1 failed, 2 passed)
    0m05.823s (executing steps: 0m04.891s)
    'true' is not recognized as an internal or external command,operable program or batch file.
    I added exit 0 but still report is not generating

    • @letcode
      @letcode  19 дней назад

      What terminal r u using?

    • @roharizwan4111
      @roharizwan4111 19 дней назад

      @@letcode i installed gitbash and tried to run the command npm test i am getting missing script error. in the windows terminal it is running.

    • @roharizwan4111
      @roharizwan4111 19 дней назад

      i closed the vscode and opened it again . and ran the command and it is working .

    • @letcode
      @letcode  19 дней назад

      Pls share screenshot in discord, link should on the description or channel page.

    • @letcode
      @letcode  19 дней назад

      Great

  • @shilpatiwari1939
    @shilpatiwari1939 3 месяца назад +1

    Hi Kaushik , thankyou for your videos. I need your help.
    I want to print proper data in console. I am not able to share screeshot here could you please share your email. I am trying to do coding for this but its not working.

    • @letcode
      @letcode  3 месяца назад

      You can share in the discord, link is in the description and channel page.

  • @Ashokkumar-uv4fs
    @Ashokkumar-uv4fs 8 месяцев назад +1

    Hi Koushik, i am getting this error ( page.goto: net::ERR_NAME_NOT_RESOLVED at ) while running in pipeline, how to resolve this

    • @letcode
      @letcode  8 месяцев назад

      Hi, Is the url is https?

    • @Ashokkumar-uv4fs
      @Ashokkumar-uv4fs 8 месяцев назад

      @@letcode if i use http also i am getting this error.

    • @Ashokkumar-uv4fs
      @Ashokkumar-uv4fs 8 месяцев назад +1

      Getting time out error while running in playwright.

    • @letcode
      @letcode  7 месяцев назад

      Not sure about it.