This is a sample API project for Rest Assured with Maven Kotlin DSL & JUnit 5

Overview

Kotlin-RestAssured Test Automation

This is a sample API project for Rest Assured with Maven Kotlin DSL & JUnit 5

Introduction

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).

Prerequisites

This requires Java JDK v11 and Maven.

Open the Project

You can open the project by any IDE (Select pom.xml file when opening the project)

In this project you can find two branches:

  • master - Contain up-to-date code
  • develop - In progress development of the Test cases

Set up 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.

Continuous Integration/Continuous Deployment with Jenkins

Here I have used Jenkins as my CI/CD tool. You can edit Jenkinsfile based on your requirement. How to create Jenkinsfile.

Running Test Suites

  • Regression tests (excluding wip tests) - mvn clean site -P regressionTest
  • Developer PipeLine tests (excluding wip tests) - mvn clean site -P pipeLine1_Test
  • All test cases - mvn clean install site test

Default test suite will be regressionTest.

Test Reports

You can find following types of reports:

  • "Dependency Information" Report target/site/dependency-info.html
  • "Dependency Management" Report target/site/dependency-management.html
  • "About" Report target/site/index.html
  • "Plugin Management" Report target/site/plugin-management.html
  • "Plugins" Report target/site/plugins.html
  • "Project Summary" Report target/site/summary.html
  • "Team" Report target/site/team.html
  • "Test Execution Summary" Report target/site/surefire-report.html

Adding custom test tasks

Custom test suits can be added in pom.xml.

Current test suits are as follows.

  • General Regression Test Task (excluding wip tests) - regressionTest
  • Developer PipeLine Test Task (excluding wip tests) - pipeLine1_Test

Create Pull Request

When you crete a PR from the GitHub, you need to mark a checklist which related to your merge.

PR-Template

Adding code owners

You can add code owners username to the /.github/CODEOWNERS file. So they will automatically get an email for any pull requests.

References for learn Kotlin

You might also like...
MyTaxi - App consuming myTaxi api to show taxi vehicles or otherwise on a map
MyTaxi - App consuming myTaxi api to show taxi vehicles or otherwise on a map

MyTaxi App App consuming myTaxi api to show taxi vehicles list on google maps. T

Android background tint test project

Android Background Tint References https://developer.android.com/reference/android/view/View#attr_android:background https://developer.android.com/ref

A simple project to help developers in writing their unit tests in Android Platform.
A simple project to help developers in writing their unit tests in Android Platform.

AndroidUnitTesting A simple project to help developers in writing their unit tests in Android Platform. This is not a multi-module project, but has th

Project for testing intern candidate simple level
Project for testing intern candidate simple level

RickAndMorty-TestTask Тестовый проект 'Гайд по мультфильму Рик и Морти' для практикантов начального и продвинутого уровня. Структура проекта Структура

Setup CheckStyle, FindBugs, PMD and Lint for your Android project easily

android-quality-starter setup CheckStyle, FindBugs, PMD and Lint for your Android project easily This project adds gradle setup for quality tools ment

Snapshot/Screenshot test example project

Snapshot Snapshot/Screenshot test example code using Showkase (https://github.com/airbnb/Showkase) Paparazzi (https://github.com/cashapp/paparazzi) Te

A multiplatform assertion library for Kotlin

Atrium is an open-source multiplatform assertion library for Kotlin with support for JVM, JS and Android. It is designed to support multiple APIs, dif

Portable validations for Kotlin

Portable validations for Kotlin ✅ Type-safe DSL 🔗 Multi-platform support (JVM, JS) 🐥 Zero dependencies Installation For multiplatform projects: kotl

Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing

Kotest is a flexible and comprehensive testing tool for Kotlin with multiplatform support. To learn more about Kotest, visit kotest.io or see our quic

Comments
  • Develop

    Develop

    Description

    This PR contains all the test cases required for completion.

    JIRA link # (issue)

    Type of change

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [x] New feature (non-breaking change which adds functionality)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

    How Has This Been Tested?

    All the test cases have been executed in the Local machine.

    Checklist:

    • [x] My code follows the style guidelines of this project
    • [x] I have performed a self-review of my own code
    • [ ] I have commented on my code, particularly in hard-to-understand areas
    • [ ] I have made corresponding changes to the documentation
    • [ ] My changes generate no new warnings
    • [ ] Any dependent changes have been merged and published in downstream modules
    • [ ] Link Jira ticket and verify all the ACs
    • [ ] Point to correct merge branch
    • [ ] Add required labels to PR
    • [ ] All previous and new tests pass
    • [ ] Changes are backward compatible
    • [ ] Dependent PRs are linked
    • [ ] I wrote documentation for all complex code areas
    • [ ] I updated the relevant Jira test cases
    opened by dilshan5 0
Owner
Dilshan Fernando
Dilshan Fernando
Android Sample Kotlin+ MVVM + Coroutines + Retrofit +Hilt+ Junit + Mockito

NTimes AppSample NY Times Most Popular Articles simple app to hit the NY Times Most Popular Articles API and show a list of articles, that shows detai

Amer Elsayed 0 Dec 27, 2021
Strikt is an assertion library for Kotlin intended for use with a test runner such as JUnit, Minutest, Spek, or KotlinTest.

Strikt is an assertion library for Kotlin intended for use with a test runner such as JUnit, Minutest, Spek, or KotlinTest.

Rob Fletcher 447 Dec 26, 2022
Proyecto de Kotlin y JPA sobre Hibernate, con algunos test usando JUnit 5 y Mockito.

Contactos Kotlin JPA Ejemplos de una aplicación de manejo de contactos con Kotlin y JPA. Usando para testear la aplicación JUnit 5 y Mockito. Almacena

José Luis González Sánchez 3 Sep 13, 2022
JUnit 5 Studies For Android

Estudos sobre JUnit 5 Objetivo A proposta desse projeto é estudar a documentação do JUnit 5 traduzindo-a com exemplos e com a meu entendimento sobre a

João Pedro Medeiros de Farias 3 Jul 16, 2022
FinnAds - A sample project to fetch advertisements from a mock api

FinnAds ?? FinnAds is a sample project to fetch advertisements from a mock api.

Fatih Giriş 2 Jan 27, 2022
Toster - Small test dsl based on adb commands that allows you to test the mobile application close to user actions

toster Small test dsl based on adb commands that allows you to test the mobile a

Alexander Kulikovskiy 31 Sep 1, 2022
Very simple Morse API text translator. Mainly to do some testing with jitpack, API development etc.

Very simple Morse text translator API. Far from finish or even being reliable. Use for single sentence. Mainly to test github dependency for Android

Piotr Dymala 0 Dec 30, 2021
A sample repo describing best practices for snapshot testing on Android

Road to effective snapshot testing A sample repo describing best practices for snapshot testing on Android. This includes for now: Parameterized Tests

Sergio Sastre Flórez 86 Jan 1, 2023
Kotlin wrapper for React Test Renderer, which can be used to unit test React components in a Kotlin/JS project.

Kotlin API for React Test Renderer Kotlin wrapper for React Test Renderer, which can be used to unit test React components in a Kotlin/JS project. How

Xavier Cho 7 Jun 8, 2022
YASNAC (short for Yet Another SafetyNet Attestation Checker) is an Android app that demonstrates SafetyNet Attestation API.

YASNAC YASNAC (short for Yet Another SafetyNet Attestation Checker) is an Android app that demonstrates SafetyNet Attestation API. YASNAC is written w

Rikka 361 Dec 31, 2022