How to Test Secured Android Apps on Katalon

Last updated July 23, 2024 by Appdome

This knowledge-based article outlines the steps necessary to test Android mobile apps secured by Appdome using the Katalon cloud testing platform. Follow these instructions to ensure your application functions as expected under secured conditions without triggering unintended security protocols.

Use Appdome’s Build2Test Service (Recommended)

Customers with an Appdome SRM license can benefit from the Build2Test service. This service allows quick and easy testing of Appdome-secured mobile apps using Katalon without the need for different Fusion Sets. With Appdome’s Build2Test service, Appdome’s in-app defense model recognizes the unique signature of these testing services, facilitating seamless testing without security alerts or app shutdowns, even when tools like Magisk or Frida are used.

Detailed Guide to Using Build2Test

For more comprehensive instructions, refer to our guide: How to Use Appdome Mobile App Automation Testing.

Understanding Security Triggers When Testing Android Apps on Katalon

When testing Android apps on Katalon, Appdome protection features may respond because they detect specific conditions when the mobile app is running on the mobile device. With Build2Test, instead of causing interruptions, the app records the event and continues testing.

The following table describes which Appdome protection features may be triggered and the reason why:

Appdome feature Reason
Block Android Debug Bridge (ADB) Activated if the app detects ADB commands running on the device.
Anti-Tampering Activated if any unauthorized changes to the app’s code or resources are detected.
Detect VPN Activated if the app detects a VPN connection.
Detect Developer Options Activated if developer options are enabled on the device.
Detect App is Debuggable Activated if the app is set to a debuggable state.
Runtime Bundle Validation Activated if there are discrepancies in the app bundle.
Enforce Cipher Suites Activated if insecure cipher suites are used for network connections.
URL Whitelisting Activated if the app accesses URLs not on the app’s approved whitelist.
Block Memory Editing Tools Activated if memory editing tools attempt to modify the app’s memory during runtime.

 

Prerequisites for Testing Secured Android Apps Using Katalon

Ensure you have the following set up before beginning:

  • Appdome Account: create a free Appdome account here
  • Mobile App (.ipa for iOS, or .apk or .aab for Android)
  • Appdome Fused App with Build2Test: Required to initiate testing with Katalon.
  • Katalon Account: Neccessary for accessing testing features.
  • Physical Device: Required for real (live) app testing on Android.

Setting Up Your Testing Environment in Katalon

Access and Setup for Live App Testing

  1. Sign in to Katalon TestOps.
  2. Click on the “Open TestOps” button to access the dashboard.
    open Testops
  3. Click “View all projects” to see a list of your current projects.
    view All Projects

    Repository and Project Configuration

  4. Navigate to Settings > Script Repository > Connect Git Repository to integrate your Git repository.
    Settings -> Script Repository >Connect Git Repository
  5. Create a new Git Repository in your preferred service (e.g., GitHub, GitLab).
  6. Enter your source type, repository URL, username, and personal access token, then click “Connect”.
  7. To use your own Git repository with your test cases, create them in Katalon Studio, which you can download here.
  8. You can use the following demo repository from Katalon as an example: Katalon Studio Samples
    Create A New Git Repository

    Katalon Studio Setup

  9. Open your Katalon Studio application
  10. Click “Clone Project”
    clone Project
  11. Enter the Repository URL, username, and password, then click “Finish”
    Enter Source Git Repository

    Note:
    If you wish to run tests locally from Katalon Studio and be able to see the report appear in the TestOps, use the following video to turn on TestOps integration:
    Katalon Studio & Katalon TestOps: Quick Integration Tutorial

    Create and Run Your Test Case

  12. Create your mobile app test case by clicking on the record button.
    record Button
  13. Choose the type of device you are recording on (Android, iOS, Remote device on Lambdatest, or TestCloud Devices).
    8.device Type Android Ios Remote Or Testcloud Devices
  14. Follow the instructions provided in the Katalon Recording Guide.
  15. Ensure your mobile device is connected if using the recording option for Android or iOS.
  16. Select the relevant app. For using Lambdatest devices in Katalon Studio, see LambdaTest Integration
  17. Create your test case using the recording window, then click “Save Script” at the bottom left corner.17. Create Test Case

    Completing Your Test Setup

  18. Enter your Test Case Name and click “Add Test suite”.
    20. Add Test Suite
  19. Select “Add to a new test suite”
    21.add A New Test Suite
  20. Name your test suite and give it a description.
  21. Click OK
    23.name Your Test Suite
  22. Click the play button and select from the dropdown menu: Android, iOS, or Remote Device.
    25.click The Play Button
  23. Run the test and then add your new test case to a test suite by clicking on the “Add to test suite” button.
    28.add To Test Suite
  24. Push the changes into your Git repository.
    29. Push The Changes In Your Script Repository
  25. Click Next
  26. Enter your login credentials
    30.enter Your Login Credentials
  27. Click Finish
    31.push Confirmation

Running tests from TestOps

  1. Open Katalon TestOps
  2. Navigate to Executions > Application Repository > Upload Application.
    1.1executions Applicexecution Application Repository Upload Application
  3. Go back to the repository settings in the Katalon TestOps
  4. Go to Settings > Script Repositories
  5. Select the relevant repository.
  6. Click on Refresh Script Repository to pull your changes.
    Settings Script Repositories
  7. Navigate to the Executions > History.
  8. Click Schedule Test Run.
    3.3schedule Test Run
  9. In the Schedule Test Run popup window, enter your test name.
  10. Select your Script repository.
    10.10enter Schedule Test Run Name
  11. Select Environment > Click more options
    11.11 Click More Options
  12. Click on the Mobile Native App tab.
  13.  Choose the device and model.
  14. Choose the application that you uploaded for your test.
    14.configure Test Env For Test Suite
  15. Click save when you’re done.
  16. Click Run

For more information about the run, click on your test run and on ‘Details’ at the top right corner.

16.example Test Run

Related Articles:

How Do I Learn More?

If you have any questions, please send them our way at support.appdome.com or via the chat window on the Appdome platform.

Thank you!

Thanks for visiting Appdome! Our mission is to secure every app on the planet by making mobile app security easy. We hope we’re living up to the mission with your project.

Appdome

Want a Demo?

Test Secured Mobile Apps

AlanWe're here to help
We'll get back to you in 24 hours to schedule your demo.