Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement extended status call for iOS devices and simulators #78

Closed
vdelendik opened this issue Jan 21, 2022 · 2 comments
Closed

implement extended status call for iOS devices and simulators #78

vdelendik opened this issue Jan 21, 2022 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@vdelendik
Copy link
Contributor

vdelendik commented Jan 21, 2022

in additions to the syncZebrunner services status ./zebrunner.sh status should return state of each whitelisted device/simulator and their services:

  • appium
  • wda
  • stf

better to implement together with #54

@vdelendik vdelendik added the enhancement New feature or request label Jan 21, 2022
@vdelendik vdelendik added this to the 2.1 milestone Jan 21, 2022
@vdelendik vdelendik modified the milestones: 2.1, 2.2 Mar 7, 2022
@vdelendik vdelendik modified the milestones: 2.2, 2.3 Apr 3, 2022
@vdelendik vdelendik modified the milestones: 2.3, 2.4 Aug 19, 2022
@vdelendik vdelendik modified the milestones: 2.4, 2.5 Dec 12, 2022
@vdelendik vdelendik modified the milestones: 2.5, 2.4 Dec 24, 2022
vdelendik pushed a commit that referenced this issue Dec 24, 2022
@vdelendik
Copy link
Contributor Author

done. we can track 3 states as of now:
disconnected, healthy and unhealthy.

testing should cover such scenarios:

  1. status is displayed right after the start
./zebrunner.sh start
Waiting while services are up&running...

iPhone_8 (b09fa26acc4c3f777e9b8b49e3348b7243f862b5) is disconnected!
iPhone_14_Pro (E7916230-C08C-43E4-933A-9B4F1ECFB989)
iPhone_14 (44568699-BA22-4A88-8DD5-413AC1663051)

iPhone_8 (b09fa26acc4c3f777e9b8b49e3348b7243f862b5) is disconnected!
iPhone_14 (44568699-BA22-4A88-8DD5-413AC1663051) is healthy.
iPhone_14_Pro (E7916230-C08C-43E4-933A-9B4F1ECFB989) is healthy.
  1. just verify status at runtime:
./zebrunner.sh status
iPhone_8 (b09fa26acc4c3f777e9b8b49e3348b7243f862b5) is disconnected!
iPhone_14 (44568699-BA22-4A88-8DD5-413AC1663051) is healthy.
iPhone_14_Pro (E7916230-C08C-43E4-933A-9B4F1ECFB989) is healthy.
  1. verify status using concrete device udid:
./zebrunner.sh status 44568699-BA22-4A88-8DD5-413AC1663051
iPhone_14 (44568699-BA22-4A88-8DD5-413AC1663051) is healthy.
  1. verify status over stopped services
./zebrunner.sh stop
Stopping MCloud services...
iPhone_8 (b09fa26acc4c3f777e9b8b49e3348b7243f862b5) is disconnected!
iPhone_14_Pro (E7916230-C08C-43E4-933A-9B4F1ECFB989)
iPhone_14 (44568699-BA22-4A88-8DD5-413AC1663051)
MCloud services stopped.
idmclouds-Mac-mini:mcloud-ios idmcloud$ ./zebrunner.sh status
iPhone_8 (b09fa26acc4c3f777e9b8b49e3348b7243f862b5) is disconnected!
iPhone_14 (44568699-BA22-4A88-8DD5-413AC1663051) is unhealthy!
iPhone_14_Pro (E7916230-C08C-43E4-933A-9B4F1ECFB989) is unhealthy!
  1. verify that help message is updated for status call:
 ./zebrunner.sh

      Usage: ./zebrunner.sh [option]
      Flags:
          --help | -h    Print help
      Arguments:
          status [udid]       Status of the Device Farm iOS agent services [all or for exact device by udid]
          setup               Setup Devices Farm iOS agent
          authorize-simulator Authorize whitelisted simulators
          start [udid]        Start Device Farm iOS agent services [all or for exact device by udid]
          stop [udid]         Stop Device Farm iOS agent services and remove logs [all or for exact device by udid]
          restart [udid]      Restart Device Farm iOS agent services [all or for exact device by udid]
          shutdown            Destroy Device Farm iOS agent completely
          backup              Backup Device Farm iOS agent services
          restore             Restore Device Farm iOS agent services
          version             Version of Device Farm iOS agent

      For more help join telegram channel: https://t.me/zebrunner

Such info was added: status [udid] Status of the Device Farm iOS agent services [all or for exact device by udid]

@dhreben
Copy link

dhreben commented Dec 30, 2022

Verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants