This is a sample project for Rest Assured with Gradle Kotlin DSL & JUnit 5
All the Test Cases kept in this repository. Developers can select the test cases which they need to execute during
their build Pipeline(by adding a tag, eg: pipeLine1
).
You can open the project by any IDE (Select build.gradle.kts
file when opening the project)
You can set your project configurations in config.yml
. Please make sure you DO NOT commit sensitive information in this file.
You can pass those data via your CI/CD tools during the execution.
For this example, I have used Jenkins and CircleCI as my CI/CD tools. But you have to select only one tool in your project.
You can edit Jenkinsfile
based on your requirement.
How to create Jenkinsfile.
You can edit ./circleci/config.yml
for CircleCI configs.
-
Regression tests (excluding wip tests) -
./gradlew regressionTest
-
Developer PipeLine tests (excluding wip tests) -
./gradlew pipeLine1_Test
-
All test cases -
./gradlew test
- All the logs will be captured in -
./build/tmp/logFile.log
- you can change the log configurations in
/src/main/resources/logback.xml
Custom test tasks can be added in build.gradle.kts
.
Current test tasks are as follows.
- General Regression Test Task (excluding wip tests) - regressionTest
- Developer PipeLine Test Task (excluding wip tests) - pipeLine1_Test