Demo automation test project of the Wikipedia's mobile application search via BrowserStack
- Tools
- Test Cases
- Running Automated Tests
- Jenkins Build
- Example of Allure Report
- Integration with Allure TestOps
- Integration with Jira
- Telegram notifications
- Example of test execution via Browserstack
Tests are written in Java
using the Appium
framework for mobile automation testing, and the build tool is Gradle
.
JUnit5
is employed as the framework for unit testing. When running tests for remote execution, Browserstack
is utilized.
For remote execution, a Jenkins
job is implemented with the generation of an Allure report
and sending the results to Telegram
via a bot.
Integration with Allure TestOps
and Jira
is also implemented.
The contents of the Allure report for each test case include:
- Test steps and the results of their execution
- Screenshot of the page at the last step (to visually analyze why the test failed)
- Page Source (ability to open the page source in a new tab and see the reason for the test failure)
- Browser console logs
- Video (Screen recording from the BrowserStack) of the test automation execution.
- Verification of search results detection
- Searching for the required definition
- Verification of headline presence in news
To run all the tests:
gradle clean test
Jenkins Build
To start the build, go to the "Build with parameters" section, select the necessary parameters, and click "Build".
- TASK (set scope/task to execute)
- COMMENT (optional parameter to add notes that will be displayed in report)
Example of Allure Report
Integration with Allure TestOps
On the Dashboard in Allure TestOps, you can see the statistics of the number of tests: how many of them are added and executed manually, how many are automated. New tests and test run results are sent through the integration with each build.
Integration with Jira
Integration with Allure TestOps and Jira is implemented. In the Jira task, you can see which test cases were written as part of the task and their execution results.
Automatically generated report notification in Telegram via Bot
After the build is complete, a Telegram bot automatically processes and sends a message with the test run report to a specifically configured chat.
Screen recording attachment BrowserStack example
In the Allure reports for each test, a video of the test execution is attached along with a screenshot.