How to Create a Test Plans to run on Local Devices


What is Testsigma Agent?

Testsigma Agent is a java utility program that lets you execute your test cases/test plans on different browsers such as Windows/ Linux/ Mac, either on the Testsigma Lab or on your local devices. See how to set up Testsigma Agent on your local device/machine.


Pre-requisites

You should know how to

  1. Set up an Agent.
  2. Create a Test Suite
  3. Create a Test Plan.

Create A Test Plan For Execution on Local Devices

Navigation: Test development > Test Plan. Click on + Test Plan button as shown in the screenshot below:

Create a test plan for execution

The Create Test Plan screen will appear:

Enter details to create a test plan

Enter the Test Plan Name in the Text box and select Test Lab as Local Devices. Click on Next.

Add a new test plan name

Once you click on the Next button, you will be asked to select the test machines. Here in the Test Machine field, you need to select the device on which you have set up the Testsigma Agent. See how to set up Testsigma Agent on your local device/machine.

Select test machine for execution

You can also select the browser on which you want to run your test plan.

Select test machine and browser settings

Click on the Add button.

Add test machine

Click on the + add test suites and add test suites as you like. In this example, we have two test suites. Select the test suites you want test plan execution and click on the add button.

Select test suites to add

Click on the next button.

Add a new test machine

The Test Plan Settings page will come up, as shown below.

Create a new test plan

Select notifications and additional settings and recovery actions. Click on create button.

Test plan settings to add new

Click on the Run Now button.

Start by clicking on Run button

To verify the execution, go to Agents and search for your localhost machine like this:

Look for the agent using the Agent name

You can also check the same under Test development > Run Results.

Click to view the run results

NOTE:

Test plan execution results will be displayed under Run Results and Test Case results will be put under the dry runs tab.


Run Test Plans in Local Mobile Devices(iOS/Android)

To run tests on local Android or iOS devices, you will need to know the following:

  1. How to set up Testsigma agent to run tests in local Android devices?
  2. How to set up Testsigma agent to run tests in local iOS devices?

If you are unable to start your mobile test recorder click here for the fix.

NOTE:

This walkthrough covers local device execution for Android, but you can follow the same steps for iOS devices as well.

Once you have connected your mobile to your laptop device via USB cable and enabled the USB debugging toggle, go to the Agent tab in Testsigma and see if your device is displayed in Testsigma inspector and is ready for test execution as shown in the GIF below:

NOTE:

Make sure you have selected an Android application under your project.

Make sure to select an Android app project

Now go to the test case you want to run on your device and click on Run.

run-test-case

Select Local devices under Select Test Lab. Your device will appear in Select Test Device. Upload an APK file under uploads then click on the Run Now button.

select-test-environment

You can observe your mobile screen to see the test running once the execution begins. In the Testsimga app, you can see the page below:

Test execution is in progress

To verify your runs, click on the dry runs tab where all your test results are displayed.

dry-run-test-result

In the walkthrough, we executed a single test case on a local mobile device, but you can bunch multiple test cases into a test suite and run them in the test plan. Once your Test Plan is ready, you can follow the steps as shown in the web application local device at the beginning of this article and select your mobile device for execution.

NOTE:

Sometimes there can be an error at the server side during the execution, so you can click on the Re-Run button shown at the corner to retry the test execution.

If the executions are not running as expected in local devices refer to this troubleshooting documentation for more details

If the issue persists, connect with Testsigma Support on Discord or reach out to support@testsigma.com.