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
Tons of thanks it worked for me
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??
Great explanation
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.
Hi Sir, Thanks much for the video.. Extent test report is very easy and useful.
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
I get forked exception problem in maven-sure-fire plugin I don't know where I am going wrong
Could you please help to take screen shot and attach to the report
@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
2 жыл бұрын
Thanks for your help sir.
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
From where we will get .xml file
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
Hi Sir, Could you please post the entire dependencies here. That would be really helpful.
@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
Cucumber jvm report worked!!
I am not able to generate Extent Report. I am using 6.1.2 version of cucumber-Java and cucumber-junit
Hi Sir, Could you please help me here? I am receiving an error: Unrecognized plugin: com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:
@rameshlingadalli7067
3 жыл бұрын
Even I also got same error
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.
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
3 жыл бұрын
Just run from the runner file first and then instead of doing maven clean only run maven install
@srikanthy2146
2 жыл бұрын
@@seleniumautomation Sir, did the same thing but no luck. Kindly help on this sir
How to add Screeb shot in andvance cucumber report when step is failed
Cucumber JVM report is not generating in the output directory
Can your please share this TestRunner plugins?
How to get the extent-config.xml and extent.properties file in the resources ?? Do we create them manually ?
@helloramesh6193
2 жыл бұрын
im too searchingggg...
how to add screenshot on failure to these beautiful reports?
@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
3 жыл бұрын
Syntax-EventFiringWebDriver eDriver=new EventFiringWebDriver(driver); File srcFile = eDriver.getScreenshotAs(OutputType.FILE);
I'm getting a blank report. Any reason for that?
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
4 жыл бұрын
Hi sir, thanks a lot for ur video.Now its working good.
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
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.
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
2 жыл бұрын
Extent cucumber dependency must match your cucumber dependency version
Hi Sir, Thanks much for the video.. it worked out👍
@seleniumautomation
4 жыл бұрын
You're welcome Geetha !!!
@srikanthy2146
2 жыл бұрын
@Geetha, Could you please me, I couldn't get this done.
Hello Sir, Where can i get this extent.config file and extent. properties file?
Hi Sir, Kindly explain how to handle the generate extent report with proper execution results ?
@helloramesh6193
2 жыл бұрын
search another vidoes doesnot have clarity
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
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
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
Hello Sir, i am not able to see your project can you please help me to find project'
Hi Sir, How to add screenshot in Cucumber Maven Report? Thanks
@erikgacitua4181
3 жыл бұрын
+ 1
I'm using Cucumber 5, will it work?
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
4 жыл бұрын
What all dependencies you have added?
@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
4 жыл бұрын
@@hussamyasin8586 trainer@way2automation.com
@sreejishnu8226
4 жыл бұрын
@Selenium Tutorial @Hussam Yasin Im also getting the same error. Could you please help me to resolve it?
@shankarsh7572
4 жыл бұрын
@@seleniumautomation Even i was getting the same error. Could you please let me know the changes required ?
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
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(); }
Thanks a lot please share the link of this code please
hi, Rahul. can you make this video again by showing how to run this maven projects from window command please .
@seleniumautomation
4 жыл бұрын
The project was created and executed on Windows itself, anything specific you are looking for?
@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
please share the github link
hello sir , how to add screenshot in this report
@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(); }
Can you share entire pom.xml file plz
hi sir .. can you please share extent config xml file