This is resolved now actually we have to store the extent.properties and extent-config.xml in resources folder after that it will generate the extent report
Great explanation. I have one doubt Whenever I am executing new test case older report was override . Can u guide me how to avoide report override problem
Hello sir, code running successfully after following the steps properly with correct path as well but unable to generate report, I did refresh the project, rebuild project, mvn clean as well but no report is generating. I tried with cucumber6 and cucumber7 too please help me out to generate report
Hey naveen or any one from this chat.where can I get the extent-config.xml and other files. Can you please share here or else any github do I need to navigate
@@vaibhavgawande5503 for me html is created but pdf is not getting created. Could you please help me on this. Using cucumber junit. Did all the config as mentioned in the git. Could you please help me on the same
@naveen_hc1902b please guide me on how to add the screenshots in the test output folder when generating the extent spark reporter, I followed your video on youtube but screenshots are not generating under the test output folder
Hi Naveen, May i know how to enable offline mode of extent report. We are working in a environment where internet is disabled, so we are not able to see proper report.
Dear Naveen, I am using the extent reports in a cucumber framework and was able to generate the pdf and the extent spark html report using the above directions but had not placed the config file as specified. I ram my runner and the reports both html and pdf were generated without placing the config file. Thought of letting you know and perhaps you could also guide me if it is the correct approach
I am getting the same error. cucumber.runtime.CucumberException: Unrecognized plugin: com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:
@@beedyb220 I figured out that it's the dependency issue. Though I run my project through testing. You can try with this. UTF-8 1.8 4.13.1 6.9.0 3.8.1 2.22.2
io.cucumber cucumber-java 6.9.1
io.cucumber cucumber-junit ${cucumber.version} test
junit junit ${junit.version} test
org.seleniumhq.selenium selenium-java 3.141.59
io.github.bonigarcia webdrivermanager 4.2.2
tech.grasshopper extentreports-cucumber6-adapter 2.6.0 test
@ Naveen AutomationLabs Hi i have watched this video twice n followed all your instructions, but still the test-output folder is not created for me. Can you please tell me what i could have missed? There is no error as well
@@prasanthalex6514 Hi Prashanth, my issue got resolved. The mistake i made was , i placed the extent.properties and extent-config.xml files in the src/test/resources/config folder , which is wrong. I should have placed it in src/test/resources. Check if you placed the files under the right folders.Let me know if this helped.
Hi, I had placed my xml and properties under resources folder only. Which are the dependencies added in POM.xml and version? Could you pls help.. the test-output folder itself not getting generated.
@@prasanthalex6514 if you follow everything that Naveen has mentioned in the video ,it should work fine. Use the same versions Naveen has used .Download his project from the git repository he has mentioned
@@shashibhushanv6301 GitHub is not accessible in some of the client locations due to security concerns. That’s why I asked this question. Is there any official website where can we find what to be written in extent.properties and extent-config.xml?
The moment I add "extentreports-cucumber6-adapter" dependency in pom.xml , I am getting "Missing artifact com.github.ralfstuckert.pdfbox-layout:pdfbox2-layout:jar:1.0.0" error in pom. Is anyone facing this issue? If you have the solution please share.
I try the same thing, but when i run my test runner file it gives error and this error is due to add "com.aventstack.exetent......"adapter in plugin in test runner file , when i comment this line my code works fine
My project in the TestNG framework and my requirement is need to create a test report with PDF format. Whether this code get been adopted? or do you have any other possibility to create a report in the PDF format using TestNG framework?
hello naveen thanks for such informative content i have doubt can it possible to generate html report with time stamp because when i run re run the test previous report is override can you please let me know is it possible to generate unique html report name with extent.properties. if yes please reply me i search all over youTube but i didn't get any videos related to this.
Hello Naveen, while i am doing same as you for get report, I am facing error like initialization error. I am not getting why i am facing this error. Can you please help me on this
Hi Naveen , java.lang.AbstractMethodError: Receiver class io.cucumber.testng.TestNGCucumberOptionsProvider$TestNGCucumberOptions does not define or inherit an implementation of the resolved method 'abstract boolean strict()' of interface io.cucumber.core.options.CucumberOptionsAnnotationParser$CucumberOptions. can anyone please help to resolve this error
Thank you so much for this video! YOUR clear explanation of the extent spark report and PDF report for Cucumber BDD has truly helped me understand the concepts better. Your content is always so informative and well-presented. Keep up the great work sir!
Hi Naveen, I have tried that report url in another system but i can't able access the report, it's not open there is any idea please share because I need send the report to another person
Hi Naveen 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 naveen, io.cucumber.core.exception.CucumberException: java.lang.NoSuchFieldError: VERSION_2_3_30 getting following error on trying to run the tcs, can you please look into it Added latest version of extentreports-cucumber7-adapter and cucumber in pom.xml file.
Hi Naveen, I followed your video. I am able to generate the spark.pdf and spark.html file. but for the error screen shot is added into the file. could you please explain why it is not added into the html file. and setting or additional code you have for screenshot and attached into the file.
Hi Naveen, this is dinesh. I have made same configurations as you did but output results file is not displaying even though after refreshing the project
Hi Naveen, I have a springboot framework and using Scenario Outlines all over and using Cucumber5 adapter of grasshopper. Issue - Only the folder is getting created in test-output, but the html file is not getting generated. Could you please help. I saw your video is with Cucumber6, but when I try to upgrade my dependencies to 6, I am getting a lot of compile time errors. So upgrade is not possible since its a huge project.
Hi Sir, Once i added the dependency i am getting the below error in the POM.xml file, Kindly assist. Missing artifact com.github.ralfstuckert.pdfbox-layout:pdfbox2-layout:jar:1.0.0
Through jenkins when I triggered the cucumber testcases and sending mail using editable email notifications plugin that time screenshot are not getting attach with the Extent html report, can you please advice what change need to make
Hi Naveen I am getting exception while flusing the extent report(Version using 4.0.9 ExtentSparkerReporter) freemakre.template.TemplateNotFoundException:template not found for name "spark/test/ftl" This was interpreted by this TemplateLoader: [freemarker.cache.ClassTemplateLoader.toString() failed: java.lang.NoClassDefFoundError: freemarker/cache/TemplateLoaderUtils] Can you send me the solution/fix for this, I am not at all getting the relation between freemarker and extentreport
Very good Explanation thanks for that but i'd like to add a question " I have cucumber code and done as you said but also I have a testng file which is running 3 Tests which will run cucumber runner Scenario and each test has different browser as a parameter and I want to get the report file for all of the parallel tests run with different names I hope you got my problem ===== I will tell u now the Actual thing happened with me. it succeeded on getting all scenarios with Tests names but my problem is the 3 TEsts has the same name so I will not differentiate between them using the browser parameter so if any thing failed I will not understand from report from which Test it is failing and I will need to check the logs the other thing that each scenario if I make Data provider it will be with the same name also I will not so I wanted to make the dataprovider value next to the scenario name to differentiate between the scenarios
HI Naveen, Could you please provide details whether we can able create a spark report with datetime format.As of now the reports are overriding with old one.
Hi Naveen Thanks for he amazing video. Just had one question. In the test Runner file while adding the adapter in the plugin I am getting the initialization error for the Plugin: java.lang.IllegalArgumentException: The plugin specification 'com.avenstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:' has a problem: Could not load plugin class 'com.avenstack.extentreports.cucumber.adapter.ExtentCucumberAdapter'. Plugin specifications should have the format of PLUGIN[:[PATH|[URI [OPTIONS]]] I have provided the plugin in the same way you have demonstrated in the video. Pls suggest what could be the issue?
hi naveen, great tutuorial on reports, i really like pdf report and need to implement into my project .. But pdf report is not generating in my case. Please help me out in configuring for pdf report.. I will be waiting for ur reply I have used same configuration adn code which u have shown in video, but its not generating pdf report Thank you..!
Hello Naveen, I have one query.. I have noticed that failed test cases screenshot is getting saved with name embedded1, embedded2 and so on, instead of being saved with actual failed scenario name. Could you please help and let us know how this can be done... Following is the logic you demonstrated in video public void tearDown(Scenario scenario) { if (scenario.isFailed()) { // take screenshot: String screenshotName = scenario.getName().replaceAll(" ", "_"); byte[] sourcePath = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); scenario.attach(sourcePath, "image/png", screenshotName); }
I added the dependency , config and properties file. I am getting Initialization error after add this plugin in the runner file "com.aventstack.extentreports.cucumber.adaptor.ExtentCucumberAdapter:" anyone help me to solve this issue
Hi Naveen, i followed your video. Really nice explanation.just one question: while generating screenshots I am able to generate screenshot from local but other users are not able to see the screenshots. I tried using relative path for 'addscreenshotfrompath' but it is not working. Could you please help me solve this
Great video Naveen Sir. But I am not able to configure this report with IRetryAnalyzer. For retried scnearios, this report is adding them as failed cases, so the numbers coming in the report is not reliable. Can somebody please guide me as to how can I configure this report along with Iretry analyzer. I am using a gradle project with cucumber and testng
Cucumber Repo URL : github.com/naveenanimation20/LatestCucumber6WithPOM
thank you
Can we customize this repot
from where we need to copy the properties content and xml content and plugin line of the report?
In My case it is not generating any test-output folder and not showing any error. Any one can help me.......??
This is resolved now actually we have to store the extent.properties and extent-config.xml in resources folder after that it will generate the extent report
naveen can we take screenshot for failed testcase?
Hello sir , i tried to execute but extent reports not generated
Great explanation.
I have one doubt
Whenever I am executing new test case older report was override .
Can u guide me how to avoide report override problem
how to add custom text in spark report
Hi while running via command line these reports were not generated please help
How to add runtime system info in report??
Extent.setsysteminfo is not working
Where I can get this code?
I followed this video but I didnt get "text output",pdf file .Did I miss any dependency
@Naveen
The html report is generating but the pdf report is not generating at all
Please help me
from where can i get extent-config.xml code?
Thankyou sir but ,There is no extentconfig xml file available on your git repository , sir can you please check once again
My bad i got it thanks 🙂
reallyyyyyyyyyyyyyyyyyy nice
Hello sir, code running successfully after following the steps properly with correct path as well but unable to generate report, I did refresh the project, rebuild project, mvn clean as well but no report is generating. I tried with cucumber6 and cucumber7 too
please help me out to generate report
@Naveen automation please help me to generate the screenshots in the test-output folder screenshot is not showing after refreshing the project
It didn't generate reports in my case
i did not get pdf report
is this spark pdf report achievable for testng as well?
Hey naveen or any one from this chat.where can I get the extent-config.xml and other files.
Can you please share here or else any github do I need to navigate
github.com/naveenanimation20/LatestCucumber6WithPOM/blob/master/src/test/resources/extent-config.xml
can anyone help me in getting get repository URL as mentioned by naveen?
I'm getting cucumberException: NoclassDefFoundError.. What to do?
Hello Naveen, can you send the pom.xml file. I am having existing framework. After adding dependency I am getting error in pom.xml
Hi Naveen I implemented this report in my office and executives love PDF report.🎉🎉. In PDF report, the title says cucumber report. Can we change it ?
Hi I could able to generate the extent report but screenshots for the failed cases were not adding. Could you please help?
can we add logs to this extent report??
Can we get the browser name and OS name in these Extent Reports?
Hi Naveen , i followed the steps mentioned in the video but for me test-output folder is not getting generated. Could you please help here
Use // in the Path of your extent-config. XMl file Example:
src//test//resources//extent-config.xml
And Your Issue Will be Solved
@@vaibhavgawande5503 for me html is created but pdf is not getting created. Could you please help me on this. Using cucumber junit. Did all the config as mentioned in the git. Could you please help me on the same
@naveen_hc1902b please guide me on how to add the screenshots in the test output folder when generating the extent spark reporter, I followed your video on youtube but screenshots are not generating under the test output folder
Hi Naveen, May i know how to enable offline mode of extent report. We are working in a environment where internet is disabled, so we are not able to see proper report.
Hi Naveen either HTML or PDF report doesnt generate when we run using maven cmd like mvn clean test
Dear Naveen, I am using the extent reports in a cucumber framework and was able to generate the pdf and the extent spark html report using the above directions but had not placed the config file as specified. I ram my runner and the reports both html and pdf were generated without placing the config file. Thought of letting you know and perhaps you could also guide me if it is the correct approach
My framework having the testng and cucumber scripts. How can I handle both the things with extent report? Kindly suggest
I'll publish separate video with testNG
@@naveenautomationlabs thank you so much
@@naveenautomationlabs Is this published? If yes could you please share the video
Hi Naveen, Where I will find this extent-config.xml file?
It's giving me this error "Unrecognized plugin: com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"
I am getting the same error. cucumber.runtime.CucumberException: Unrecognized plugin: com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:
@@beedyb220 I figured out that it's the dependency issue. Though I run my project through testing. You can try with this.
UTF-8
1.8
4.13.1
6.9.0
3.8.1
2.22.2
io.cucumber
cucumber-java
6.9.1
io.cucumber
cucumber-junit
${cucumber.version}
test
junit
junit
${junit.version}
test
org.seleniumhq.selenium
selenium-java
3.141.59
io.github.bonigarcia
webdrivermanager
4.2.2
tech.grasshopper
extentreports-cucumber6-adapter
2.6.0
test
org.testng
testng
7.1.0
test
io.cucumber
cucumber-testng
6.9.1
org.apache.maven.plugins
maven-compiler-plugin
${maven.compiler.version}
UTF-8
${java.version}
${java.version}
org.apache.maven.plugins
maven-surefire-plugin
${maven.surefire.version}
@ Naveen AutomationLabs Hi i have watched this video twice n followed all your instructions, but still the test-output folder is not created for me. Can you please tell me what i could have missed? There is no error as well
I've the same issue, anyone help?
@@prasanthalex6514 Hi Prashanth, my issue got resolved. The mistake i made was , i placed the extent.properties and extent-config.xml files in the src/test/resources/config folder , which is wrong. I should have placed it in src/test/resources. Check if you placed the files under the right folders.Let me know if this helped.
Hi, I had placed my xml and properties under resources folder only. Which are the dependencies added in POM.xml and version? Could you pls help.. the test-output folder itself not getting generated.
@@prasanthalex6514 if you follow everything that Naveen has mentioned in the video ,it should work fine. Use the same versions Naveen has used .Download his project from the git repository he has mentioned
@@socialmedia434 Could you please give the git link?
Where did you find what to be written in extent.properties and extent-config.xml files?
Naveen has committed his code today morning into his github repo, please check.
@@shashibhushanv6301 GitHub is not accessible in some of the client locations due to security concerns. That’s why I asked this question. Is there any official website where can we find what to be written in extent.properties and extent-config.xml?
@@rajendramahapatra3293
for extent.properties ...
extent.reporter.spark.start=true
extent.reporter.spark.out=test-output/SparkReport/Spark.html
extent.reporter.spark.config=src/test/resources/extent-config.xml
extent.reporter.spark.out=test-output/SparkReport/
screenshot.dir=test-output/
screenshot.rel.path=../
extent.reporter.pdf.start=true
extent.reporter.pdf.out=test output/PdfReport/ExtentPdf.pdf
#basefolder.name=reports
#basefolder.datetimepattern=d-MMM-YY HH-mm-ss
extent.reporter.spark.vieworder=dashboard,test,category,exception,author,device,log
systeminfo.os=Windows
systeminfo.user=Tester
systeminfo.build=1.1
systeminfo.AppName=AutomationPractice
@@rajendramahapatra3293
for extent-config.xml
dark
UTF-8
http
Demo Web Shop
Demo Web Shop - Automation Test Report
bottom
@@shashibhushanv6301 Thanks alot, i was just looking for these files.
The moment I add "extentreports-cucumber6-adapter" dependency in pom.xml , I am getting "Missing artifact com.github.ralfstuckert.pdfbox-layout:pdfbox2-layout:jar:1.0.0" error in pom. Is anyone facing this issue? If you have the solution please share.
If you're not using pdf, you can do this
tech.grasshopper
extentreports-cucumber6-adapter
2.6.0
com.github.ralfstuckert.pdfbox-layout
pdfbox2-layout
I try the same thing, but when i run my test runner file it gives error and this error is due to add "com.aventstack.exetent......"adapter in plugin in test runner file , when i comment this line my code works fine
My project in the TestNG framework and my requirement is need to create a test report with PDF format. Whether this code get been adopted? or do you have any other possibility to create a report in the PDF format using TestNG framework?
@Naveen AutomationLabs - Could you please provide your feedback
Can we add screenshot in pdf as well. If yes then can you please guid how we van do that
It is possible to add screenshots. Use the latest version 2.8.2. For more details refer to grasshopper.tech/2098/ and grasshopper.tech/2224/
Hi Naveen, can i get the git repository link for the code which was used in this video.
Particularly i need .xml code
Is it available for python with selenium?
Need to investigate
Can u please help me how to add api logs req n res to cucumber 6 extent spark report using cucumber 6 adapter
Sir can we customize our log , pdf, html report names with latest time stamps. if yes plz help on this.
hello naveen thanks for such informative content i have doubt can it possible to generate html report with time stamp because when i run re run the test previous report is override can you please let me know is it possible to generate unique html report name with extent.properties. if yes please reply me i search all over youTube but i didn't get any videos related to this.
Hello Naveen,
while i am doing same as you for get report, I am facing error like initialization error. I am not getting why i am facing this error. Can you please help me on this
Hi Naveen ... I'm not able to find extent.properties and extent-config.xml codes ... can u please help me to get those
Hi Naveen ,
java.lang.AbstractMethodError: Receiver class io.cucumber.testng.TestNGCucumberOptionsProvider$TestNGCucumberOptions does not define or inherit an implementation of the resolved method 'abstract boolean strict()' of interface io.cucumber.core.options.CucumberOptionsAnnotationParser$CucumberOptions. can anyone please help to resolve this error
Is there anyway to edit the Document Title and report title at runtime? I cant seem to grab the reporter in my stepdefinitions to set the config.
Thank you so much for this video! YOUR clear explanation of the extent spark report and PDF report for Cucumber BDD has truly helped me understand the concepts better. Your content is always so informative and well-presented. Keep up the great work sir!
Hi Naveen, I have tried that report url in another system but i can't able access the report, it's not open there is any idea please share because I need send the report to another person
I added the extent properties and config xml but testout folder is not generated , not sure what iam missing
Hi Naveen, could you please share the git repo of extent report ?
Hi Naveen 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.
This worked for me, if you're not using pdf, you can do this
tech.grasshopper
extentreports-cucumber6-adapter
2.6.0
com.github.ralfstuckert.pdfbox-layout
pdfbox2-layout
Hello, Naveen, How to change the report name for each execution it will override the the existing report.
Hi,
Can you please provide github url for this project
Hello sir, can we change the heading of pdf report in replace of "cucumber"
How can we write a testrunner in such way that can be run by either junit or testng
Nice! Bur If you share completed code would be superb. I hope you will upload
Hi Naveen, please share the code and configuration for this video. I am getting runtime error on plugin in test runner file
Naveen need ur help wen i run the project through maven i m not able to generate report getting pdfboxlayout issue
If you're not using pdf, you can use below dependency , you will not get that error
tech.grasshopper
extentreports-cucumber6-adapter
2.6.0
com.github.ralfstuckert.pdfbox-layout
pdfbox2-layout
Hi, can anyone give the giturl of the extent-config.xml pls. i could not find it .
Hi
hi all, if anyone has extent reports.properties file and extent-config.xml file, please share with me OR share the gitRepository link
HI naveen, io.cucumber.core.exception.CucumberException: java.lang.NoSuchFieldError: VERSION_2_3_30 getting following error on trying to run the tcs, can you please look into it
Added latest version of extentreports-cucumber7-adapter and cucumber in pom.xml file.
Hi Naveen,
I followed your video. I am able to generate the spark.pdf and spark.html file. but for the error screen shot is added into the file. could you please explain why it is not added into the html file.
and setting or additional code you have for screenshot and attached into the file.
Most probably u need to check the screenshot.dir and screenshot.rel.path settings.
Well explained. Super useful. Thanks Bro. Keep doing...
Hi Naveen, this is dinesh. I have made same configurations as you did but output results file is not displaying even though after refreshing the project
Very nice, can you please share this code any link?
Hi Naveen,
I have a springboot framework and using Scenario Outlines all over and using Cucumber5 adapter of grasshopper.
Issue - Only the folder is getting created in test-output, but the html file is not getting generated.
Could you please help.
I saw your video is with Cucumber6, but when I try to upgrade my dependencies to 6, I am getting a lot of compile time errors. So upgrade is not possible since its a huge project.
How to Get an Access for Git Repository for this session?
Never thought I would get all reports at first try, thanks sir
Hi Sir, Once i added the dependency i am getting the below error in the POM.xml file,
Kindly assist.
Missing artifact com.github.ralfstuckert.pdfbox-layout:pdfbox2-layout:jar:1.0.0
How did you resolve this, I am getting similar issue.
thanks for detailed explanation, but I am not able to get screenshot
Hello Sir could you please explain how to archive these reports?
Hi naveen..it is possible to add text file or excel file path to extent report..Kindly advice on this..
Through jenkins when I triggered the cucumber testcases and sending mail using editable email notifications plugin that time screenshot are not getting attach with the Extent html report, can you please advice what change need to make
Hi Naveen, do we have similar plugins to convert extentreport to PDF for selenium? Thanks
How to explain bdd cucumber framework explain folder structure
Hi Naveen
I am getting exception while flusing the extent report(Version using 4.0.9 ExtentSparkerReporter)
freemakre.template.TemplateNotFoundException:template not found for name "spark/test/ftl"
This was interpreted by this TemplateLoader: [freemarker.cache.ClassTemplateLoader.toString() failed: java.lang.NoClassDefFoundError: freemarker/cache/TemplateLoaderUtils]
Can you send me the solution/fix for this, I am not at all getting the relation between freemarker and extentreport
Very good Explanation thanks for that but i'd like to add a question " I have cucumber code and done as you said but also I have a testng file which is running 3 Tests which will run cucumber runner Scenario and each test has different browser as a parameter and I want to get the report file for all of the parallel tests run with different names I hope you got my problem ===== I will tell u now the Actual thing happened with me. it succeeded on getting all scenarios with Tests names but my problem is the 3 TEsts has the same name so I will not differentiate between them using the browser parameter so if any thing failed I will not understand from report from which Test it is failing and I will need to check the logs the other thing that each scenario if I make Data provider it will be with the same name also I will not so I wanted to make the dataprovider value next to the scenario name to differentiate between the scenarios
HI Naveen, Could you please provide details whether we can able create a spark report with datetime format.As of now the reports are overriding with old one.
I think if you save your reports in a different folder other than “target”, then old one will not be overrided
Is extent report is possible only in Cucumber-TestNg dependency or it is possible in Cucumber-Junit Dependency
Works for both
Thanks for nice video. Any video for using Extent Spark report with Rest Assure Cucumber combination to log all URI, Request, Response details also.
Hi Naveen,
How can we generate PDF report in TestNG.?
I am using TestNG framework.
Hi Naveen
Thanks for he amazing video.
Just had one question. In the test Runner file while adding the adapter in the plugin I am getting the initialization error for the Plugin:
java.lang.IllegalArgumentException: The plugin specification 'com.avenstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:' has a problem:
Could not load plugin class 'com.avenstack.extentreports.cucumber.adapter.ExtentCucumberAdapter'.
Plugin specifications should have the format of PLUGIN[:[PATH|[URI [OPTIONS]]]
I have provided the plugin in the same way you have demonstrated in the video. Pls suggest what could be the issue?
even i am also got the same error ..is there any solution for this
Have you got any solution for this I'm also facing the same issue. please reply....
Generate Spark Extent HTML and PDF Report using selenium with java?
hi naveen, great tutuorial on reports, i really like pdf report and need to implement into my project .. But pdf report is not generating in my case. Please help me out in configuring for pdf report.. I will be waiting for ur reply
I have used same configuration adn code which u have shown in video, but its not generating pdf report
Thank you..!
Same problem here, did you find a solution ?
@@ismailhaiber4434 Are u getting any error or message in the console?
@@grasshopper2494 no, there is no errors in the console, just the Pdf is not generating
@@ismailhaiber4434 Will have a look if u can share the relevant code repo link.
@@grasshopper2494 github.com/haiberismail-cloud/EDICTestFramework.git
Tell me if you have access to the link
Hello Naveen, I have one query.. I have noticed that failed test cases screenshot is getting saved with name embedded1, embedded2 and so on, instead of being saved with actual failed scenario name. Could you please help and let us know how this can be done... Following is the logic you demonstrated in video
public void tearDown(Scenario scenario) {
if (scenario.isFailed()) {
// take screenshot:
String screenshotName = scenario.getName().replaceAll(" ", "_");
byte[] sourcePath = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);
scenario.attach(sourcePath, "image/png", screenshotName);
}
I added the dependency , config and properties file.
I am getting Initialization error after add this plugin in the runner file "com.aventstack.extentreports.cucumber.adaptor.ExtentCucumberAdapter:"
anyone help me to solve this issue
Hi Naveen, i followed your video. Really nice explanation.just one question: while generating screenshots I am able to generate screenshot from local but other users are not able to see the screenshots. I tried using relative path for 'addscreenshotfrompath' but it is not working. Could you please help me solve this
Hi Naveen, The explanation is Nicely done but I didn't find the GIT url in this. so please share the Git url once again.
Thanks.
Thank you Naveen. I had a quick question. How can we implement logging with this spark report?
U can use the scenario.log() method in the step definition method.
@@grasshopper2494 hi, do you have any code for reference?
Hi Naveen, your video is helpful. Please help to guide on video on grasshopper extent PDF report customization.
Awesome explanation sir
Thank you so much
Great video Naveen Sir. But I am not able to configure this report with IRetryAnalyzer. For retried scnearios, this report is adding them as failed cases, so the numbers coming in the report is not reliable. Can somebody please guide me as to how can I configure this report along with Iretry analyzer. I am using a gradle project with cucumber and testng