Fixed if-else logic
This commit is contained in:
parent
99c1b1f6b6
commit
15f6541621
|
@ -24,10 +24,10 @@ services:
|
||||||
# - /dev/bus/usb:/dev/bus/usb
|
# - /dev/bus/usb:/dev/bus/usb
|
||||||
# - ~/.android:/root/.android
|
# - ~/.android:/root/.android
|
||||||
# environment:
|
# environment:
|
||||||
# - CONNECT_TO_GRID=True
|
# - CONNECT_TO_GRID=true
|
||||||
# - APPIUM=true
|
# - APPIUM=true
|
||||||
# - SELENIUM_HOST=selenium_hub
|
# - SELENIUM_HOST=selenium_hub
|
||||||
# - AUTO_RECORD=True
|
# - AUTO_RECORD=true
|
||||||
# - BROWSER_NAME=chrome
|
# - BROWSER_NAME=chrome
|
||||||
|
|
||||||
# Using Appium Docker Android
|
# Using Appium Docker Android
|
||||||
|
@ -42,7 +42,7 @@ services:
|
||||||
- ~/.android:/root/.android
|
- ~/.android:/root/.android
|
||||||
- $PWD/example/sample_apk:/root/tmp
|
- $PWD/example/sample_apk:/root/tmp
|
||||||
environment:
|
environment:
|
||||||
- CONNECT_TO_GRID=True
|
- CONNECT_TO_GRID=true
|
||||||
- SELENIUM_HOST=selenium_hub
|
- SELENIUM_HOST=selenium_hub
|
||||||
# Enable it for msite testing
|
# Enable it for msite testing
|
||||||
#- BROWSER_NAME=chrome
|
#- BROWSER_NAME=chrome
|
||||||
|
@ -64,10 +64,10 @@ services:
|
||||||
- ./video-nexus_7.1.1:/tmp/video
|
- ./video-nexus_7.1.1:/tmp/video
|
||||||
environment:
|
environment:
|
||||||
- DEVICE=Nexus 5
|
- DEVICE=Nexus 5
|
||||||
- CONNECT_TO_GRID=True
|
- CONNECT_TO_GRID=true
|
||||||
- APPIUM=true
|
- APPIUM=true
|
||||||
- SELENIUM_HOST=selenium_hub
|
- SELENIUM_HOST=selenium_hub
|
||||||
- AUTO_RECORD=True
|
- AUTO_RECORD=true
|
||||||
|
|
||||||
# Docker-Android for mobile website testing with chrome browser
|
# Docker-Android for mobile website testing with chrome browser
|
||||||
# Chrome browser exists only for version 7.0 and 7.1.1
|
# Chrome browser exists only for version 7.0 and 7.1.1
|
||||||
|
@ -85,11 +85,11 @@ services:
|
||||||
- ./video-samsung_7.1.1:/tmp/video
|
- ./video-samsung_7.1.1:/tmp/video
|
||||||
environment:
|
environment:
|
||||||
- DEVICE=Samsung Galaxy S6
|
- DEVICE=Samsung Galaxy S6
|
||||||
- CONNECT_TO_GRID=True
|
- CONNECT_TO_GRID=true
|
||||||
- APPIUM=true
|
- APPIUM=true
|
||||||
- SELENIUM_HOST=selenium_hub
|
- SELENIUM_HOST=selenium_hub
|
||||||
- MOBILE_WEB_TEST=True
|
- MOBILE_WEB_TEST=true
|
||||||
- AUTO_RECORD=True
|
- AUTO_RECORD=true
|
||||||
|
|
||||||
# Docker-Android for mobile website testing with default browser
|
# Docker-Android for mobile website testing with default browser
|
||||||
# Default browser exists only for version 5.0.1, 5.1.1 and 6.0
|
# Default browser exists only for version 5.0.1, 5.1.1 and 6.0
|
||||||
|
@ -107,8 +107,8 @@ services:
|
||||||
- ./video-samsung_5.1.1:/tmp/video
|
- ./video-samsung_5.1.1:/tmp/video
|
||||||
environment:
|
environment:
|
||||||
- DEVICE=Samsung Galaxy S6
|
- DEVICE=Samsung Galaxy S6
|
||||||
- CONNECT_TO_GRID=True
|
- CONNECT_TO_GRID=true
|
||||||
- APPIUM=true
|
- APPIUM=true
|
||||||
- SELENIUM_HOST=selenium_hub
|
- SELENIUM_HOST=selenium_hub
|
||||||
- MOBILE_WEB_TEST=True
|
- MOBILE_WEB_TEST=true
|
||||||
- AUTO_RECORD=True
|
- AUTO_RECORD=true
|
||||||
|
|
|
@ -16,7 +16,7 @@ function auto_record() {
|
||||||
echo "Auto record: $AUTO_RECORD"
|
echo "Auto record: $AUTO_RECORD"
|
||||||
sleep 6
|
sleep 6
|
||||||
|
|
||||||
while [ $AUTO_RECORD == "True" ]; do
|
while [ $AUTO_RECORD == true ]; do
|
||||||
# Check if there is test running
|
# Check if there is test running
|
||||||
no_test=true
|
no_test=true
|
||||||
while $no_test; do
|
while $no_test; do
|
||||||
|
|
Loading…
Reference in a new issue