Ir para o conteúdo

Testing the SDK Integration

To ensure the successful integration of the SDK, a checklist of simple but essential tests to be performed was prepared. Follow these instructions to test the application before releasing a new version or updating the app with a new version of DMA SDK.

It is of utmost importance to thoroughly test the app to preempt any unexpected bugs that may arise during the development process, such as when adding new features, upgrading dependencies, or adhering to new Google restrictions, among other factors.

Recommendations

  1. Never publish a new application version without conducting thorough testing.
  2. Always ensure that testing is performing for the release version of the APK.
  3. It's crucial to test the application on a wide range of Android versions and across devices from various manufacturers, including Chinese brands like Xiaomi, Huawei, and more.

Before testing

  1. Remove any other applications which contain DMA SDK from the test device.
  2. Install a release APK, launch it and grant all required permissions.

Checklist

  1. Check opening a profile by a deep link:

    https://callmyapp.appspot.com/assets/lucy/standard.html?profile=DMA%20TEST
    
    • Send the deep link above to a test device (e.g. in a messenger app) and click it.
    • Change the name of a profile (highlighted in RED) to the name of a target profile (profile names are case sensitive) and click the new link.

    When utilizing a deep link, the Android OS may present a suggestion popup offering recommendations for the preferred application to open the link. In this scenario, it is important to ensure that the target application is selected.

    Expected results: a corresponding profile is opened in the application.

    If the application crashes, re-check the "Register DialMyAppComponent in Application class" paragraph.

    • Clear the application from the Recents (kill the process) and repeat the test 1.

    Expected results: a corresponding profile is opened in the application.

    If the profile no longer opens, the SDK may not have been initialized correctly, re-check the "Register DialMyAppComponent in Application class" paragraph.

    • Reinstall the application, do not grant the permissions and repeat test 1.

    Expected results: a corresponding profile is opened in the application.

  2. If the application uses android permissions for interception, check that the application intercepts and displays a corresponding profile:

    • Install the application and grant all permissions.
    • Close the application (kill the process).
    • Call to a corresponding phone number which is added to a target profile.

    Expected results: the call is intercepted, the call is ended, a corresponding profile is opened in the application.

  3. If the application uses IVR/SIP solution for interception, check that the application displays a corresponding profile by push/link from SMS:

    • Install the application and grant all permissions.
    • Close the application (kill the process).
    • Call to a corresponding phone number which is added to a target profile.
    • Get push/SMS.

    Expected results: the call is ended, a corresponding profile is opened in the application automatically via push or SMS with a link is received. By clicking a link from the SMS, a corresponding profile is opened in the application.

  4. Check that all related profiles can be opened in the application by interceptions/by deep links.

After testing

If any test from the checklist is not passed - publishing the apk is not recommended. Collect all possible information and provide it to DialMyApp technical support team:

  1. Versions of the SDK, APK, Android OS, device model;
  2. Description of steps to reproduce a bug;
  3. Screen recording of steps to reproduce a bug;
  4. "Build Info" data from the "DMA TEST" profile:
  5. Logs collected using ADB tool/Android Studio;
  6. Logs collected using the "DMA TEST" profile:
    • Open the "DMA TEST" profile in the application.
    • Click the "Logs" button.
    • Click the "Collecting Start" button.
    • Close the application.
    • Perform steps in order to reproduce the bug.
    • Open the "DMA TEST" profile in the application again.
    • Click the "Logs" button.
    • Click the "Collecting Stop" button.
    • Send the date and time of log collection to DialMyApp technical support team.
  7. Consider supplying the DialMyApp support team with a 'debug' version of the APK, or at the very least, a 'release' version in which the bug can be reproduced.