Skip to content

Commit 33ba3fe

Browse files
committed
Test
1 parent 787fa03 commit 33ba3fe

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

.github/workflows/integration-test-android.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,22 @@ jobs:
128128
# -H "Content-Type: application/json" \
129129
# -d '{"appPackage": "io.sentry.unreal.sample", "appActivity": "com.epicgames.unreal.GameActivity"}'
130130

131-
- name: First launch (crash)
131+
- name: First launch (crash capture)
132132
run: |
133133
SESSION_ID="${{ steps.start_session.outputs.session_id }}"
134134
135-
RESPONSE=$(curl -sSL -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" \
136-
-X POST "https://ondemand.eu-central-1.saucelabs.com/wd/hub/session/$SESSION_ID/execute/sync" \
135+
RESPONSE=$(curl -sSL -w "\nHTTP:%{http_code}" \
136+
-u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" \
137+
-X POST "https://ondemand.eu-central-1.saucelabs.com/wd/hub/session/$SESSION_ID/appium/device/start_activity" \
137138
-H "Content-Type: application/json" \
138139
-d '{
139-
"script": "mobile: shell",
140-
"args": [{
141-
"command": "am",
142-
"args": ["start", "-n", "io.sentry.unreal.sample/com.epicgames.unreal.GameActivity", "-e", "cmdline", "-crash-capture"]
143-
}]
140+
"appPackage": "io.sentry.unreal.sample",
141+
"appActivity": "com.epicgames.unreal.GameActivity",
142+
"appWaitActivity": "*",
143+
"intentAction": "android.intent.action.MAIN",
144+
"intentCategory": "android.intent.category.LAUNCHER",
145+
"optionalIntentArguments": "-e cmdline '-crash-capture'"
144146
}')
145-
146147
echo "Launch response: $RESPONSE"
147148
148149
- name: Wait for crash
@@ -157,21 +158,23 @@ jobs:
157158
-d '{"type": "logcat"}' \
158159
-o first_run_logs.json
159160
160-
- name: Second launch (message)
161+
- name: Second launch (message capture)
161162
run: |
162163
SESSION_ID="${{ steps.start_session.outputs.session_id }}"
163164
164-
curl -sSL -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" \
165-
-X POST "https://ondemand.eu-central-1.saucelabs.com/wd/hub/session/$SESSION_ID/execute/sync" \
165+
RESPONSE=$(curl -sSL -w "\nHTTP:%{http_code}" \
166+
-u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" \
167+
-X POST "https://ondemand.eu-central-1.saucelabs.com/wd/hub/session/$SESSION_ID/appium/device/start_activity" \
166168
-H "Content-Type: application/json" \
167169
-d '{
168-
"script": "mobile: startActivity",
169-
"args": [{
170-
"appPackage": "io.sentry.unreal.sample",
171-
"appActivity": "com.epicgames.unreal.GameActivity",
172-
"optionalIntentArguments": "-e cmdline '\''-message-capture'\''"
173-
}]
174-
}'
170+
"appPackage": "io.sentry.unreal.sample",
171+
"appActivity": "com.epicgames.unreal.GameActivity",
172+
"appWaitActivity": "*",
173+
"intentAction": "android.intent.action.MAIN",
174+
"intentCategory": "android.intent.category.LAUNCHER",
175+
"optionalIntentArguments": "-e cmdline '-message-capture'"
176+
}')
177+
echo "Launch response: $RESPONSE"
175178
176179
- name: Wait for report
177180
run: sleep 20

0 commit comments

Comments
 (0)