I have a complex problem, please read below - I wanted to run the extent report with my framework which is build using cucumber, testng and java.
I am running the testng file to run the test class file which will eventually run the @CucumberOptions and features added in it.
My test class is extended with AbstractTestNGCucumberTests to support testng with cucumber.
Now everything is working fine. basic testng report is getting generated. note : I am running some tests parallel and they are also working fine.
Now i wanted to implement the extent report in my framework. Can you tell me how to do it using plugin which which add the logs same as the cucumber statement added in the feature file.
ps : I have gone through some link which shows me how to run the extent report with junit using @AfterClass, but how to use this with testng.
What I have tried -
libraries used - com.aventstack --> extentreports and com.vimalselvam --> cucumber-extentsreport
Error - cucumber.runtime.CucumberException: Couldn't load plugin class: com.vimalselvam.cucumber.ExtentCucumberFormatter
used plugin - plugin = {"com.vimalselvam.cucumber.ExtentCucumberFormatter:output/report.html"}
and code added under @AfterTest is : Reporter.loadXMLConfig(new File("xml path")
PLEASE HELP !!! I wanted to generate extent report which will also support parallel execution.
Aucun commentaire:
Enregistrer un commentaire