test-suite
2023.10
true
- Getting Started
- Studio
- Orchestrator
- Testing robots
- Test Manager
Testing activities and APIs
Test Suite User Guide
Last updated Aug 13, 2024
Testing activities and APIs
Test data plays a critical role in testing. Due to data regulations such as GDPR, it is not possible to use production data during testing. UiPath® provides a set of activities and APIs, that allow you to create synthetic test data.
To create your test cases in Studio, you can use the activities available in the
Testing.Activities package. Also, to create your coded test cases in Studio,
you can use the APIs available in the
testing
service, downloaded with
the Testing.Activities package. Visit Testing APIs to read about how to use the
testing APIs.
This section includes all activities and APIs related to testing found in the Testing.Activities package.
Note: Verify activities and APIs do not support taking screenshots on
macOS and Linux operating systems.
Activity | API | Description |
---|---|---|
Add Test Data Queue Item | AddTestDataQueueItem | Adds a DataRow to a specified TestDataQueue. |
Address | Address | Generates a valid address. You can generate a random address, or select a city from the available list of countries and cities. |
Attach Document | AttachDocument | Attach documents to your test execution results to have proof of the outcome. You can view the attachment in Orchestrator by navigating to Testing > Test Executions > Test Run Details and then selecting View attachments on a specific test case. |
Bulk Add Test Data Queue Items | BulkAddTestDataQueueItems | Add a data table to a specified test data queue. |
Delete Test Data Queue Items | DeleteTestDataQueueItems | Delete specified test data queue items. |
Get Test Data Queue Item | GetTestDataQueueItem | Extracts a DataRow from a specified TestDataQueue. |
Get Test Data Queue Items | GetTestDataQueueItems | Extracts data rows from a specified TestDataQueue. |
Given Name | GivenName | Selects a random value from a list of common given names. |
Last Name | LastName | Selects a random value from a list of common last names. |
Random Date | RandomDate | Generates a random date between two dates. You can define the date range in the following format: mm/dd/yyyy. |
Random Number | RandomNumber | Generates a random integer with a given length. |
Random String | RandomString | Generates a random string with a given length and case. |
Random Value | RandomValue | Picks a value from a 1-column list. |
Verify Control Attribute | NA | Verifies the output of a given activity by asserting it in relation to a given expression. |
Verify Expression | VerifyExpression | Verifies the truth value of a given expression. |
Verify Expression with Operator | VerifyExpressionWithOperator | Verifies an expression by asserting it in relation to a given expression with an operator. |
Verify Range | VerifyRange | Verifies if an expression is located or not within a given range. |
NA | VerifyAreEqual | Verifies if two expressions are equal. |
NA | VerifyAreNotEqual | Verifies if two expressions are not equal. |
NA | VerifyContains | Verifies if the first expression contains the second expression. |
NA | VerifyIsGreater | Verifies that the first expression is greater than the second expression. |
NA | VerifyIsGreaterOrEqual | Verifies that the first expression is greater than or equal to the second expression. |
NA | VerifyIsLess | Verifies that the first expression is less than the second expression. |
NA | VerifyIsLessOrEqual | Verifies that the first expression is less than or equal to the second expression. |
NA | VerifyIsRegexMatch | Verifies if the first expression is a regex match to the second expression. |