Skip to content

⚡️ Demo project with a set of API automated tests using REST-Assured

Notifications You must be signed in to change notification settings

jslbk/rest_api_test_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reqres.in API test automation project demo

Reqres.in


📂 Content


🛠️ Tools


The project utilizes Java along with REST Assured for API testing. Integration with tools like Jira for issue tracking, Allure for test reporting, and Jenkins for continuous integration. Gradle is used for project automation along with JUnit5 for test execution. Integration with Allure TestOps, provides connection for test management and analysis.

After the completion of a build, the Telegram bot automatically processes and dispatches a message containing the test run report to a pre-configured chat.

Allure report is additionally customized by the provided AllureListener. This customization allows for the inclusion of custom templates for requests and responses, enhancing the clarity and presentation of the test report.


🗒️ Test cases

Login Feature

  • Check user not found login response
  • Check successful login response

Registration Feature

  • Verify successful registration
  • Verify bad email registration
  • Verify empty email registration
  • Verify empty password registration

User Data Verification Feature

  • Verify not found response for specific user
  • Verify response data for specific user

▶️ Running the API tests

To run all the tests:

gradle clean test

To run only login tests:

gradle clean login_test

To run only registration tests:

gradle clean registration_test

To run only signle user data tests:

gradle clean user_test

Jenkins Build

To start the build, go to the "Build with parameters" section, select the necessary parameters, and click "Build".

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

Jenkins Build Parameters:

  • TASK (set of tests to run)
  • BASE (tested site base url)

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.


Telegram notifications 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.

About

⚡️ Demo project with a set of API automated tests using REST-Assured

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published