Giter Club home page Giter Club logo

mosip-functional-tests's Introduction

Functional Tests

Overview

This repo contains API automation test rig. The automation written using Java REST Assured and TestNG framework. The following modules are covered:

  1. Pre-registration
  2. Masterdata
  3. Partner Management
  4. ID Repository
  5. IDA
  6. Resident
  7. E-Signet
  8. Mimoto

The test rig has multi-language support - input can be provided in any of the languages configured in a given MOSIP installation.

Test categories

  • Smoke: only positive scenarios.
  • Regression: all scenarios.

Coverage

Only external API endpoints are covered.

Pre-requisites:

  1. Java 11 and Maven (3.6.0) software should be installed on the machine from where the automation tests will be executed
  2. Lombok should be configured. Ref. https://projectlombok.org/

For Windows

  1. Git bash (2.18.0.windows.1)
  2. settings.xml needs to be present in one place in .\m2.

For Linux

  1. settings.xml file needs to be present in two places:
    • regular maven conf folder
    • copy the same settings.xml under /usr/local/maven/conf

Access test automation code

  1. From Browser:
  1. From Git Bash:

Build Authentication Demo Service

cd authentication-demo-service
mvn clean install

Build Test Automation Code

cd ../automationtests
mvn clean install  

This creates the jar file in the ‘target’ folder

Execute Test Automation Suite

Execute the jar from the target folder on the application code deployed. In this example, the application code is run on <base_env>

Command to use:

cd target/
java -jar -Dmodules=prereg -Denv.user=dev2 -Denv.endpoint= <base_env> -Denv.testLevel=smokeAndRegression automationtests-1.2.0.1-SNAPSHOT-jar-with-dependencies.jar

Details of the arguments used

  • env.user = user of the env on which you will run the jar file.
  • env.endpoint = env where the application under test is deployed. Change the env hostname from <base_env> to any env that you will work on
  • env.testlevel = this parameter has to be ‘smoke’ to run only smoke test cases, and it has to be ‘smokeandRegression’ to run all tests of all modules
  • jar = specify the jar file to be executed
  • The version of the jar file name changes as per development code version. Example: Current version of Dev Code Base is 1.2.0.1 so the jar name will be automationtests-1.2.0.1-SNAPSHOT-jar-with-dependencies.jar

Build and run

  • Run smoke and regression

License

This project is licensed under the terms of Mozilla Public License 2.0

mosip-functional-tests's People

Contributors

sohandey avatar rajjhajsr avatar nandhu-kumar avatar omsaieswar avatar manojsp12 avatar sowmya695 avatar monobikashdas avatar ravikant-m1044571 avatar taleevaalam avatar swatikp avatar sanjaymurali7395 avatar dineshkaruppiaht7697 avatar yaswanths2 avatar urviljoshi avatar pranavk5 avatar ravibalaji6462 avatar alokranjan1106 avatar balvikashsharma avatar mosiprajath avatar maheshkumar1804 avatar nagalakshminithyanandan avatar sravya46559 avatar shashank0707 avatar gurpreet5991 avatar anup-nehe avatar tabishkhan7 avatar premkumar1997 avatar rishabhjavad avatar lsivanand avatar reshamchugani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.