Skip to content

This project serves as a boilerplate for automating REST APIs across various environments using TestNG and the Rest Assured library.

License

Notifications You must be signed in to change notification settings

osandadeshan/rest-assured-java-api-automation-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Automation Using Rest Assured & TestNG

This project serves as a boilerplate for automating REST APIs across various environments using TestNG and the Rest Assured library.

Rest Assured Java API Automation CI

Prerequisites

  1. Java
  2. Maven
  3. NodeJS

How to run tests

  1. Using IntelliJ IDEA

    • Go to Maven Profiles
    • Select dev, qa, uat, pre-prod or prod Maven Profile as the environment
    • Select the test classes on the src/test/java folder
    • Right-click and click on Run
  2. Using Command Line

    • To run the smoke test suite against the UAT environment

      mvn clean test -Puat,smoke-test

    • To run the regression test suite against the QA environment

      mvn clean test -Pqa,regression-test

Note: By default, if no Maven profiles are selected, the tests will be executed on the dev environment.

License

MIT License MIT License

Copyright

Copyright 2023 MaxSoft.

About

This project serves as a boilerplate for automating REST APIs across various environments using TestNG and the Rest Assured library.

Topics

Resources

License

Stars

Watchers

Forks

Languages