Merging multiple cucumber json into Single cucumber HTML report

Merging multiple cucumber.json into Single cucumber HTML report during parallel execution or rerun script execution.
When you execute parallel in cucumber you get multiple cucumber json or when you execute rerun script you get multiple cucumber json, so using maven cucumber report we can merger the all cucumber json into single cucumber html report. This new feature of maven cucumber report in after 3.16,0 version

Пікірлер: 23

  • @bussinessmindset8839
    @bussinessmindset88394 жыл бұрын

    Very nice.nicely explain

  • @iliiasnazaraliev1498
    @iliiasnazaraliev14984 жыл бұрын

    Hey Niraj, I really appreciated sharing your knowledge with us. I am using gradle, is there a way that I can use surefire with gradle and can run parallel? And also could u help me convert to gradle your your pom where u did merging reports in this video, thank you!

  • @kaviarasu5658
    @kaviarasu56583 жыл бұрын

    Hi I have one doubt in my testxml file ,I have 121 script while executing 40 script and I got the screenshot for that 40 script and in second 43 script failed and I got that screen shot but in overview-features.html total script executed show 130 and failed script 53 and in common 40 script same as in first run and second run 13 script extra added which were from first run but I need only the results from second run now to overcome this issue

  • @NirajGupta

    @NirajGupta

    3 жыл бұрын

    if you want to overwrite the result with second run then always generate your result under target folder. So that when you run mvn clean install then clean will clear the target folder.

  • @sreekanth7486
    @sreekanth74863 жыл бұрын

    Hi Niraj. Am getting Java memory out of space issue While am keeping end-to-end run. Because if this, it is not generating cucumber.json report it is throwing error.

  • @NirajGupta

    @NirajGupta

    3 жыл бұрын

    look like memory is leaking. check your code you might be creating lost of object and not destroying. try to execute your code from command prompt

  • @darshanvinay9685
    @darshanvinay9685 Жыл бұрын

    Hi after rerun failed test is passed in second attempt but in console its showing as 1 failures,any solution for this

  • @NirajGupta

    @NirajGupta

    Жыл бұрын

    No it will show.since cucumber does not know thats its runing same scenario. It treating 2 scenario

  • @marvinvillamar4825
    @marvinvillamar4825 Жыл бұрын

    Hello, I have the same problem, but upon implementing this solution, it can't run the 2nd runner class which should run the failed test case from the text file, can you help me with this one?

  • @NirajGupta

    @NirajGupta

    Жыл бұрын

    Did you included the second runner class in pom.xml like this-- org.apache.maven.plugins maven-surefire-plugin 2.19 7 true **/TestRunner*

  • @ayush3032
    @ayush30323 жыл бұрын

    Hey Niraj Can we do a real time monitoring in cucumber json reporting Like when we execute tests then we can see real time data Because in json report is generating after whole execution

  • @NirajGupta

    @NirajGupta

    3 жыл бұрын

    no.it generate report after cucumber.json had generated which happen after completion of execution of script

  • @ayush3032

    @ayush3032

    3 жыл бұрын

    @@NirajGupta Yes Is there any way we can see report at the runtime. Suppose first we generate a cucumber.json report and when we redo some testcases we want to update that cucumber.json report and see at run time

  • @NirajGupta

    @NirajGupta

    3 жыл бұрын

    @@ayush3032 custom report can be create using javascript and html

  • @RaviKumar-fq9qg
    @RaviKumar-fq9qg Жыл бұрын

    After executing failed scenarios, finally build is also getting failed.. Do you have any solution for this? For ex: I ran 2 scenarios in first run and 1 got failed.. then failed scenario is running again and got passed.. But build is getting failed..

  • @NirajGupta

    @NirajGupta

    Жыл бұрын

    the build should not fail if the failed test had passed.check are you you all latest dependency

  • @vinayraj2505
    @vinayraj2505 Жыл бұрын

    Hi Niraj I am able to rerun the failed scenario generate report but in report screenshots is missing could you please help me

  • @NirajGupta

    @NirajGupta

    Жыл бұрын

    Check the path of screen shot

  • @ranjithg6455
    @ranjithg64553 жыл бұрын

    Hi Niraj, Thanks for the video. I have tried in my project. Am not getting consolidated when I parallely. Could you please help me out.

  • @NirajGupta

    @NirajGupta

    3 жыл бұрын

    What error are you Getting. are you using the json report file name as --/cucumber.json

  • @xiachen-jm7of

    @xiachen-jm7of

    Жыл бұрын

    @@NirajGupta Similar problem for me, the final html report is not generated while there are failed cases need rerun. Could you help me out also?

  • @ravishinde4810
    @ravishinde48102 жыл бұрын

    Where is the code of plugin and all of that???

  • @NirajGupta
    @NirajGupta4 жыл бұрын

    net.masterthought maven-cucumber-reporting 5.0.0 execution verify generate cucumber-jvm-example ${project.build.directory}/cucumber-JVM-reports true 42 false ${project.build.directory} **/cucumber.json true true