Subscribe

UiPath Studio

The UiPath Studio Guide

Test Data Queues

Overview


Make use of the test data queue in Studio by configuring it as a data source or importing it through activities. All imported entities are stored in the Project tab, under Test Data.

For more information on test data queues in Orchestrator, see Test Data Queues.

📘

Before you begin

Make sure that you have uploaded a JSON schema and added a test data queue in Orchestrator.

Conditions


  • Newly created test data queues are empty, but you can upload queue items based on your defined JSON schema, either directly in Orchestrator, or through Studio.
  • When you use test data queues as source, items are retrieved sequentially from a test data queue regardless if some of them have been consumed.
  • Data is fetched from the test data queue only at runtime. You need to Run file with data variation to populate the test cases with data. You can run and debug files using Test Explorer.

Add test data queue items


You can add test data queue items to your workflows either through activities or as a data source to a test case.

Add items through activities

To add items to your test data queue using an activity, you need to create a custom workflow and configure an activity to import data from a test data queue in Orchestrator.

  1. Open Studio.
  2. Open or create a new Test Automation project.
  3. Navigate to New > Test Case.
  4. Add an Add Test Data Queue Item activity to the Designer panel and go to Properties to configure the QueueName to match test your Orchestrator test data queue.
    Make sure that you are connected to an Orchestrator instance.
  5. In the Testing > Data activities list, add multiple activities of your own choice to the Add Test Data Queue Item activity. For more information, see Test Data Activities.
  6. Configure your activities to match your synthetic user data scenario.

🚧

Important

A valid queue item must have the exact name, as defined in your JSON schema. For example, if you have defined a givenName property in your JSON schema, your corresponded Given Name activity should match this (e.g. DisplayName set to givenName). For more information, see JSON Schema Definition.

  1. Open the Variables panel to define your variables.
  2. Save your test case.
  3. In the Project panel, right-click on your test case and select Set as publishable
  4. Click Publish and configure the package properties.
  5. Click Run File.

📘

Note

Alternatively, you can create a custom input form to easily configure and generate synthetic user data. For more information, see Create Form.

Add test data queue as data source to test case

When you create test cases, you can configure the data source to point to a test data queue, to make use of Data-driven testing.

  1. Create a new test case with test data, or update an existing test case with test data.
  2. Click Source and select Test Data Queue from the dropdown list.
  3. Select a test data queue or use the search function to look for it.
  4. (Optional) Filter the test data queue to retrieve only specific items using the built-in Query Builder.
    Use the Range option to configure the item range. For example, you can retrieve the second and third items from your test data queue.
594594
  1. Click Create to add test data (test data queue) to the test case.

Update test data queue items


You can update test data with test data queue as source.

  1. Open Studio and navigate to your project.
  2. In the Project panel, right-click a test case with data variations and select Update test data.
  3. Click Source and select Test Data Queue from the dropdown list.
  4. Select a test data queue or use the search function to look for it.
  5. (Optional) Click Update all test cases using the same test data to update all test cases from the current project that use the test data that you are updating.
  6. (Optional) Filter the test data queue to retrieve only specific items using the built-in Query Builder.
    You can perform this action in Test Explorer by right-clicking a file, and then choosing Update Test Data.
636636

Related articles


Upload items to test data queue in Orchestrator

Updated 2 months ago

Test Data Queues


Suggested Edits are limited on API Reference Pages

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