Webdriver agent issue in macos-13 runner for running appium tests in iOS simulator #9781
Replies: 1 comment
-
I was able to get it fixed by using Xcode 15.3.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to setup CI/CD for running appium webdriver IO tests on github runner
currently using macos-13 runner image
My workflow job is as follows
- name: Set up Xcode uses: maxim-lobanov/setup-xcode@v1.6.0 with: xcode-version: "15.2.0" - name: Boot iOS Simulator run: xcrun simctl boot 'iPhone 14' - name: Check Simulator Status run: xcrun simctl list - name: Check if the device is booted run: | booted="" timeout=120 while [[ $timeout -gt 0 && -z "$booted" ]]; do booted=$(xcrun simctl list devices | grep -E "Booted|booted" | wc -l) sleep 5 ((timeout-=5)) done if [[ "$booted" -gt 0 ]]; then echo "iOS simulator has successfully booted." else echo "iOS simulator booting timed out or failed." exit 1 fi - name: Search for Evidation app if: ${{ inputs.project == 'xxx' }} run: | if [[ ${{ inputs.environment }} == 'stage' ]]; then app_path=$(find /Users/runner/work/xx/xx/app -name "xxx" -type d 2>/dev/null) fi if [ -n "$app_path" ]; then echo "App found at: $app_path" else echo "App not found on the runner." exit 1 fi - name: Install iOS app on simulator if: ${{ inputs.project == 'xxx' }} run: | cd /Users/runner/work/xx.xxapp xcrun simctl install booted "./xx.app" - name: Check if the app is installed if: ${{ inputs.project == 'xx' }} run: | app_name="Evidation Stage" if ls -1 ~/Library/Developer/CoreSimulator/Devices/*/data/Containers/Bundle/Application/*/"$app_name".app > /dev/null 2>&1; then echo "App installed successfully on the simulator." else echo "Failed to install the app on the simulator." exit 1 fi - name: Run The selected Tests on iOS
When the run tests step comes i see this error
2024-05-02T16:19:09.560Z ERROR @wdio/appium-service: [XCUITestDriver@87de (d2d8682d)] Unable to start WebDriverAgent: Error: We were not able to retrieve the /status response from the WebDriverAgent server after 60000ms timeout.Try to increase the value of 'appium:wdaLaunchTimeout' capability as a possible workaround.
which eventually fails with this error
[0-2] 2024-05-02T16:47:02.075Z ERROR webdriver: Request failed with status undefined due to TimeoutError: Timeout awaiting 'response' for 120000ms when running "http://127.0.0.1:4723/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"platformName":"iOS","appium:automationName":"XCUITest","appium:autoAcceptAlerts":true,"appium:deviceName":"iPhone 14","appium:platformVersion":"17.2","appium:app":"/Users/runner/work/xx/xx/app/xx.app"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"iOS","appium:automationName":"XCUITest","appium:autoAcceptAlerts":true,"appium:deviceName":"iPhone 14","appium:platformVersion":"17.2","appium:app":"/Users/runner/work/xx/xx/app/xx.app"}}" [0-2] 2024-05-02T16:47:02.077Z ERROR webdriver: TimeoutError: Timeout awaiting 'response' for 120000ms when running "http://127.0.0.1:4723/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"platformName":"iOS","appium:automationName":"XCUITest","appium:autoAcceptAlerts":true,"appium:deviceName":"iPhone 14","appium:platformVersion":"17.2","appium:app":"/Users/runner/work/xx/xx/app/xx.app"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"iOS","appium:automationName":"XCUITest","appium:autoAcceptAlerts":true,"appium:deviceName":"iPhone 14","appium:platformVersion":"17.2","appium:app":"/Users/runner/work/xx/xx/app/xx.app"}}"
I was able to use the same steps few months back using Xcode 14.2.0 but now with various Xcode version and iOS simulator versions seeing the same issue
In my local i have Appium.app installed so i could dowload the latest webdriver agent, copy in Application/Appium.app/.. path and the issue was resolved but not in the github runner
Anybody faced this on github runners and how to solve it?
Beta Was this translation helpful? Give feedback.
All reactions