Closed dhreben closed 2 years ago
done. please, test:
start/stop/down/restart and status - all of them should be able to operate by platform name: ios
or android
- only in lower case!
Case 1: ./zebrunner.sh stop android or zebrunner-farm stop android
1.docker ps -a
./zebrunner.sh stop android
Actual result : /usr/local/bin/zebrunner-farm: line 186
(base) build@mcloud:~/tools/mcloud-agent$ ./zebrunner.sh stop android
ACTION: stop
/usr/local/bin/zebrunner-farm: line 186: [: missing `]'
device-Samsung_Galaxy_S5-4d0.......1e7 stopping...
/usr/local/bin/zebrunner-farm: line 217: /tmp/device-Samsung_Galaxy_S5-4.........1e7.log: Permission denied
device-Samsung_Galaxy_S5-4d0.....d21e7
/usr/local/bin/zebrunner-farm: line 219: /tmp/device-Samsung_Galaxy_S5-4d0.....1e7-appium.log: Permission denied
device-Samsung_Galaxy_S5-4d003e....1e7-appium
Case 2: ./zebrunner.sh start android or zebrunner-farm start android
1.docker ps -a
./zebrunner.sh start android
Actual result : /usr/local/bin/zebrunner-farm: line 299
(base) build@mcloud:~/tools/mcloud-agent$ zebrunner-farm stop android
ACTION: stop
/usr/local/bin/zebrunner-farm: line 186: [: missing `]'
device-Samsung_Galaxy_S5-4d003....1e7 stopping...
/usr/local/bin/zebrunner-farm: line 217: /tmp/device-Samsung_Galaxy_S5-4d0....21e7.log: Permission denied
device-Samsung_Galaxy_S5-4d003e5f4aad21e7
/usr/local/bin/zebrunner-farm: line 219: /tmp/device-Samsung_Galaxy_S5-4d003.....21e7-appium.log: Permission denied
device-Samsung_Galaxy_S5-4d003e...7-appium
Case 3../zebrunner.sh restart android or zebrunner-farm restart android
1.docker ps -a
./zebrunner.sh restart android
Actual result : /usr/local/bin/zebrunner-farm: line 228
(base) build@mcloud:~/tools/mcloud-agent$ ./zebrunner.sh restart android
ACTION: down
/usr/local/bin/zebrunner-farm: line 228: [: missing `]'
/usr/local/bin/zebrunner-farm: line 260: /tmp/device-Samsung_Galaxy_S5-4d003......1e7.log: Permission denied
device-Samsung_Galaxy_S5-4d.....1e7
/usr/local/bin/zebrunner-farm: line 266: /tmp/device-Samsung_Galaxy_S5-4d0.....21e7-appium.log: Permission denied
device-Samsung_Galaxy_S5-4d......21e7-appium
Case 4../zebrunner.sh down android or zebrunner-farm down android
1.docker ps -a
./zebrunner.sh down android
Actual result : /usr/local/bin/zebrunner-farm: line 228
(base) build@mcloud:~/tools/mcloud-agent$ ./zebrunner.sh restart android
ACTION: down
/usr/local/bin/zebrunner-farm: line 228: [: missing `]'
/usr/local/bin/zebrunner-farm: line 260: /tmp/device-Samsung_Galaxy_S5-4d.....1e7.log: Permission denied
device-Samsung_Galaxy_S5-4d00......1e7
/usr/local/bin/zebrunner-farm: line 266: /tmp/device-Samsung_Galaxy_S5-4d......d21e7-appium.log: Permission denied
device-Samsung_Galaxy_S5-4d003.....d21e7-appium
Case 5../zebrunner.sh status android or zebrunner-farm status android
Actual result : /usr/local/bin/zebrunner-farm: line 340
(base) build@mcloud:~/tools/mcloud-agent$ ./zebrunner.sh status android
ACTION: status
/usr/local/bin/zebrunner-farm: line 340: [: missing `]'
device-Samsung_Galaxy_S10-R2.............YQY - DISCONNECTED
device-- - DISCONNECTED
device-- - DISCONNECTED
device-- - DISCONNECTED
device-Samsung_Galaxy_S5-4d003......d21e7
Appium: "healthy"; STF: "healthy"
device-Nokia_3-NE1GA.....5862
Appium: "healthy"; STF: "healthy"
device-- - DISCONNECTED
device-- - DISCONNECTED
device-Samsung_Galaxy_S6-03........6915
Appium: "healthy"; STF: "healthy"
device-- - DISCONNECTED
device-- - DISCONNECTED
device-- - DISCONNECTED
device-LG_G6-LG........8e7
Appium: "healthy"; STF: "healthy"
sudo rm -f /tmp/*.log
Case 1:
Case 2:
Case 3:
Case 4:
zebrunner-farm down android ---> Passed
zebrunner-farm down ios ---> Passed
./zebrunner.sh down android ---> Passed
./zebrunner.sh down ios. ---> Passed
Case 5:.
zebrunner-farm status android ---> Passed
zebrunner-farm status ios ---> Passed
./zebrunner.sh status android ---> Passed
./zebrunner.sh status ios ---> Passed
for example: