Test Suite
2020.10
false
  • StudioPro
    • Overview
    • Testing Activities
  • Orchestrator
  • Testing robots
  • Test Manager
Banner background image
OUT OF SUPPORT
Test Suite User Guide
Last updated Feb 28, 2024

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.


  8. 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.
  9. Right-click on the project and click Set as Publishable to prepare for publishing.
  10. Click Publish to publish the project to Orchestrator. The test parameters are now available in the test configuration.


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.

  • Define Test Parameters in Studio Pro
  • Create and Execute Test Variants

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.