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
- 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
- Automation Tests
mvn clean install
- Acceptance Tests(location: mosip-automation-tests\mosip-acceptance-tests\ivv-orchestrator)
mvn clean install
- After Successful build will get the jar (ivv-orchestrator-1.2.0.1-SNAPSHOT-jar-with-dependencies.jar)
- Mosip Test Data Provider
mvn clean install
- Mosip-Packet-Creator
mvn clean install
- After successful build will get the jar (mosip-packet-creator-1.2.0.1-SNAPSHOT.jar)
- Packet Utility is used to create and uploads the packet which is used by the e2e automation
- Download deploy folder
- Download Anguli from
https://dsl.cds.iisc.ac.in/projects/Anguli/
- Iris database take permission from IIT Delhi to use IRIS Database from
https://www4.comp.polyu.edu.hk/~csajaykr/IITD/Database_Iris.htm
- Download vcredist_x86.exe
https://www.microsoft.com/en-us/download/details.aspx?id=48145
( Note : one time activity it will be installed as a service , no need to do it again for any further update) - Download and build MockMDS from mosip-mock-services.
- Set device certificates as per the environment and keep certificate under each modality keys. See MDSdevicecert.md.
- Start Mock mds by executing batch file (location: deploy\mockmds\run.bat) and verify its running on port 4501(default port)
- Update
..\config\application.properties
with the following detailsmosip.test.baseurl
=https://qa.mosip.netserver.port
=8080mosip.test.temp
=/temp/ (create empty 'temp` folder inside current directory e.g. D:\temp)
- Update ..\resource\config\default.properties with the following details
urlBase
=https://qa.mosip.net -is the base url of the target MOSIP server.
- Update ..\run.bat as mentioned below
spring.config.location
should have the absolute path of application.properties, e.g.-Dspring.config.location=..\deploy\config\application.properties
- Keep mosip-packet-creator-1.2.0.1-SNAPSHOT.jar and execute run.bat
- Verify if the Packet utility is running by hitting
http://localhost:8080/swagger-ui.html#/
- For any failure in the packet utility verify the logs location: deploy\runlog.txt
- Deploy folder structure looks like
- 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
- Take the local folder from the mosip-acceptance test project
mosip-automation-tests\mosip-acceptance-tests\ivv-orchestrator\src\main\resources\local
- End to end folder structure looks like below
- Command to execute the e2e automation (ivv-orchestrator-1.2.0.1-SNAPSHOT-jar-with-dependencies.jar) utility with below vm arguments
- java
-Denv.user
=environment name-Denv.endpoint
=baseurl-Denv.testLevel
=smoke-DscenarioSheet
=-Denv.langcode
=eng -jar ivv-orchestrator-1.2.0.1-SNAPSHOT-jar-with-dependencies.jar env.user
= environment name example qa, qa2, devenv.endpoint
= base environmentscenarioSheet
= scenariosheet.csv ( which we want to execute)env.testLevel
= smokeenv.langcode
= eng (default language of the target 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
This project is licensed under the terms of Mozilla Public License 2.0.