When we are automating Android Apps, we would be performing some actions and verifications on some page elements in the Test Cases. To specify the element on which we do these actions, we would need some information regarding those elements to uniquely identify that. In Testsigma, we call them UI Identifiers.


These UI Identifiers contains a set of properties of an element that helps to identify it. Testsigma Mobile App Inspector helps you in finding these UI Identifiers.

 

Prerequisites

Testsigma Agent is a utility software that allows you to execute your tests on your local machine instead of Cloud devices. It contains the prerequisites required for executing your tests locally as well as the Mobile Inspector.

 

Setting up Mobile Inspector

The Mobile App Inspector is included in the Testsigma Agent. Therefore, the first step is to install the Testsigma Agent. Download and Install Mobile Inspector(Testsigma Agent) and set it up as given in the below article:

Testsigma Agent setup


1. Once Agent is downloaded and set up, go to the UI Identifiers Page in the Testsigma app by navigating to Test Development > UI Identifiers


2. Click on the Record button to start the Mobile Inspector and record the app screen elements. We will select the device for inspection and which app to inspect on the next screen.


3. After clicking on record, the Android Inspector will pop-up and we can start with the Inspection using either Physical(local) Devices or Cloud devices.


A. Inspect using Physical Device: Use this option if you are going to inspect elements using a local mobile device connected to this machine or using an Emulator.

  • Select Agent: Here you can select the Agent which you have registered after downloading the Testsigma agent from the Agents page. The Offline agents will be grayed-out and you can only select the online Agents.
  • Select Device: Since we have chosen the Physical device option in the Inspector, we need to connect our real mobile device to the system after switching the development mode on in the mobile device. You can also go to the Agent page from the left pane and click on your Agent to confirm if your mobile device is connected to the system.
  • Upload App or Add Manually: Here you can select the APK file name which you have uploaded in the Uploads tab or you can even go for the Manually option where you can give the App package and App activity name if the app is already installed in your device.


After entering all the information, click on the Record button to start the Inspection.


B. Inspect using Cloud Device: Use this option if you are going to inspect elements using a cloud device from Testsigma Lab.


  • Select Agent: Here you can select the Agent which you have registered after downloading the Testsigma agent from the Agents page. The Offline agents will be grayed-out and you can only select the online Agents.
  • Select Version and device: Select the Android version and Android Device on which you want to run your application and start the inspection of elements.
  • Select Uploaded App: Here you can select the APK file which you have uploaded in the Uploads tab


If there are any challenges in recording the desired elements or if you feel that the captured element details are not working as expected you may talk to us on inbuilt chat at the bottom left corner or write to support@testsigma.com


Once you capture done the setup for the Android Inspector, let's check the Sample App we will be inspecting before actually starting the Inspection.


<< Chapter 1: PreconditionsChapter 3: Sample Android Native App for Testing >>