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 (11) 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
- Authentication Demo Service in mosip-functional-tests.
- Automation tests in mosip-functional-tests.
- IVV Orchestrator
- Authentication Demo Service
mvn clean install -Dgpg.skip
- Automation Tests
mvn clean install -Dgpg.skip
- Acceptance Tests(location: mosip-automation-tests\mosip-acceptance-tests\ivv-orchestrator)
mvn clean install -Dgpg.skip -Dgpg.skip
- After Successful build will get the jar (dslrig-ivv-orchestrator-1.2.1-develop-SNAPSHOT-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-1.2.1-develop-SNAPSHOT.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
- 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.2.0.1-develop-SNAPSHOT.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.
- Update kernel file property
scenariosToExecute=2
update scenario number for execution and keep this empty to run entire full suite - Command to execute the e2e automation (dslrig-ivv-orchestrator-1.2.1-develop-SNAPSHOT-jar-with-dependencies.jar) utility with below vm arguments
- java
-Denv.user
=environment name-Denv.endpoint
=baseurl -jar dslrig-ivv-orchestrator-1.2.1-develop-SNAPSHOT-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
- Deploy Auth demo service
-Use these branches of code.
https://github.com/mosip/mosip-functional-tests/tree/release-1.2.0.1
https://github.com/mosip/mosip-helm/tree/1.2.0.1/charts/authdemo
- Deploy Packet creator
-Use these branches of code.
https://github.com/mosip/mosip-automation-tests/tree/release-1.2.0.1
https://github.com/mosip/mosip-helm/tree/1.2.0.1/charts/packetcreator
- Deploy Dsl testrig
-Use these branches of code.
https://github.com/mosip/mosip-automation-tests/tree/release-1.2.0.1
https://github.com/mosip/mosip-helm/tree/1.2.0.1/charts/dslorchestrator
- Orchestrator Config maps setup
- To run particular scenario
scenariosToExecute=2
update 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.2.0.1/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json
- Report gets generated on minio in the mentioned S2 bucket folder in configmaps. For example pick similar to below two reports one is testng report other is extent report. -DSL-api-internal.qa-release.mosip.net-full-run-1707833456032-report_T-161_P-1_S-63_F-97 -ExtentReport-DSL-api-internal.qa-release.mosip.net-full-run-1707833456032-report_T-161_P-1_S-63_F-97
This project is licensed under the terms of Mozilla Public License 2.0.