Description

Users have the ability within the GenRocket web platform to import a Salesforce Object, generate test data, and populate the object with synthetic test data in real-time. 


In This Article


When Should this Feature Be Used?

  • Any time test data needs to be generated and inserted into one or more Salesforce Objects. 


What Setup Steps are Required? 

  1. The Salesforce integration feature must be enabled for your organization. 
    • Please contact Customer Support to have it activated. 
  2. (Optionally) The user can add a Custom Domain to their account. 
  3. The user must create and activate a Salesforce Profile in the GenRocket web platform.
    • More than one Salesforce Profile can be created.
    • Only one Salesforce Profile can be active at a time. 
    • Users can associate a Salesforce Profile with a Custom Domain. 


How Does it Work? 

  1. Create a Project with the Default Project Version.
  2. Import Salesforce Objects to create Domains. 
    • The SFObjectInsertReceiver is automatically added to each imported Domain.
    • For Salesforce Objects with 25+ fields, Attribute creation is queued and the user receives an email notification once done. 
  3. Create a Scenario for each imported Domain.
  4. Make design modifications (e.g., Change loopCount, Set Parent/Child Relationships Modify Generators, Create Cases).
  5. Generate and insert test data into Salesforce.
    • Generate data either through GenRocket Cloud or on the user's local machine at the Command Line. 
    • Additional setup steps will be required when performed at the command line.


Salesforce Query Generators

Three Salesforce Query Generators can be used to query a Salesforce Object during test data generation. 


Salesforce Test Data Generation Options

Salesforce test data can be generated in one of two ways with GenRocket: 

  1. Execute from Web - Execute from the GenRocket web platform and populate the Salesforce Object(s) from the web. A complete example can be seen here.


    Note: There are limitations when using this method. At most, 10,000 records can be pushed using this method. If more will need to be generated and pushed, then test data will need to be generated at the command line. 

    Note: The Execute from Web option cannot be used to generate test data with features such as G-Cases, G-Questionnaire, etc. In those instances, the user must execute from the command line (details below).

  2. Execute from the Command Line- Additional steps are required to generate Salesforce test data. These steps include: 
    • Install GenRocket Runtime on the user's local machine.
    • Configure Organization Resources.
    • Download a GenRocket Profile.
    • Set up an Environment Variable (for executing the Scenario).
    • Download the Scenario to the user's local machine.
    • Download additional test data generation components (e.g., Test Data Cases).
    • Run the Command at the command line. 


Use Case Examples

TopicDescription
How to Populate a Salesforce AccountSee how to import a Salesforce Object into a GenRocket Domain and then populate the Account with generated test data in real time.
How to Generate Conditioned Test Data for Salesforce

See an example of generating conditioned data for Salesforce.

How do I Model Data for Master-Detail and Lookups?See how to dynamically generate Master-Detail and Lookup Data for Salesforce.


"How To" and Reference Articles

The following articles can be used to learn more about setting up and generating test data for Salesforce.


TopicDescription
GenRocket Terminology for Salesforce UsersLearn more about GenRocket Terminology and how it applies to generating test data for Salesforce.
How GenRocket Integrates Dynamically with SalesforceLearn more about how GenRocket integrates with Salesforce. 
Salesforce Setup - Environmental Variable Required for Executing ScenariosLearn more about how to set up the required Environment Variable for generating test data at the command line.
How do I add a Custom Domain for Salesforce?
Learn how to add a Custom Domain to use with one or more Salesforce Profiles. 
How do I create a Salesforce Profile in GenRocket?

Learn more about creating a Salesforce Profile in the GenRocket web platform.

How do I import a Domain from Salesforce?
Learn how to import a Domain from Salesforce. 
How do I add a Salesforce Object as a GenRocket Domain?Learn more about importing Salesforce Objects to create Domains.


Additional Learning Resources

The following resources can be used to learn more about completing the steps mentioned in this article.

TopicDescription
Windows GenRocket Runtime Setup

See step-by-step instructions on how to install GenRocket Runtime on a local user machine, shared machine, or server running the Windows operating system.
Linux Server GenRocket Runtime Setup (Local or Remote)
See step-by-step instructions for setting up Runtime on a Linux Server (local or remote).
Linux/Mac OSX (Local User or Shared Machine) - GenRocket Runtime Setup
See step-by-step instructions on how to install GenRocket Runtime local user or shared machine running the  Mac or Linux operating system. 
How Do I Change Resource Values and Download My Profile?
Learn more about how to configure Organization Resources in GenRocket Cloud.
How do I use Quick Scenario?
Learn how to quickly add a Scenario to a Domain. 
How do I download a Scenario?
Learn how to download a Scenario for test data generation.
How do I run a GenRocket Scenario?
Learn how to run a Scenario at the command line for generating test data.