-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrunner-ex3.yml
42 lines (38 loc) · 1.21 KB
/
runner-ex3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Example 3: Run each test on its own device
# Run two tests on separately available devices in my pool, this can be US/EU
apiVersion: v1alpha
kind: espresso
sauce:
# This can be `eu-central-1` or `us-west-1`
region: eu-central-1
# Controls how many suites are executed at the same time (sauce test env only).
concurrency: 10
espresso:
app: ./apps/my-demo-app-android.apk
testApp: ./apps/my-demo-app-android-tests.apk
suites:
- name: "Example 3: One test per device - successfulLogin"
testOptions:
class:
- com.saucelabs.mydemoapp.android.view.activities.LoginTest#succesfulLoginTest
devices:
- name: "Samsung.*"
options:
# Possible values [ANY,PHONE,TABLET]
deviceType: PHONE
- name: "Example 3: One test per device - noUsernameLogin"
testOptions:
class:
- com.saucelabs.mydemoapp.android.view.activities.LoginTest#noUsernameLoginTest
devices:
- name: "Samsung.*"
options:
# Possible values [ANY,PHONE,TABLET]
deviceType: PHONE
# Controls what artifacts to fetch when the suite on Sauce Cloud has finished.
artifacts:
download:
when: always
match:
- junit.xml
directory: ./reports/