Test Cases for Android & iOS Apps


Testsigma allows you to create and manage test cases for Android and iOS mobile applications. You can create test cases by writing steps manually using NLPs or by recording user actions using the Testsigma Recorder. The Recorder captures interactions performed on a real device or simulator and automatically converts them into test steps. This article discusses creating test cases for Android and iOS applications in Testsigma.


Prerequisites

Before you begin, ensure that you have:

  1. An Android or iOS application to test.

Create a Test Case

  1. From the left navigation bar, go to Create Tests > Test Cases. Test Cases
  2. Expand a Feature, then expand a Scenario, and click ‘+’ next to the scenario where you want to add the test case. Add Test Case
  3. In the Create Test Case dialog, enter a name for the test case and click Create. Enter Name for Test Case
  4. Create test steps using one of the following methods:

    • Create test steps manually using NLP.
    • Use the Testsigma Recorder to record steps.

Create Test Steps Using NLP

  1. On the Test Case Details page, the first step is created by default as Launch App. Launch App
  2. Click Add New Step. Add New Step
  3. Select the appropriate NLP step, then provide the required test data and elements. Add NLP
  4. Repeat Step 2 and Step 3 to add additional steps and complete the test case workflow.

Create Test Steps using Recorder

  1. On the Test Case Details page, click Record. Record
  2. In the Record test steps overlay: Record test steps overlay

    • Select Test Lab.
    • Select a Test Machine.
    • Under App Source, choose one of the following options:

      • Paste an external public link to the application.
      • Click Upload and browse to upload the application file.

Additional Information:

When uploading an IPA application, the following options are available under Supported Device.

Options Available While Uploading IPA File 1. Enable iOS Keychain Support

Select this option to automatically clear iOS Keychain data after each test session. Clearing the keychain prevents test failures caused by credentials or tokens stored from previous sessions. Use this option if the application cannot access keychain groups after the Bundle Seed ID or Team ID changes during app signing.

2. Skip App Re-signing

Select this option if the application is already signed using the Apple Developer Enterprise Program. When this option is enabled, Testsigma installs the application without re-signing it. This allows you to test features that require the original application signature, such as push notifications on Testsigma devices.

  1. Click Record and wait for the application to load completely. Record to Proceed
  2. Perform the actions in the application. The Recorder captures the interactions and converts them into test steps.

    For details about Recorder controls and actions, see Controls and Actions.