No video

Cucumber 4 Generating Latest Extent Reports and Maven Cucumber reporting plugin

Cucumber 4 Generating Latest Extent Reports and Maven Cucumber Reporting plugin
Way2Automation - Lifetime Membership Club - FREE ACCESS TO ALL LIVE CLASSES and 15+ most demanding automation courses.
Lifetime access to all Instructor LED Manual + Automation testing courses:
way2automation....
Lifetime Access to 15+ Most demanding Automation courses video library:
www.selenium-t...
Here are some of the Ongoing Live trainings which we are conducting at the moment (You can join all these batches for FREE with Lifetime Membership Club offer):
1. Selenium with Core Java (Duration: 3 Months, Sat & Sunday 2 hours each)
2. Selenium with Python and ROBOT Framework (Duration 2 Months, Sat & Sunday @8:30 PM IST)
3. API Automation with Python and DJango Framework (Duration 2 Months, Sat & Sunday @6:30 PM IST)
4. Rest Assured & POSTMAN API Manual + Automation Testing (Duration 2 Months, Sat & Sunday @8:00 AM IST)
5. JMeter Performance Testing (Duration 1.5 Months, Sat & Sunday @10:00 AM IST)
6: SQT - Software Manual Testing - (Duration 1.5 Months, Sat & Sunday @8:30 AM IST)
7: ROBOT Framework for UI and API Automation - (Duration 2 Months, Sat & Sunday @10:00 AM IST)
You can enroll directly from this link:
way2automation....
Once done you will be added to the Group and will start receiving meeting invites for All Ongoing batches and access to the complete video library.
For more information you can mail us to: trainer@way2automation.com

Пікірлер: 77

  • @gayathrivr
    @gayathrivr2 жыл бұрын

    Tons of thanks it worked for me

  • @gobinathr8963
    @gobinathr89634 жыл бұрын

    Hi Rahul, I wanted to know from where the extent.properties file is called? And wanted to know know what are all the plugins added in test runner class. Can I get the code part or access to the repository please??

  • @apurvapote7343
    @apurvapote73436 ай бұрын

    Great explanation

  • @yuvarajsanthanakrishnan7702
    @yuvarajsanthanakrishnan77022 жыл бұрын

    If I include tag name as in pom.xml file it throws warning as Invalid plugin configuration: cucumberOutput. Kindly let me know how to solve it.

  • @TheFactMan24
    @TheFactMan243 жыл бұрын

    Hi Sir, Thanks much for the video.. Extent test report is very easy and useful.

  • @vinayrao9067
    @vinayrao90672 жыл бұрын

    My query is this, you simply run the project, but nothing to happen on web side, as this is the web automation project, then how it gave the report about passed or failed scenario

  • @meditationandrelaxationmus741
    @meditationandrelaxationmus7412 жыл бұрын

    I get forked exception problem in maven-sure-fire plugin I don't know where I am going wrong

  • @srikanthy2146
    @srikanthy21462 жыл бұрын

    Could you please help to take screen shot and attach to the report

  • @seleniumautomation

    @seleniumautomation

    2 жыл бұрын

    Try this: In Base class public String fileName; public String filePath; public void takeScreenshot() { Date d = new Date(); fileName = d.toString().replace(":", "_").replace(" ", "_")+".jpg"; filePath = System.getProperty("user.dir")+"\\target\\cucumber-reports\\advanced-reports\\extentreports\\"+fileName; File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); try { FileUtils.copyFile(scrFile, new File(filePath)); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { ExtentCucumberAdapter.getCurrentStep().addScreenCaptureFromPath(fileName); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } and then in Hooks: @After public void tearDown(Scenario scenario) { if(scenario.isFailed()) { //captureScreenshot takeScreenshot(); ExtentCucumberAdapter.getCurrentStep().fail("Screenshot"); ExtentCucumberAdapter.getCurrentStep().fail(""); } quit(); }

  • @srikanthy2146

    @srikanthy2146

    2 жыл бұрын

    Thanks for your help sir.

  • @sakthik6064
    @sakthik60644 жыл бұрын

    Hi Rahul,I am trying to generate the cucumber extent report in Jenkins...I have done the configuration as per the video...and report getting generated in my local machine but when come to Jenkins browser which is not available but my maven build run successfully and archiving the report from the local machine to Jenkins...but no reports in my Jenkins folder

  • @suruchigarg57
    @suruchigarg574 ай бұрын

    From where we will get .xml file

  • @AnilKumar-hr3jq
    @AnilKumar-hr3jq4 жыл бұрын

    Hello Sir,For me the extent reports are generated but dont not why JVM reporting is not working. I am not able to generate report itself. Any possible causes

  • @ramyasri1397
    @ramyasri13974 жыл бұрын

    Hi Sir, Could you please post the entire dependencies here. That would be really helpful.

  • @seleniumautomation

    @seleniumautomation

    4 жыл бұрын

    Here you go: org.apache.maven.plugins maven-compiler-plugin 3.8.1 1.8 1.8 org.apache.maven.plugins maven-surefire-plugin 2.18.1 true net.masterthought maven-cucumber-reporting 5.0.0 execution verify generate Way2Automation Cucumber Reports target/cucumber-reports/advanced-reports target/cucumber-reports/cucumber.json 1 false false ${project.build.directory}/cucumber-reports **/*.json ${project.build.directory}/cucumber-reports false junit junit 4.13 test io.cucumber cucumber-java8 4.8.1 io.cucumber cucumber-core 4.8.1 io.cucumber cucumber-junit 4.8.1 test com.aventstack extentreports-cucumber4-adapter 1.0.12 io.cucumber cucumber-java io.cucumber cucumber-core

  • @deeptimadhu
    @deeptimadhu3 жыл бұрын

    Cucumber jvm report worked!!

  • @rajendramahapatra3293
    @rajendramahapatra32934 жыл бұрын

    I am not able to generate Extent Report. I am using 6.1.2 version of cucumber-Java and cucumber-junit

  • @vedantjagani3760
    @vedantjagani37604 жыл бұрын

    Hi Sir, Could you please help me here? I am receiving an error: Unrecognized plugin: com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:

  • @rameshlingadalli7067

    @rameshlingadalli7067

    3 жыл бұрын

    Even I also got same error

  • @jitendrasawant3872
    @jitendrasawant38723 жыл бұрын

    Hi Rahul Thank you for your Help and video, I got error in POM after adding grasshopper adapter and i don't no how to solve plz help me and error is "Missing artifact com.github.ralfstuckert.pdfbox-layout:pdfbox2-layout:jar:1.0.0" any one plz help me in this.

  • @saitejaithagoni1168
    @saitejaithagoni11683 жыл бұрын

    Hi, when i run clean install my test are not being picked. Running Runner.TestRunner [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.681 s - in Runner.TestRunner [INFO] [INFO] Results: [INFO] [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] Could you please suggest what am I possibly doing wrong? looked in stackoverflow solutions in thier did not work

  • @seleniumautomation

    @seleniumautomation

    3 жыл бұрын

    Just run from the runner file first and then instead of doing maven clean only run maven install

  • @srikanthy2146

    @srikanthy2146

    2 жыл бұрын

    @@seleniumautomation Sir, did the same thing but no luck. Kindly help on this sir

  • @prashantshrivastava2646
    @prashantshrivastava26462 жыл бұрын

    How to add Screeb shot in andvance cucumber report when step is failed

  • @ramansharma5014
    @ramansharma50142 жыл бұрын

    Cucumber JVM report is not generating in the output directory

  • @PoojaSingh-wb8ij
    @PoojaSingh-wb8ij3 жыл бұрын

    Can your please share this TestRunner plugins?

  • @bhaskaryt6914
    @bhaskaryt69142 жыл бұрын

    How to get the extent-config.xml and extent.properties file in the resources ?? Do we create them manually ?

  • @helloramesh6193

    @helloramesh6193

    2 жыл бұрын

    im too searchingggg...

  • @sivanandakudumula4597
    @sivanandakudumula45974 жыл бұрын

    how to add screenshot on failure to these beautiful reports?

  • @seleniumautomation

    @seleniumautomation

    4 жыл бұрын

    Screenshot for this plugin will be generated with the help of logger report, In your exent.properties file add couple more fields i.e. extent.reporter.bdd.start=true extent.reporter.html.start=true extent.reporter.logger.start=true extent.reporter.html.config=html-config.xml extent.reporter.logger.config=logger-config.xml extent.reporter.html.out=test-output/HtmlReport/ExtentHtml.html extent.reporter.logger.out=test-output/LoggerReport/ and once you run your test again you will see a folder generated with the name LoggerReport, just open index.html file and you will find the screenshot link there

  • @TheFactMan24

    @TheFactMan24

    3 жыл бұрын

    Syntax-EventFiringWebDriver eDriver=new EventFiringWebDriver(driver); File srcFile = eDriver.getScreenshotAs(OutputType.FILE);

  • @srinidisomasundaram1603
    @srinidisomasundaram16034 жыл бұрын

    I'm getting a blank report. Any reason for that?

  • @vasundharaprakashreddy2740
    @vasundharaprakashreddy27404 жыл бұрын

    Hi sir, I am not able to generate reports, instead working fine with cucumber reports. Could you please tell me what might be the issue!

  • @vasundharaprakashreddy2740

    @vasundharaprakashreddy2740

    4 жыл бұрын

    Hi sir, thanks a lot for ur video.Now its working good.

  • @devarapallirohini5369
    @devarapallirohini53693 жыл бұрын

    Hi Sir, I have a small question In our project we run the script from the maven goal in IntelliJ...we dont run the runner class as JUNIT, but for generating extent reports we need to run the class as junit. Are there any other changes that can be done in pom.xml file apart from adding dependencies so that when we run the project as maven project report gets generated. Please let me know your inputs

  • @jomygeorge9102
    @jomygeorge91024 жыл бұрын

    Hi , Can yu please explain this configuration of extent report with the existing framework (POM with page factory in cucumber - Udemy course) .So that we can update the extent report from 1.1 to 4.0.

  • @priyatewari8663
    @priyatewari86632 жыл бұрын

    Hello Rahul, I am getting below error: java.lang.IllegalArgumentException: The plugin specification 'com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:' has a problem: Could not load plugin class 'com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter'. Plugin specifications should have the format of PLUGIN[:[PATH|[URI [OPTIONS]]] Valid values for PLUGIN are: html, json, junit, message, pretty, progress, rerun, summary, teamcity, testng, timeline, unused, usage

  • @seleniumautomation

    @seleniumautomation

    2 жыл бұрын

    Extent cucumber dependency must match your cucumber dependency version

  • @geethapanneerselvam6031
    @geethapanneerselvam60314 жыл бұрын

    Hi Sir, Thanks much for the video.. it worked out👍

  • @seleniumautomation

    @seleniumautomation

    4 жыл бұрын

    You're welcome Geetha !!!

  • @srikanthy2146

    @srikanthy2146

    2 жыл бұрын

    @Geetha, Could you please me, I couldn't get this done.

  • @meghnabakshi7648
    @meghnabakshi76484 жыл бұрын

    Hello Sir, Where can i get this extent.config file and extent. properties file?

  • @Venkateshrajendran21
    @Venkateshrajendran213 жыл бұрын

    Hi Sir, Kindly explain how to handle the generate extent report with proper execution results ?

  • @helloramesh6193

    @helloramesh6193

    2 жыл бұрын

    search another vidoes doesnot have clarity

  • @rajasekharmaddigalla1463
    @rajasekharmaddigalla14634 жыл бұрын

    Hi sir, could you please help on how to add a screenshot and how to trigger this extent report to the mail using extentreports-cucumber4-adapter

  • @seleniumautomation

    @seleniumautomation

    4 жыл бұрын

    Screenshot for this plugin will be generated with the help of logger report, In your exent.properties file add couple more fields i.e. extent.reporter.bdd.start=true extent.reporter.html.start=true extent.reporter.logger.start=true extent.reporter.html.config=html-config.xml extent.reporter.logger.config=logger-config.xml extent.reporter.html.out=test-output/HtmlReport/ExtentHtml.html extent.reporter.logger.out=test-output/LoggerReport/ and once you run your test again you will see a folder generated with the name LoggerReport, just open index.html file and you will find the screenshot link there

  • @rajasekharmaddigalla1463

    @rajasekharmaddigalla1463

    4 жыл бұрын

    @@seleniumautomation Thanks a lot for your replay sir, when compared to other channels I found, your channel is so good.And one last question."Sir, how can we send this extent report directly to the mail", do we have any way to trigger directly to our mail? Thank you once again

  • @amrutaselmokar1126
    @amrutaselmokar11264 жыл бұрын

    Hello Sir, i am not able to see your project can you please help me to find project'

  • @ashirbadprusty9327
    @ashirbadprusty93274 жыл бұрын

    Hi Sir, How to add screenshot in Cucumber Maven Report? Thanks

  • @erikgacitua4181

    @erikgacitua4181

    3 жыл бұрын

    + 1

  • @santhoshkumar-vp5nf
    @santhoshkumar-vp5nf4 жыл бұрын

    I'm using Cucumber 5, will it work?

  • @hussamyasin8586
    @hussamyasin85864 жыл бұрын

    Hello Mr. Rahul, I tried the steps mentioned in the video and I keep getting below error. also I have purchased your course on udemy and watched the detailed tutorial but still im not able to fix it: io.cucumber.core.exception.CucumberException: Couldn't load plugin class: com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter

  • @seleniumautomation

    @seleniumautomation

    4 жыл бұрын

    What all dependencies you have added?

  • @hussamyasin8586

    @hussamyasin8586

    4 жыл бұрын

    @@seleniumautomation Its too long im not able to paste it here the page keep hanging, would you please gimme an email address that I can share you the POM file on ?

  • @seleniumautomation

    @seleniumautomation

    4 жыл бұрын

    @@hussamyasin8586 trainer@way2automation.com

  • @sreejishnu8226

    @sreejishnu8226

    4 жыл бұрын

    @Selenium Tutorial @Hussam Yasin Im also getting the same error. Could you please help me to resolve it?

  • @shankarsh7572

    @shankarsh7572

    4 жыл бұрын

    @@seleniumautomation Even i was getting the same error. Could you please let me know the changes required ?

  • @cllanosf
    @cllanosf4 жыл бұрын

    please share the github link How to capture evidence within the report Excuse my English, I don't speak much .. I'm from Peru ... congratulations for the video and for sharing knowledge

  • @ashishpadiyar27

    @ashishpadiyar27

    3 жыл бұрын

    public static void teardown(Scenario s) { if (s.isFailed()) //isfailed method of stepresult in cucumber { final byte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); s.attach(screenshot, "image/png", "screenshot"); // s.embed(screenshot, "image/png"); } driver.quit(); }

  • @fayazbaig2490
    @fayazbaig24903 жыл бұрын

    Thanks a lot please share the link of this code please

  • @mdhossain3532
    @mdhossain35324 жыл бұрын

    hi, Rahul. can you make this video again by showing how to run this maven projects from window command please .

  • @seleniumautomation

    @seleniumautomation

    4 жыл бұрын

    The project was created and executed on Windows itself, anything specific you are looking for?

  • @mdhossain3532

    @mdhossain3532

    4 жыл бұрын

    I was able to create the jvm report but I want know how can I run this maven cucumber project from windows command line

  • @poojanavdeti1031
    @poojanavdeti10314 жыл бұрын

    please share the github link

  • @hima3867
    @hima38674 жыл бұрын

    hello sir , how to add screenshot in this report

  • @ashishpadiyar27

    @ashishpadiyar27

    3 жыл бұрын

    public static void teardown(Scenario s) { if (s.isFailed()) //isfailed method of stepresult in cucumber { final byte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); s.attach(screenshot, "image/png", "screenshot"); // s.embed(screenshot, "image/png"); } driver.quit(); }

  • @imtiazbasha4359
    @imtiazbasha43593 жыл бұрын

    Can you share entire pom.xml file plz

  • @naani55
    @naani554 жыл бұрын

    hi sir .. can you please share extent config xml file

Келесі