Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Missing Post-Buildscript for iOS Smoke Tests #33

Description

@sdiegas

Hello

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.

Thank you and kind regards!

Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions