mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
[DSD-5562] (#1523)
* [DSD-5562] Signed-off-by: bhumi46 <111699703+bhumi46@users.noreply.github.com> * Update automation_trigger.sh [DSD-5562] Signed-off-by: bhumi46 <111699703+bhumi46@users.noreply.github.com> --------- Signed-off-by: bhumi46 <111699703+bhumi46@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/ui-automation.yml
vendored
8
.github/workflows/ui-automation.yml
vendored
@@ -146,7 +146,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v3.1.1
|
||||
with:
|
||||
name: residentapp
|
||||
path: ios/fastlane/Inji_artifacts/Inji.ipa
|
||||
path: inji/ios/Inji.ipa
|
||||
retention-days: 10
|
||||
|
||||
- name: Run UI Automation Tests on BrowserStack
|
||||
@@ -158,3 +158,9 @@ jobs:
|
||||
TEST_TYPE: ${{ github.event.inputs.testType }}
|
||||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
|
||||
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
|
||||
- name: Save test reports
|
||||
uses: actions/upload-artifact@v3
|
||||
if: success() || failure()
|
||||
with:
|
||||
name: test-reports
|
||||
path: injitest/target/surefire-reports
|
||||
|
||||
@@ -36,7 +36,7 @@ upload_ipa_and_get_url() {
|
||||
local username="$1"
|
||||
local access_key="$2"
|
||||
local project_path=$(pwd)
|
||||
local ipa_path="$project_path/ios/fastlane/Inji_artifacts/Inji.ipa"
|
||||
local ipa_path="$project_path/ios/Inji.ipa"
|
||||
|
||||
if [[ -f "$ipa_path" ]]; then
|
||||
response=$(curl -u "$username:$access_key" \
|
||||
@@ -72,7 +72,7 @@ execute_android_tests() {
|
||||
|
||||
|
||||
# Run UI tests using Maven with the updated androidConfig.yml file and TestNG XML file based on the test type
|
||||
mvn clean test -DtestngXmlFile="android${test_type^}.xml" -Dbrowserstack.config="androidConfig.yml"
|
||||
mvn clean test -DtestngXmlFile="android${test_type}.xml" -Dbrowserstack.config="androidConfig.yml"
|
||||
}
|
||||
|
||||
# Function to execute iOS tests
|
||||
@@ -89,7 +89,7 @@ execute_ios_tests() {
|
||||
sed -i "s|accessKey:.*|accessKey: $access_key|" iosConfig.yml
|
||||
|
||||
# Run UI tests using Maven with the updated iosConfig.yml file and TestNG XML file based on the test type
|
||||
mvn clean test -DtestngXmlFile="ios${test_type^}.xml" -Dbrowserstack.config="iosConfig.yml"
|
||||
mvn clean test -DtestngXmlFile="ios${test_type}.xml" -Dbrowserstack.config="iosConfig.yml"
|
||||
}
|
||||
|
||||
# Check if the correct number of arguments are passed
|
||||
|
||||
Reference in New Issue
Block a user