Skip to content

📱 Demo automation test project of the Wikipedia's mobile application search via Browswerstack

Notifications You must be signed in to change notification settings

jslbk/mobile_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo automation test project of the Wikipedia's mobile application search via BrowserStack

Wikipedia

🗒 Content


🛠️ Tools


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.

🕵️‍♂️ Test Cases

  • Verification of search results detection
  • Searching for the required definition
  • Verification of headline presence in news


▶️ Running Automated Tests

Running Tests from the Terminal

Execution from the project's root directory:

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".

Jenkins Build Parameters:

  • TASK (set scope/task to execute)
  • COMMENT (optional parameter to add notes that will be displayed in report)

After the build is completed, icons for "Allure Report" and "Allure TestOps" will appear next to the build number in the "Build History" section. Clicking on these icons opens pages with the generated HTML report and test documentation, respectively.

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.

About

📱 Demo automation test project of the Wikipedia's mobile application search via Browswerstack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages