Subscribe

UiPath Test Suite

UiPath Test Suite

Testing Parameters with Test Variants

In this scenario, you can learn how to use the input and output parameters to provide execution data between different scripts, and test parameters with test variants.

To create define test parameters and add test data variations, follow these procedures:

  1. Define Test Parameters in Studio Pro
  2. Create and Execute Test Variants

Define Test Parameters in Studio Pro

To provide execution data between different scripts, you can define test parameters in Studio Pro. For example, your test case contains Material Number and Quantity, and you want to test the Sales Order creation for different materials and quantities.

  1. In the SAP GUI, double-click the SAP Fiori Launchpad to open the work center framework.
  2. Navigate to Project and Process Management > Solution Documentation > Business Processes.
  3. Go to the business process that contains the test case you are looking for.
  4. Find your test case and click Test Configuration.
  5. Click Edit.
  6. Click Launch UiPath to open UiPath Studio.
  7. Go to the Arguments tab and create two Input arguments to dynamically fill the right test data during the execution within Solution Manager. You can use these arguments to replace the Material and Quantity hardcoded values.
12721272
  1. Create an Output argument for the Sales Order Number to provide it to the following test case. You can get the Sales Order Number from the status bar.
  2. Right-click on the project and click Set as Publishable to prepare for publishing.
  3. Click Publish to publish the project to Orchestrator. The test parameters are now available in the test configuration.
823823

Create and Execute Test Variants

  1. In the SAP GUI, double-click the SAP Fiori Launchpad to open the work center framework.
  2. Navigate to Project and Process Management > Solution Documentation > Business Processes.
  3. Go to the business process that contains the test case you are looking for.
  4. Find your test case and click Test Configuration.
  5. Navigate to Go to > Expert Mode.
  6. Switch to Change Mode.
  7. Go to the Variants tab to add a variant.
  8. Fill in the corresponding test data.
  9. Click Save to confirm changes.
  10. Click Execute to start execution.

To view the test execution logs, click the Log button within the test automation overview window.

Updated 2 years ago


Testing Parameters with Test Variants


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.