UiPath Documentation
test-manager
latest
false
Test Manager user guide

Overriding parameters

Override parameters for test cases within a test set in Test Manager, with version-specific behavior and rules for removed or cleared values.

Customize your testing process by overriding parameters for test cases within a test set. You can override parameters for specific versions of a test case, depending on which version you choose when executing the override action.

Context​

  • Parameters in the Override parameters window can have different types, for example String or Asset.
  • For a parameter of type Asset, you can override the value with an Orchestrator asset. This feature is available in Test Manager only when delivered via Test Cloud, and only in Commercial.
  • A parameter that has been overridden and later removed still appears in the Override parameters window, allowing you to decide when to remove it.
  • If a parameter name is changed in the automation project where it originated, Test Manager also updates the parameter name within the test set.
  • Cloned test sets maintain the original parameter values during the duplication process.
  • Using Override next to a parameter reliably removes that individual override. The bulk Remove overrides action does not always clear existing overrides for every parameter.
  • Each parameter row in the Override parameters window shows an In automation column — Yes or No — indicating whether the automation package currently linked to the test case declares that parameter as one of its input arguments. A parameter can still be overridden and passed to the automation when this shows No; the automation ignores it because it isn't one of the workflow's arguments.
  • The In automation column reflects the package and version shown for that test case in the Automated column of the test case list, and can change if the linked package is updated to a version with different input arguments.
Note:

For data-driven test cases using a JSON data file, updating a parameter's value in Test Manager does not override that argument if it is already present in the JSON file attached to the automation in Studio. Only parameters not present in the JSON file are affected by a Test Manager-level update. To change a value for an argument defined in the JSON file, republish the project from Studio with the updated file.

Steps​

  1. Go to Test Sets and open a test set.

  2. Go to the Test Cases tab.

  3. Select the test cases you want to run with different parameter values.

  4. Select Override parameters. The Override parameters window opens, listing all parameters from the selected test cases that were manually created in Test Manager or imported from the selected automation for a test case.

    The Override parameters window displays both manually created Test Manager parameters and Studio arguments from the linked automation. If a Studio argument and a manually created Test Manager parameter share the same name and data type, the Test Manager parameter value automatically overrides the Studio value. You can also manually override any parameter by selecting Override and typing a new value in the Value field.

  5. In the list of parameters, you can perform the following actions:

    • Override individual parameters:
      1. Next to the Name field for the parameter you want to modify, select Override.
      2. In the Value field, enter the new value.
      3. Repeat these steps for each parameter that you want to override.
    • Override a parameter of type Asset with an Orchestrator asset:
      1. Next to the Name field for the parameter of type Asset, select Override.
      2. In the Value list, select the asset. Each asset shows its type, such as Text, Boolean, Credential, or JSON. The list shows only the assets that you have access to in Orchestrator.
      3. Select Save.
    • Override all parameters:
      1. Select Override all to enable overriding for all parameters.
      2. In the Value field for each parameter, enter the new value.
    • Remove overrides: Select Remove overrides to disable the ability to override any parameter from the selected test cases.

Result​

The parameter overrides are applied to the selected test cases within the test set. When the test set is executed, the test cases run using the overridden parameter values.

Use case for overriding parameters with an Orchestrator asset: runs tests with different accounts​

Suppose you run an autonomous test against a web application with the credentials stored in an Orchestrator asset. If that account becomes locked, or you want to test with a different user, you can run the same test set with a second account without editing the asset in Orchestrator.

  1. Create an Orchestrator asset for each account that you want to use, for example a Credential asset for each login.
  2. In the test set, open the Override parameters window and select Override for the parameter of type Asset.
  3. In the Value list, select the asset for the account that you want to use.
  4. Select Save.
  5. Run the test set.

The override is temporary and applies only to the selected test cases in this test set. To go back to the original asset, select Remove overrides.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated