Skip Navigation

Implementing automated testing for 
BlackBerry Dynamics
 apps

The 
BlackBerry Dynamics SDK
 includes the 
BlackBerry Dynamics
 Automated Test Support Library (ATSL) to support automated testing for your 
BlackBerry Dynamics
 apps. The library is delivered as binary libraries: a 
Java
 library (.jar) and an 
Android
 library (.aar).
The library includes helper functions for testing common user interactions in 
BlackBerry Dynamics
 apps, such as activation and authorization. The configuration and structure of the library is compatible with the native 
Android
 Testing Support Library. It makes use of the following components:
  • com.android.support.test:rules
  • com.android.support.test.uiautomator:uiautomator-v18
For more information about these components and the 
Android
 Testing Support Library, see Android Studio: Test your app.
You can use the 
BlackBerry Dynamics
 library, the native library components mentioned above, and 
Gradle
 and JUnit tools to automate the building, execution, and reporting of your application tests.
Since the 
BlackBerry Dynamics
 ATSL is delivered as binary libraries, you cannot make your own changes to it. If you want to review the implementation and customize it, you can see the source in 
GitHub
 at https://github.com/blackberry/BlackBerry-Dynamics-Android-Samples/tree/master/AutomatedTestSupportLibrary.
The 
Java
 library for the 
BlackBerry Dynamics
 ATSL is located in the sub-directory dynamics_sdk/libs/common/atsl. The 
Android
 library for the ATSL is located in the sub-directory dynamics_sdk/m2repository/com/blackberry/blackberrydynamics/atsl. If you use the 
Android SDK
 Manager to install the 
BlackBerry Dynamics SDK
, the libraries are located under the 
Android
 home directory at ANDROID_HOME/extras/good/dynamics_sdk/.