Small Cucumber Project for Web Application Testing
How to Execute?
- Run the Test Run your test using mvn install or mvn verify from Terminal, mvn test -Dcucumber.filter.tags="@SmokeTests"
- Test Result See the result inside target/MyReports/report.html or target/MyReports/report.json folders that automatically generated after finished the test execution Open html file in your browser Or you can create your result https://reports.cucumber.io/reports/ by setting publish=true in @CucumberOptions in runner class Some sample of test results
Advanched html report on the cloud
Further Improvements: We can use data provider / Apachi POI when scope of test coverage is increase. Write common methods class to keep all common methods and call them where ever wanted (like click(), double-clik(), drop-down, actions() etc..) And Add Plug-ins for extented reporting as per requirement.