Skip to content

Commit

Permalink
Merge pull request #253 from mohanachandran-s/develop
Browse files Browse the repository at this point in the history
MOSIP-39696 - Merge release-0.11.x branch back to develop branch
  • Loading branch information
Gurpreet41082 authored Feb 12, 2025
2 parents f421658 + f41b607 commit 024f10a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
15 changes: 8 additions & 7 deletions inji-web-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ Inji-Web-test Automation is a robust and comprehensive web automation framework
## Pre-requisites

Ensure the following software is installed on the machine from where the automation tests will be executed:
- Java 21
- The project requires JDK 21
- Maven 3.6.0 or higher

## Build
1. Clone the repository by git clone https://github.com/mosip/inji-web.git
2. Change directory by using command 'cd ../inji-web-test' & Build the JAR file: `mvn clean package -DskipTests=true`
3. The JAR file will be generated in the `target` directory.
4. For running tests on Device Farm, use the JAR file with dependencies (`zip-with-dependencies`).
## BrowserStack
1. singup to browserStack & get the userName and accessKey from home page on browserStack
2. update the userName and accessKey from browserstack.yml
3. update the device from tag `platforms` from `https://www.browserstack.com/list-of-browsers-and-platforms/automate` (Windows, Mac)
4. Open command prompt and change directory by using command 'cd ../inji-web-test'
5. Hit the command `mvn clean test -DtestngXmlFile=TestNg.xml`, for running the UI automation test

## Configurations

1. Update `featurefile>>subirdVc.feature,downloadMosipCredentials.feature` to modify data in examples section.

## Reports

Test reports will be available in the `test-output>>ExtentReports>>SparkReports` directory after test execution.
Test reports will be available in the `test-output>>ExtentReports>>SparkReports` directory after test execution.
2 changes: 1 addition & 1 deletion inji-web-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.mosip.uiautomation.injiweb</groupId>
<artifactId>inji-web-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion inji-web-test/src/main/java/pages/MosipCredentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ public Boolean isDownloadingDescriptionTextDisplayed() {
return isElementIsVisible(driver, By.xpath("//*[@data-testid='DownloadResult-SubTitle']"));
}

}
}
2 changes: 1 addition & 1 deletion inji-web-test/src/main/java/pages/SunbirdCredentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ public void clickOnVehicleInsurance() {



}
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,4 @@ public void user_click_on_vehicle_insurance_button() {
public void user_verify_full_name_input_box_header() {
Assert.assertTrue(sunbirdCredentials.isEnterFullNameHeaderDisplayed());
}
}

}
3 changes: 1 addition & 2 deletions inji-web-test/src/test/java/utils/GlobelConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ public class GlobelConstants {
public static final String ListOfCredentialDescriptionTextInFrench = "Recherchez votre émetteur de confiance et choisissez un type d'identifiant à l'étape suivante.";
public static final String ListOfCredentialDescriptionTextInArabic = "ابحث عن جهة الإصدار الموثوق بها واختر نوع بيانات الاعتماد في الخطوة التالية.";
public static final String FooterText = "© 2024 Inji. All rights reserved.";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,4 @@ Feature: download mosip cridentials

Examples:
| vid | otp | Vailidty |
| 2405782960 | 111111 | 3 |

| 2405782960 | 111111 | 3 |

0 comments on commit 024f10a

Please sign in to comment.