Documentation

Looking for something in particular?

Automation V3: Test Data Generation

Last Modified:

Requirements

A Salesforce OAuth connection (either Web Flow or JWT Flow) must be set up in the project.

Note: AI must be enabled on Automation V3 to use the Image Validator.

Steps to Use

You can access this feature in Provar Automation

  1. Create a New Test Case using the OAuth Connection.
  1. Drag the Generate Test Data step from the Test Palette located under the ProvarAI section into your Test Case. The input parameters will then appear on the screen.

3. Select the OAuth Connection, the object for which the data will be generated, and the number of rows.

4. Users can select the fields from the Choose Fields option in the header.

5. A pop-up screen will appear, allowing you to select the fields you want to insert. After making your selections, click OK. If no fields are selected, then data will be generated for required fields by default.

NOTE: This dialog box shows all available fields from the fetched metadata. Some of these fields may not be visible in the UI. When selecting fields, be sure to pick only those visible in your UI.

6. You should be able to see the fields you selected in the Step Settings. Note: the fields can be left blank. If any value is entered, it will be ignored.

7. Run the test case. A test data file in .csv format will be generated within a few minutes. The file name will be displayed in the test runner logs.

8. To view the generated file, navigate to the Templates section in the Files tab. 

9. To open files generated from the Generate Test Data step, select the file in the All Files tab and click Click here.

Note: You can refer to the file names in the Executions section for each test step.

10. This file can be used with the Apex Bulk step to upload bulk data to Salesforce. Since the file path is stored in the Result Name variable, users can access it at runtime. First, generate the data, then use the Result Name with the Apex Bulk step for data upload.

Note: This is an AI-powered feature, and the generated data may be incorrect in 5-10% of the cases.

  • By default, 10 rows of data will be generated if the user does not specify the number of rows.
  • A maximum of 1,000 rows can currently be generated.
  • If no fields are selected, data will be generated for the mandatory fields of the object.
  • The generated file will be stored in the Result Name, with the file path set to templates\filename.csv.


Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top