zebrunner / mcloud-agent

20 stars 12 forks source link

It makes sense to do a restart on the iOS and Android platforms #99

Closed dhreben closed 2 years ago

dhreben commented 2 years ago

for example:

zebrunner-farm restart ios
zebrunner-farm restart android
vdelendik commented 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!

dhreben commented 2 years ago

Case 1: ./zebrunner.sh stop android or zebrunner-farm stop android

1.docker ps -a

  1. ./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

  1. ./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

  1. ./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

  1. ./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

  1. ./zebrunner.sh 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"
vdelendik commented 2 years ago
  1. fixed mistake with missing ']' symbol
  2. fixed status call ignoring empty devices
  3. errors with permissions denied is not bug. somebody generated such logs under the root and locked to fix remove all logs under the root: sudo rm -f /tmp/*.log
dhreben commented 2 years ago

Case 1:

Case 2:

Case 3:

Case 4: