Desired Capabilities - Overview


Desired Capabilities are a set of properties used for customizing the Test Environment. The customization includes adding browser extensions to the automation sessions, setting Geographical locations for the test machine, bypassing browser alerts, etc. This article discusses adding desired capabilities for a test environment in Testsigma.


Prerequisites


Desired Capabilities Format

Desired Capabilities are entered as key-value pairs. Enter the details for Desired Capabilities as specified below:

  • Key: Specific properties or attributes that can be set for the test environment.
  • Data Type: The data type of the value of the specific Desired Capability.
  • Value: The value of the Desired Capability. Format

For example, we can allow invalid certificates for a webpage using the ‘acceptInsecureCerts’ Capability.

Name Data Type Value
acceptInsecureCerts boolean True

Adding Desired Capabilities in Ad Hoc Run

  1. Navigate to Create Tests > Test Cases. Test Cases
  2. Create/select a test case in which you want to add the desired capabilities.
  3. From the Test Case details page, click on Run. Run Test Case
  4. On Ad Hoc Run overlay, click on Desired Capabilities to reveal the fields. Ad Hoc Run
  5. Add the desired capabilities you want for an Ad Hoc Run.
NOTE:

You can also delete the desired capabilities by clicking on the Delete button from the Ad Hoc Run overlay. Delete Desired Capabilities

For more information on most commonly used desired capabilities, refer to Common Desired Capabilities.


Adding Desired Capabilities in a Test Plan

  1. On Dashboard, click on Test Plans. Test Plans
  2. Create/select a test plan in which you want to add the desired capabilities.
  3. From the Edit Test Plan page, click on Add Test Suites & Link Machine Profiles. Edit Test Plan
  4. On Test Machines, select the machine in which you want to add desired capabilities and click on Test machine settings. Test Machines
  5. On Edit test machine/device profile overlay, click on Desired Capabilities to reveal the fields. Edit Test Machine
  6. Add the desired capabilities you want for a Test Plan.
NOTE:

You can also delete the desired capabilities by clicking on the Delete button from the Edit test machine/device profile overlay. Delete Desired Capabilities