-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_behave.sh.local
executable file
·55 lines (45 loc) · 1.68 KB
/
run_behave.sh.local
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
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#chmod +x behave_runner.py
# NATIVE APP - OFFICIAL ENVIRONMENT SETTINGS
PYON_ENVIRONMENT='staging'
PYON_TARGET='local_emulation'
PYON_MODE='native_app'
PYON_OS='Android'
PYON_OS_VERSION='11.0'
PYON_DEVICE='Samsung Galaxy A51'
# WITH IOS
# PYON_OS='iOS'
# PYON_OS_VERSION='14.5'
# PYON_DEVICE='iPhone 12'
PYON_ORIENTATION='Portrait'
PYON_LANGUAGE='en'
PYON_LOCALE='en_GB'
PYON_APP_PATH='/Users/hudsonssrosa/git_projects/pyon-behave-ui-tests-nativeapps/.resources/app_distribution/Sample.apk'
# WITH IOS
# PYON_APP_PATH='/Users/<PC_USER_NAME>/Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphonesimulator/<YOUR_APP_BUILD>.app'
PYON_TAGS='login-sample'
PYON_EXCLUDED_TAG='wip'
echo 'COPYING PROPERTIES'
cp env_settings.properties.local env_settings.properties
echo 'UPDATING PACKAGES...'
python setup_python_env_update.py
echo '\nSTARTING APPIUM SERVER...'
bash -c "\
python appium_setup.py --server start & \
sleep 7
"
echo 'RUNNING BEHAVE TESTS...'
python behave_runner.py --target $PYON_TARGET \
--environment "$PYON_ENVIRONMENT" \
--mode $PYON_MODE \
--os "$PYON_OS" \
--os_version "$PYON_OS_VERSION" \
--device_name "$PYON_DEVICE" \
--orientation "$PYON_ORIENTATION" \
--language "$PYON_LANGUAGE" \
--locale "$PYON_LOCALE" \
--app_path "$PYON_APP_PATH" \
--tags "$PYON_TAGS" \
--exclude "$PYON_EXCLUDED_TAG"
echo '\nSTOPPING APPIUM SERVER...'
python appium_setup.py --server stop