-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrunner-ex6.yml
45 lines (38 loc) · 1.26 KB
/
runner-ex6.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
43
# Example 6: Parallel execution by platform version
# Run two tests on separate random iPhone devices in my pool, this can be US/EU
# Use `platformVersion` to find any free iPhone device with iOS 14.8 and 13.7
# and run the test on it.
apiVersion: v1alpha
kind: xcuitest
sauce:
# This can be `eu-central-1` or `us-west-1`
region: eu-central-1
concurrency: 10
xcuitest:
app: apps/MyDemoApp.ipa
testApp: apps/MyDemoAppUITests-Runner.ipa
suites:
- name: "Example 6 - testProductListingPageAddMultipleItemsToCart"
testOptions:
class: ["MyDemoAppUITests.ProductListingPageTest/testProductListingPageAddMultipleItemsToCart"]
devices:
# Run on whatever iPhone device is available with iOS version 14.8
- name: "iPhone.*"
platformVersion: '^1(4.[3-9]|[5-6]).*'
- name: "Example 6 - testProductDetailsColorsSwitch"
testOptions:
class: ["MyDemoAppUITests.ProductDetailsTest/testProductDetailsColorsSwitch"]
devices:
# Run on whatever iPhone device is available with iOS version 14
- name: "iPhone.*"
platformVersion: '^1(4.[3-9]|[5-6]).*'
reporters:
junit:
enabled: true
filename: ./reports/example-6-report.xml
artifacts:
download:
when: always
match:
- "*"
directory: ./reports/