Skip to content

Commit

Permalink
Merge pull request #20 from aquality-automation/maintenance/add-local…
Browse files Browse the repository at this point in the history
…service-retry

Update package, add localservice retry and simulator waiting command
  • Loading branch information
mialeska authored Mar 2, 2023
2 parents fe872c0 + c2fdbf0 commit 5e6eb18
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-with-allure-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ jobs:
with:
model: ${{ env.IOS_SIM_MODEL }}

- name: Wait for simulator to be ready
run: |
SIM_UID="$(xcrun simctl list devices | grep -m 1 "$IOS_SIM_MODEL" | grep -E -o -i "([0-9A-F]{8}-([0-9A-F]{4}-){3}[0-9A-F]{12})")"
xcrun simctl bootstatus $SIM_UID
- name: Test against iOS
if: always()
id: maven_tests
Expand Down
30 changes: 30 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Aquality Automation
Copyright 2023 Aquality Automation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
7 changes: 6 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>com.github.aquality-automation</groupId>
<artifactId>aquality-appium-mobile</artifactId>
<version>3.1.1</version>
<version>3.1.2</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down

0 comments on commit 5e6eb18

Please sign in to comment.