DevSecOps Testing Android, iOS Apps Using SauceLabs

Learn how to test Appdome-secured Android & iOS Apps Using SauceLabs automation test platform for DevSecOps. Appdome works with all leading mobile automation testing solutions to help customers achieve comprehensive mobile app security at DevSecOps speed and agility, all within the app’s existing application lifecycle.

How to Test Appdome-secured Android Apps using SauceLabs

First, build the Android app with Appdome security

Testing the secured Android App Using SauceLabs

  • On the left sidebar select LIVE -> Mobile App

Note:

  • If you see an option to choose between devices on a Virtual Cloud and Real Devices, select Real Devices.

saucelabs automation testing appdome devsecops

  • A list of your apps will be displayed. If you haven’t uploaded any app before then the list will be empty.

 

  • If your test app does not appear in the above list, you can upload it by clicking “App Upload” button.

 

  • After you uploaded your test app, hover your mouse/cursor over the app to display the  “Settings” option. Click on Settings.

sauce labs devsecops

  • DisableInstrumentation and “Image Injection. Then click “Back to App Selection”.

 

saucelabs testing with appdome for devsecops

  • Hover your mouse/cursor over the app.  It will show the “Choose Device” option. Click it in order to select the test device.
  • Select a test device from the displayed list and click “Launch”. This will start a manual test on the uploaded app on the selected device.

saucelabs automation testing appdome devsecops

  • You can see live device logs by clicking the “LOG” button on the menu on the right

automation testing saucelabs appdome devops

  • When Done click “STOP” on the right menu

 

If you want to test using Appium, check out the SauceLabs Appium Wiki

Testing Appdome-secured iOS Apps using SauceLabs 

 

  • On the left sidebar select LIVE -> Mobile App

Note: If you see an option to choose between devices on a Virtual Cloud and Real Devices, select Real Devices.

  • A list of your apps will be displayed. If you haven’t uploaded any app before then the list will be empty.

 

  • If your test app does not appear in the above list, you can upload it by pressing “App Upload” button.

 

  • After you uploaded your test app, hover your mouse/cursor over the app to display the  “Settings” option. Click on Settings.

 

  • DisableInstrumentation and “Image Injection. Then click “Back to App Selection”.

 

saucelabs testing with appdome for devsecops

  • Hover your mouse/cursor over the app.  It will show the “Choose Device” option. Click it in order to select the test device.

 

  • Select an available test device from the displayed list and click “Launch”. This will start a manual test of the uploaded app on the selected device.

  • You can see live device logs by pressing “LOG” button on the menu on the right.

  • When Done click “STOP” on the right menu.

 

Troubleshooting Tips

Most automation test tools can typically be used in one of two modes: emulator mode and manual mode (specific terms may vary according to the testing tool). If you use the automation test tool in “emulator mode” instead of “manual mode”, the Appdome-secured application will not run on the device. This is expected because Appdome ONEShield protects apps from running on emulators/simulators.  Instead, you should run the automation test tool in manual mode.

If you see a message such as: “Application has violated security policies and it will be shut down”, this means that (1) techniques such as emulators, tampering, or reverse engineering are present, and (2) the Fusion Set does not contain Appdome Threat-Events. This is expected because Appdome ONEShield protects against those conditions. You can either remove the triggering condition or use Appdome Threat Events if applicable.

 

 

 

Alan Bavosa

Have a question?

Ask an expert

GaliMaking your security project a success!