For UI automation test framework - hope this one is enough if you are using java.
This framework is based on cucumber-java and selenium-java, try to let it more stable and have enough functions to do the web-UI testing.
- Basic funcitons about Cucumber;
- PageObject
- Properties management
- Integrate with Cucumber-Extend reports
- Rerun failed scenarios
- Take full screenshots
- Take fail step screenshots and embed to report
- WaitUntil : before error happening, wait few seconds and keep retry.
- Take Full Screenshot whenever you want. -- Done
- Take screenshot when error occur. -- Done
- Friendly test report. -- Done.
- support cssSelector\xPath\id
- Parallel execute test.
- Integrate with BrowserStack
- Rerun failed scenarios -- Done ...
If you just want to run the failed scenarios manually, Please execute this file:
FeatureRerun.java
If you are running on pipeline, please use this command:
$ gradle clean test
the failed scenarios will be run again, and the temporary result will be ignored. Only rerun failed the build will be marked as failed.
you can change your report path in this file:
environment.properties -> reportPath
if you want rewrite the existing report, put "ture" for the second parameter:
ExtentCucumberFormatter.initiateExtentCucumberFormatter(new File(reportPath),true);
This function is basing on AShot plugin. You can take a full screenshots whenever you want.
Using this cmd then it will capture current screen and embed to report:
Then user take a screenshot
Using following cmd then you capture current screen and save to somewhere:
Then user capture this page as "screenshotName" and save to "Path"
- please make sure your java version is greater than 1.8.152