Skip to content

Collection of API tests for Swapi (Star Wars API) || Stack: Java 17, TestNG, REST Assured || Status - In progress

Notifications You must be signed in to change notification settings

kat-kan/swapi-api-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swapi-api-tests

Collection of API tests for Star Wars API. This project was initiated in 2020 with JUnit. In 2022 I decided to switch to TestNG and continue the project.

App links : SWAPI website and documentation

The Star Wars API is open-source Web API with data from the Star Wars canon universe.

Installation

There are few ways to start using this repository:

  1. Clone with Git using command line and this command: git clone https://github.com/kat-kan/swapi-api-tests
  2. Clone with Git using graphical user interface (for example Sourcetree)
  3. Download ZIP with the code (using option shown in the screenshot below) image

Features

This project contains tests for following resources:

Planets 🟣 Vehicles 🟣 Films 🟣 Starships 🟣 Species 🟣 People

✅ parameterized tests with @DataProvider

✅ you can run tests in terminal with Maven

✅ you can generate test execution report with Allure

✅ all test classes use annotations @Feature and @Severity for better organization of Allure report

✅ Allure report is triggered on every push using Github Actions

image

Guidelines for running tests with Maven

To run tests, use following command mvn clean test

Guidelines for generating Allure reports

Allure is an open-source test tool that allows to generate HTML test execution reports.

To run tests and generate HTML report, use following command mvn io.qameta.allure:allure-maven:report

If you want the report to be opened immediately in default browser, use the following command mvn io.qameta.allure:allure-maven:serve

About

Collection of API tests for Swapi (Star Wars API) || Stack: Java 17, TestNG, REST Assured || Status - In progress

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages