Skip to main content

Posts

Featured

Cucumber

Here I have mentioned 3 types of reports Method 01 : Add below line into your TestRunner, java file @CucumberOptions( .......... plugin = {"html:taregt/test-report"} ......... ) It will generate index.html file in the mentioned location Right-click on index.html file and open with -> system editor It will open with browser as below Green colour steps are passed and failed one is displayed with yellow colour. Method 02 : Add below line into your TestRunner, java file @CucumberOptions( .......... plugin = {"junit:target/junit-xml-report.xml"} ......... ) Run test with JUnit testing method. Below file will be created Result open with -> JUnit viewer Method 03 : Add below line into your TestRunner, java file @CucumberOptions( .......... plugin = {"pretty:target/json-report.json"} ......... ) Run test with TestNG Below file will be created json-report.json Open with JSON viewer...

Latest Posts