Automatic Test Data - Data Driven Test Case

Hello everyone,

I’m currently doing POC for test automation using UiPath. As part of this, I’m exploring automatic data generation for data-driven test cases. However, I’ve encountered an issue where the automatically generated data doesn’t seem relevant to the expected field, it simply generates random strings.

I’m wondering if there are additional steps I should be taking to ensure that automatic data generation is done in a more appropriate manner. Alternatively, could this be a feature in beta, with UiPath working on improving the accuracy of data generation? Any insights would be appreciated.

Attaching Screenshot for your reference,

test-automation test-data testautomation-datadriventestcase

Thank you.

Hello @Sudharsan_V ,

thx for the feedback.
The automatic test data generation you are using is designed to reach high execution coverage of your RPA workflow. To do so, it uses symbolic execution of your workflow. It understands the data types of your arguemnts, but not the semantic meaning, which is why it uses random strings for a string argument.

To counter this, we are introducing a new way to auto-generate data in our June release, which uses Autopilot to generate test data.

Create Test Data with Autopilot
You need to generate a set of data records for your test case? No problem – Autopilot can generate synthetic test data for you.

Here is how to do it:

  1. Define arguments on your test case for each data field you require

  2. Select ‘Add Test Data’ on your test case, and select the option ‘Generate with Autopilot’

Autopilot will now generate a set of data records based on your arguments. Based on the type and name, it will try to create the appropriate data.
3. In case you are not satisfied with the result and would like to change it, you can use the prompt field under the generated data table.

Create Test Data with Autopilot

You need to generate a set of data records for your test case? No problem – Autopilot can generate synthetic test data for you.

Here is how to do it:

  1. Define arguments on your test case for each data field you require

  2. Select ‘Add Test Data’ on your test case, and select the option ‘Generate with Autopilot’

Autopilot will now generate a set of data records based on your arguments. Based on the type and name, it will try to create the appropriate data.
3. In case you are not satisfied with the result and would like to change it, you can use the prompt field under the generated data table.

It would be appreciated, if you could check out this new feature as well, and let us know if this suits your needs.
Cheers
Thomas