UiPath Studio's Generate with Autopilot functionality uses natural language instructions to produce test data variations for automated test cases. The quality, relevance, and diversity of the generated data depend significantly on the specificity of the supplied instructions.
Option B is correct because providing additional input context, constraints, and variation requirements helps Autopilot generate test data covering a wider range of testing conditions.
For example, when generating data for a customer registration form, developers can explicitly request valid inputs, invalid formats, boundary values, empty strings, maximum-length values, and special characters. These constraints improve the test dataset's ability to exercise application validation rules.
Within UiPath Studio, developers can access Test Explorer, select the relevant test case, choose Add Test Data, and select Generate with Autopilot as the source. They can enter generation instructions and subsequently refine the generated data by providing additional prompts. UiPath also supports specifying the required number of data variations.
Option A introduces manually altered duplicates without systematically improving test coverage. Option C abandons the benefits of AI-assisted data generation. Option D repeats generation without addressing inadequate instructions.
The recommended approach combines descriptive prompts, representative input categories, boundary conditions, and explicit variation requirements.
Official UiPath Reference(s): Studio User Guide — AI-generated test data; Generate test data for test cases; Best practices.