Add automated testing to your BlackBerry
Dynamics iOS app
BlackBerry
Dynamics
iOS
appThe following steps assume that the target app is already configured to use the
BlackBerry Dynamics SDK
.- If necessary, create a target in the project to run user interface tests. The target must have the type “iOS UI Testing Bundle”.
- Add theBlackBerry DynamicsATSL to the target for UI tests. On theBuild Phasestab, do the following:
- AddBlackBerryDynamicsAutomatedTestSupportLibrary.frameworkto theLink Binary With Librariessection.
- Create a newCopy Filesphase. SetDestinationtoFrameworksand addBlackBerryDynamicsAutomatedTestSupportLibrary.frameworkto the list.
- If the test code is written inSwift, you must add the umbrella header to the bridging header, as required byApple. Add"#import <BlackBerryDynamicsAutomatedTestSupportLibrary/AutomatedTestSupportLibrary.h>"to the bridging header.
- Add or write code for your app tests. Use the helper functions in the ATSL in your test code.
You can use the code for the app tests in any of the sample apps as a starting point. The first app test,
testProvision
, executes BlackBerry
Dynamics
activation and unlock as an automated test.