You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling including a post-buildscript into AppCenter Build Process which starts the AppCenter Smoke tests.
#!/usr/bin/env bash
# Post Build Script
set -e # Exit immediately if a command exits with a non-zero status (failure)
echo "***********"
echo "Post Build Script"
echo "***********"
# variables
appCenterLoginApiToken=xxx
locale="de_DE"
appName="MyCustomer/MyCustomerAppiOS"
deviceSetNameDev="MyCustomer/mycustomerdevios"
deviceSetNameMaster="MyCustomer/mycustomermasterios"
testSeriesName="integration-tests"
appDebugPath=$APPCENTER_SOURCE_DIRECTORY
appReleasePath=$APPCENTER_SOURCE_DIRECTORY
buildDir=$APPCENTER_OUTPUT_DIRECTORY
# Run UITests
if [ "$APPCENTER_BRANCH" == "dev" ];
then
# app center command xcTest test
echo "########## $appName xcTest start ##########"
appcenter test run xcuitest --app $appName --devices $deviceSetNameDev --async --test-series $testSeriesName --locale $locale --build-dir $buildDir --token $appCenterLoginApiToken
echo "########## $appName xcTest finished ##########"
elif [ "$APPCENTER_BRANCH" == "master" ];
then
echo "########## $appName xcTest start ##########"
appcenter test run xcuitest --app $appName --devices $deviceSetNameMaster --async --test-series $testSeriesName --locale $locale --build-dir $buildDir --token $appCenterLoginApiToken
echo "########## $appName xcTest finished ##########"
else
echo "Current branch is not 'dev' nor 'master'"
fi
The post-buildscript is recognized by AppCenter and executed, but i keep getting the error: failed with exception "unable to find app within /Users/vsts/agent/2.150.2/work/1/a/build"
How should i know where the builded app with the tests is located?
I would be thankful if somebody can help me out or provide a example post-buildscript for ios xcTest with AppCenter Smoke tests.
Hello
I'm struggling including a post-buildscript into AppCenter Build Process which starts the AppCenter Smoke tests.
The post-buildscript is recognized by AppCenter and executed, but i keep getting the error:
failed with exception "unable to find app within /Users/vsts/agent/2.150.2/work/1/a/build"
How should i know where the builded app with the tests is located?
I would be thankful if somebody can help me out or provide a example post-buildscript for ios xcTest with AppCenter Smoke tests.
Thank you and kind regards!
Stefan