-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from aquality-automation/maintenance/add-local…
…service-retry Update package, add localservice retry and simulator waiting command
- Loading branch information
Showing
5 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ jobs: | |
IOS: | ||
PLATFORM_NAME: ios | ||
IOS_SIM_ID: iPhone-8, 16.2 | ||
IOS_SIM_NAME: iPhone 8 | ||
|
||
steps: | ||
- task: CmdLine@2 | ||
|
@@ -113,11 +114,15 @@ jobs: | |
appium driver list | ||
echo "XCUITest driver installed" | ||
echo "Starting ${IOS_SIM_ID} simulator" | ||
npm install -g [email protected] | ||
ios-sim showdevicetypes | ||
ios-sim start --devicetypeid "$(IOS_SIM_ID)" | ||
echo "Simulator started" | ||
echo "Wait for simulator to be ready" | ||
sleep 240 | ||
SIM_UID="$(xcrun simctl list devices | grep -m 1 "$IOS_SIM_NAME" | grep -E -o -i "([0-9A-F]{8}-([0-9A-F]{4}-){3}[0-9A-F]{12})")" | ||
xcrun simctl bootstatus $SIM_UID | ||
condition: and(succeeded(), eq(variables['PLATFORM_NAME'], 'ios')) | ||
|
||
- task: CmdLine@2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters