mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-08 21:18:14 -05:00
* [MOSIP-42741] [UI Testrig] Inji Mobile - Do the cleanup for duplicated assertions done in all the testcases Signed-off-by: Aswin <aswingopal30@gmail.com> * [MOSIP-42741] [UI Testrig] Inji Mobile - Do the cleanup for duplicated assertions done in all the testcases Signed-off-by: Aswin <aswingopal30@gmail.com> * Update DeletingVcTest.java Updated as per the river comments Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update VcDownloadAndVerifyUsingEsignetTest.java updated the changes Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update VcDownloadAndVerifyUsingEsignetTest.java updated the changes Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update keyManagement.java updated the changes Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update VerifyHistoryTest.java updated the changes Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * [MOSIP-42741] [UI Testrig] Inji Mobile - Do the cleanup for duplicated assertions done in all the testcases Signed-off-by: Aswin <aswingopal30@gmail.com> * Update KeyManagmentTest.java 47-line uncommented Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update NoNetworkIosTest.java removed the commented into uncommented line 448 and 449 Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update UnlockWithPasscodeTest.java uncommented Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update VcDownloadAndVerifyUsingMdl.java uncommented line 105 106 106 Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update VcDownloadAndVerifyUsingMdl.java line 154 and 155 uncommented Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update VerifyHistoryTest.java line 168 uncommented Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> * Update KeyManagmentTest.java uncommented the line number 181 assertTrue(sunbirdLoginPage.isSunbirdCardActive(), "Verify if download sunbird displayed active"); Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com> --------- Signed-off-by: Aswin <aswingopal30@gmail.com> Signed-off-by: gopalaswin <167510433+gopalaswin@users.noreply.github.com>
Inji Automation - Mobile Automation Framework using Appium
Overview
Inji Automation is a mobile automation framework designed for iOS and Android platforms. It automates both positive and negative scenarios to ensure comprehensive testing of mobile applications.
Installation
To set up Appium for use with this framework, please follow the installation instructions provided in the Appium documentation.
Pre-requisites
Ensure the following software is installed on the machine from where the automation tests will be executed:
- The project requires JDK 21
Configurations
- update
resourec/uin.json,resourec/Vid.json,resourec/aid.jsonfile as per the uin and vids being used. - Update utils/TestDataReader to include updates for FullName, uin, idType, gender, phoneNumber, dateOfBirth, and externalEmail as they are used during creation.
BrowserStack
- singup to browserStack & get the userName and accessKey from home page on browserStack.
- Upload app on browserStack it will return 'bs://', update the same appid in iosConfig.yml/androidconfig.yml.
- update the userName and accessKey from iosConfig.yml/androidconfig.yml.
- update the device from tag platforms from https://www.browserstack.com/list-of-browsers-and-platforms/automate (Windows, Mac).
- Open command prompt and change directory by using command 'cd ../injitest'.
- Hit the command mvn clean test -DtestngXmlFile=androidSanity.xml -Dbrowserstack.config="androidConfig.yml", for running the sanity for android.
- Hit the command mvn clean test -DtestngXmlFile=iosSanity.xml -Dbrowserstack.config="iosConfig.yml", for running the sanity for ios.
- Hit the command mvn clean test -DtestngXmlFile=iosRegression.xml -Dbrowserstack.config="iosConfig.yml", for running the regression for ios.
- Hit the command mvn clean test -DtestngXmlFile=androidRegression.xml -Dbrowserstack.config="androidConfig.yml", for running the Regression for android.
Reports
Test reports will be available in the test-output>>emailableReports directory after test execution.