Skip to content

Commit

Permalink
[BROWSERTACK-GITHUB-ACTION] Update to V2
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz committed Sep 19, 2023
1 parent 6cd25bb commit a832ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/browserstackJenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ test_apk_path=$(findApkPath "core")

# Upload app and testing apk
echo "Uploading app APK to Browserstack..."
upload_app_response="$(curl -u "$bs_auth" -X POST $bs_automate_url/upload -F file=@$app_apk_path)"
upload_app_response="$(curl -u "$bs_auth" -X POST $bs_automate_url/espresso/v2/app -F file=@$app_apk_path)"
app_url=$(echo "$upload_app_response" | jq .app_url)

echo "Uploading test APK to Browserstack..."
upload_test_response="$(curl -u "$bs_auth" -X POST $bs_automate_url/espresso/test-suite -F file=@$test_apk_path)"
test_url=$(echo "$upload_test_response" | jq .test_url)
upload_test_response="$(curl -u "$bs_auth" -X POST $bs_automate_url/espresso/v2/test-suite -F file=@$test_apk_path)"
test_url=$(echo "$upload_test_response" | jq .test_suite_url)

# Prepare json and run tests
echo "Starting execution of espresso tests..."
Expand Down

0 comments on commit a832ed6

Please sign in to comment.