This repo contains test framework for end2end testing of MOSIP functionality. The following functionality is covered
- Registration
- Pre-registration + registration
- Authentication
- API automation mosip-functional-tests
- E2E automation (this repo)
- Packet Generation tool (this repo)
For Windows/Linux
- Java (21) and Maven software should be installed on the machine from where the automation tests will be executed
- Git bash
Below are repository details of various modules used for the automation
- apitest-commons in mosip-functional-tests.
- IVV Orchestrator
- apitest-commons
mvn clean install -Dgpg.skip - Acceptance Tests(location: mosip-automation-tests\mosip-acceptance-tests\ivv-orchestrator)
mvn clean install -Dgpg.skip- After Successful build will get the jar (dslrig-ivv-orchestrator-version-jar-with-dependencies.jar)
- Mosip Test Data Provider
mvn clean install -Dgpg.skip - Mosip-Packet-Creator
mvn clean install -Dgpg.skip- After successful build will get the jar (dslrig-packetcreator-version.jar)
- Packet Utility is used to create and uploads the packet which is used by the e2e automation
- Download `centralized folder from src/main/resources/dockersupport
- Under `mosip-packet-creator
- Biometric Devices= Contains Mockmds specific files.
- config= application.properties configurations
- config=default.properties
- dslConfig=dsl.properties
- mapper=demographic mappings environment specific or default setup.
- privatekeys=machine specific details for encrypting and signing the packet.
- Update ..\run.bat as mentioned below
- Keep mosip-packet-creator-1.3.0.jar and execute run.bat
- Verify if the Packet utility is running by hitting
http://localhost:8080/v1/packetcreator/swagger-ui.html#/ - For any failure in the packet utility verify the logs location: mosip-packet-creator\PacketUtilityRunlog.txt
- Build the E2E_Automation acceptance test project and get the jar
mosip-automation-tests\mosip-acceptance-tests\ivv-orchestrator\target - Take the config folder from the mosip-acceptance test project
mosip-automation-tests\mosip-acceptance-tests\ivv-orchestrator\src\main\resources\config - Update kernel properties secret keys based on the env details inside
mosip-functional-tests\apitest-commons\src\main\resources\config\Kernel.properties - Update dsl file property
scenariosToExecute=2update scenario number for execution and keep this empty to run entire full suite - Command to execute the e2e automation (dslrig-ivv-orchestrator-version-jar-with-dependencies.jar) utility with below vm arguments
- java
-Denv.user=environment name-Denv.endpoint=baseurl -jar dslrig-ivv-orchestrator-version-jar-with-dependencies.jar env.user= environment name example qa, qa2, devenv.endpoint= base environment
- java
- After the execution completes, the test report can be found in the path
..\testng-report\emailable-report.html
- We can verify the failure in the logs
mosip-acceptance-tests\ivv-orchestrator\src\logs\mosip-api-test.log
To work with the project in an Integrated Development Environment (IDE), follow these steps:
1.Supported IDEs:
- IntelliJ IDEA (Recommended)
- Eclipse IDE
2.Prerequisites:
- Ensure Java 21 and Maven are installed and configured in your system.
- Git Bash (for cloning the repository and running scripts).
3.Steps to Import the Project:
- Clone the repository using the command:
git clone https://github.com/mosip/mosip-automation-tests.git - Open the IDE of your choice.
- Select File > Open Project (or File > Import in Eclipse).
- Navigate to the directory where the repository is cloned.
- Select the
pom.xmlfile and import the project as a Maven Project.
4.Dependencies:
- The project uses Maven for dependency management. Ensure all dependencies are downloaded by running:
This step will also verify that the project builds successfully.
mvn clean install -Dgpg.skip
5.Environment-Specific Configurations:
- Update the
Kernel.propertiesfile and other configuration files under thesrc/main/resources/configdirectory as per your environment setup.
6.Run the Project:
- After importing, locate the main class to run the project:
- For DSL Orchestrator:
io.mosip.testrig.dslrig.ivv.orchestrator.TestRunner.
- For DSL Orchestrator:
- Use the IDE’s Run feature or execute the JAR file with VM arguments for testing.
By following these steps, you can seamlessly set up and work with the project in your preferred IDE.
- Deploy Packet creator
-Use these branches of code.
https://github.com/mosip/mosip-automation-tests/tree/release-1.3.0https://github.com/mosip/mosip-helm/tree/1.3.0/charts/packetcreator - Deploy Dsl testrig
-Use these branches of code.
https://github.com/mosip/mosip-automation-tests/tree/release-1.3.0https://github.com/mosip/mosip-helm/tree/1.3.0/charts/dslorchestrator - Orchestrator Config maps setup

- To run particular scenario
scenariosToExecute=2update scenario number for execution and keep this empty to run entire full suite 1.Scenario sheet gets picked internally placed at this pathhttps://github.com/mosip/mosip-automation-tests/blob/release-1.3.0/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json - Report gets generated on minio in the mentioned S3 bucket folder in configmaps. For example pick similar to below two reports one is testng report other is extent report. -DSL-api-internal.released-full-run-1755444787997-report_T-204_P-168_KI-26_I-9_S-0_F-1 -ExtentReport-DSL-api-internal.released-full-run-1749647484903-report_T-204_P-168_KI-26_I-9_S-0_F-1
This project is licensed under the terms of Mozilla Public License 2.0.
