Tahanima / rest-assured-api-test-automation-architecture

Ready-to-use API Test Automation Architecture using Java and REST Assured.

Home Page:https://tahanima.github.io/rest-assured-api-test-automation-architecture/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST Assured API Test Automation Architecture

Ready-to-use API Test Automation Architecture using Java and REST Assured.

Installation Steps

In order to use the framework:

  1. Fork the repository.
  2. Clone, i.e, download your copy of the repository to your local machine using
git clone https://github.com/[your_username]/rest-assured-api-test-automation-architecture.git
  1. Import the project in IntelliJ IDEA.
  2. Make your desired changes.
  3. Use IntelliJ IDEA to run your desired tests. Alternatively, you can use the terminal to run the tests, for example ./gradlew test.
  4. Build and browse the allure report using
./gradlew allureServe

Languages and Frameworks

The project uses the following:

Project Structure

The project is structured as follows:

πŸ“¦ rest-assured-api-test-automation-architecture
β”œβ”€ .github
β”‚  β””─ workflows
β”‚     β””─ test-execution.yml
β”œβ”€ .gitignore
β”œβ”€ LICENSE
β”œβ”€ README.md
β”œβ”€ build.gradle
β”œβ”€ gradle
β”‚  β””─ wrapper
β”‚     β”œβ”€ gradle-wrapper.jar
β”‚     β””─ gradle-wrapper.properties
β”œβ”€ gradlew
β”œβ”€ gradlew.bat
β”œβ”€ settings.gradle
└─ src
   β”œβ”€ main
   β”‚  β”œβ”€ java
   β”‚  β”‚  β””─ io
   β”‚  β”‚     β””─ github
   β”‚  β”‚        β””─ tahanima
   β”‚  β”‚           β”œβ”€ client
   β”‚  β”‚           β”‚  β””─ UserClient.java
   β”‚  β”‚           β”œβ”€ config
   β”‚  β”‚           β”‚  β”œβ”€ Configuration.java
   β”‚  β”‚           β”‚  β””─ ConfigurationManager.java
   β”‚  β”‚           β”œβ”€ dto
   β”‚  β”‚           β”‚  β”œβ”€ BaseDto.java
   β”‚  β”‚           β”‚  β””─ UserDto.java
   β”‚  β”‚           β”œβ”€ model
   β”‚  β”‚           β”‚  β””─ User.java
   β”‚  β”‚           β”œβ”€ report
   β”‚  β”‚           β”‚  β””─ AllureManager.java
   β”‚  β”‚           β””─ util
   β”‚  β”‚              β”œβ”€ Endpoint.java
   β”‚  β”‚              β””─ RequestSpec.java
   β”‚  β””─ resources
   β”‚     β”œβ”€ allure.properties
   β”‚     β””─ config.properties
   β””─ test
      β”œβ”€ java
      β”‚  β””─ io
      β”‚     β””─ github
      β”‚        β””─ tahanima
      β”‚           β”œβ”€ annotation
      β”‚           β”‚  β””─ DataSource.java
      β”‚           β”œβ”€ e2e
      β”‚           β”‚  β”œβ”€ BaseE2ETest.java
      β”‚           β”‚  β””─ UserE2ETest.java
      β”‚           β””─ util
      β”‚              β”œβ”€ CsvToDtoMapper.java
      β”‚              β”œβ”€ DataArgumentsProvider.java
      β”‚              β””─ JsonFormatter.java
      β””─ resources
         β””─ testdata
            β””─ user.csv

About

Ready-to-use API Test Automation Architecture using Java and REST Assured.

https://tahanima.github.io/rest-assured-api-test-automation-architecture/

License:MIT License


Languages

Language:Java 100.0%