browserstack / browserstack-bitrise-xcui-step

Official browserstack xcui bitrise step.
0 stars 5 forks source link

BrowserStack App Automate - XCUITest failing #10

Open OmarJalil opened 7 months ago

OmarJalil commented 7 months ago

I am trying to run my UI Tests on Browserstack through Bitrise and getting failure when I did the required steps.

In the documentation of BrowserStack it says that $BITRISE_TEST_BUNDLE_PATH should be used.

When I do that I am getting the following error:

2024/02/01 16:38:48 Starting the build on BrowserStack App Automate
2024/02/01 16:38:48 xcuitest_testsuite_path: couldn’t find the <AppnameUITests>-Runner.app .  Please add the $BITRISE_TEST_BUNDLE_PATH from Xcode Build for testing for iOS step or the absolute path of <AppnameUITests>-Runner.app

But the previous step clearly exports the $BITRISE_TEST_BUNDLE_PATH

Export outputs
The xcodebuild command log file path is available in BITRISE_XCODE_RAW_RESULT_TEXT_PATH env: /Users/[REDACTED]/deploy/raw-xcodebuild-output.log
The test bundle directory is available in BITRISE_TEST_BUNDLE_PATH env: /var/folders/yy/6kcn9mkd5svdbqnznwf474f00000gn/T/test_bundle2829530248
The zipped test bundle is available in BITRISE_TEST_BUNDLE_ZIP_PATH env: /Users/[REDACTED]/deploy/testbundle.zip
The built xctestrun file is available in BITRISE_XCTESTRUN_FILE_PATH env: /var/folders/yy/6kcn9mkd5svdbqnznwf474f00000gn/T/test_bundle2829530248/Staging_Staging_iphoneos17.2-arm64.xctestrun

I found the very same error from 2022
Do you have any suggestion to resolve this issue?

DanKorkelia commented 1 month ago

It might need the exact path and file name to both Runner.app and .ipa files. It's not clear from documentation to be honest.