Use cases of Auto Data Generation - New UI

In this article, we will explore two important use cases of auto data generation (ADG).


Use Case 1: Using ADG to generate random data for test cases

Let’s have a look at the use case of the Auto Data Generation (ADG) feature for random phone numbers, its mapping with the test case for user generation on Salesforce, and verifying signing up with random phone numbers.  


Login to your Opkey domain and go to the Tools menu. 


 

Select Auto Data Generation  


 

Now on the pop-up click the ‘+’ icon to add a new ADG as contact numbers for Salesforce registration.  


 

Add the ADG 


 

Select the data type as String for phone numbers 


 

Add values for different parameters.


 

The length here is 13.


 

Prefix as +91, suffix as 10. Check the box to allow only numbers. Save the file with the Save button. 

 

 



Close the ADG and navigate to the Automate section. Select Test


 

Create a new test case.


 

Enter the details of name, priority, assignee, and description and click Create


 


Click Record to record the test steps for the test case.


 

Select Salesforce Recorder and click Start Recording. 


 

Now on the recorder window, navigate to the Salesforce URL  

Click to Try for Free. 


 

The steps get recorded while you fill out the form. Add the First name, Last name, Job title, and Email.  Click on the Phone Number input box. Now select Employees, add the Company name, and select Country/Region. Next, save and close the recorder.  


 

The steps get saved. 

 

 

Here we are adding a new step. Click to add a new step. 


 

Search and select the keyword SF_TypeTextInTextArea 


 

Now we can map the ADG by clicking to edit the input argument. Click the edit field and select the data drive icon. 

 

 

Choose Advance Options and select Auto Data Generation from the drop-down. Now in the list, search for the ADG you created for generating random phone numbers. Click on "Phone no. for Salesforce". Your ADG is mapped successfully.  

 

 

Click on the same step and edit the object value property.  


 

 Now, save your test case and click Run to execute.  


 

After the successful execution, you can navigate to the salesforce user registration page and try to sign up with random phone numbers as specified in your ADG. 


 



You're at the end of the article.


 Read an Overview of Auto Data Generation by clicking Here

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article