Skip to content

Demo project with optimized UI Test by API-Prepared Authentication

Notifications You must be signed in to change notification settings

jslbk/demoqa_rest_assured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimized UI Test by API-Prepared Authentication

Demo QA

Illustrative example of the interaction between API and UI automation, showcasing the capabilities of testing automation across different levels of the application.

Content


🛠️ Tools


🗒️ Test steps

API part:

  • Login to Demo QA: An automated login process to the Demo QA platform.
  • Adding a Book via API: Utilizing API requests to add a book to the system.

UI part:

  • Deleting a Book via UI: Deleting the previously added book through the web application's UI.
  • Verification of Deletion: Confirming the successful deletion of the book by verifying its absence from the list.


▶️ Running Automated Tests

  1. Ensure you have the necessary dependencies installed.
  2. Update the base URI in the test file to match your Demo QA API endpoint.
  3. Run the tests and observe the results.

Running Tests from the Terminal

Execution from the project's root directory:

To run all the tests:

gradle clean demoqa_api

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.

Registration on the Jenkins resource is required for access to Jenkins.


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.


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.


Video attachment example (UI part only)

In the Allure reports for each test, a video of the test execution is attached along with a screenshot.

About

Demo project with optimized UI Test by API-Prepared Authentication

Topics

Resources

Stars

Watchers

Forks