- Release Notes
- Getting Started
- Setup and Configuration
- Automation Projects
- Dependencies
- Types of Workflows
- File Comparison
- Automation Best Practices
- Source Control Integration
- Debugging
- The Diagnostic Tool
- Variables
- Arguments
- Imported Namespaces
- Trigger-based Attended Automation
- Recording
- UI Elements
- Control Flow
- Selectors
- Object Repository
- Data Scraping
- Image and Text Automation
- Citrix Technologies Automation
- RDP Automation
- Salesforce Automation
- SAP Automation
- VMware Horizon Automation
- Logging
- The ScreenScrapeJavaSupport Tool
- The WebDriver Protocol
- Test Suite - Studio
- Extensions
- Troubleshooting
- About troubleshooting
- Microsoft App-V support and limitations
- Internet Explorer X64 troubleshooting
- Microsoft Office issues
- Identifying UI elements in PDF with Accessibility options
- Repairing Active Accessibility support
- Automating Applications Running Under a Different Windows User
- Validation of large Windows-legacy projects takes longer than expected
Test Data Queues
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.
- Install or upgrade an Orchestrator version equal to, or higher than 2022.4.
- Make sure that you have uploaded a JSON schema and added a test data queue in Orchestrator.
- 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.
- To Run and Debug test cases with dynamic test data, use the Test Explorer. The data comes from the test data queue during runtime, and the Test Explorer populates the values at runtime.
You can add test data queue items to your workflows either through activities or as a data source to a test case.
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.
- Open Studio.
- Open or create a new Test Automation project.
- Navigate to New > Test Case.
-
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.
Note: Make sure that you are connected to an Orchestrator instance. - 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.
-
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 agivenName
property in your JSON schema, your corresponded Given Name activity should match this (e.g. DisplayName set togivenName
). For more information, see JSON Schema Definition. - Open the Variables panel to define your variables.
- Save your test case.
- In the Project panel, right-click on your test case and select Set as publishable
- Click Publish and configure the package properties.
-
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.
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.
- Create a new test case with test data, or update an existing test case with test data.
- Click Source and select Test Data Queue from the dropdown list.
- Select a test data queue or use the search function to look for it.
- (Optional) Filter the test data
queue to retrieve only specific items using the built-in Query Builder.
Use the Range option to set the desired range of items. The first field represents the starting index for the range, and the second field is the number of items to retrieve.
- Click Create to add test
data (test data queue) to the test case.
An argument with the name of the test data queue is generated in the Arguments panel of your project. For the illustration above, the name of the argument is
workforce
.Important: The name of the test data queue argument must stay the same. If you change the name of the argument, you won't be able to access the data anymore. For example, if you change the name of the argument fromworkforce
toWork_Force_Queue
, you won't be able to access the corresponding data.
You can update test data with test data queue as source.
- Open Studio and navigate to your project.
- In the Project panel, right-click a test case with data variations and select Update test data.
- Click Source and select Test Data Queue from the dropdown list.
- Select a test data queue or use the search function to look for it.
- (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.
-
(Optional) Filter the test data queue to retrieve only specific items using the built-in Query Builder.
Note: You can perform this action in Test Explorer by right-clicking a file, and then choosing Update Test Data.