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