-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathios_tests.sh
More file actions
45 lines (37 loc) · 1.14 KB
/
Copy pathios_tests.sh
File metadata and controls
45 lines (37 loc) · 1.14 KB
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
44
45
#!/bin/bash
#########################################################
#
# Preparing to start Appium
# - UDID is the device ID on which test will run and
# required parameter on iOS test runs
# - appium - is a wrapper tha calls the latest installed
# Appium server. Additional parameters can be passed
# to the server here.
#
#########################################################
echo "UDID set to ${IOS_UDID}"
echo "Starting Appium ..."
appium -U ${IOS_UDID} --log-no-colors --log-timestamp --command-timeout 180 > appium.log 2>&1 &
sleep 10
ps -ef|grep appium
## Desired capabilities:
export APPIUM_APPFILE="$PWD/TrashCat.ipa"
export APPIUM_URL="http://localhost:4723/wd/hub"
export APPIUM_DEVICE="Local Device"
export APPIUM_PLATFORM="iOS"
export APPIUM_AUTOMATION="XCUITest"
export APPIUM_XCODEORGID="59ESG8ELF5"
export APPIUM_XCODESIGNID="iPhone Developer"
## Check iproxy:
iproxy --version
## Clean local screenshots directory:
rm -rf screenshots
## Run the tests:
echo "Running tests"
cd TestAlttrashCSharp
dotnet restore
dotnet test
echo "Tests done"
echo "---> Killing existing xcode processes:"
killall xcodebuild || true
killall iproxy