Forceea (forsèa) is a data factory framework for Salesforce, using the data generation language Dadela. The framework was created with the following objectives:
- allow developers to easily create SObject records for any Test Method
- facilitate administrators to populate any Developer/Sandbox Org with SObject records for testing or demonstration purposes
You can deploy Forceea in your org with an unlocked package using this link:
![Deploy to Salesforce](https://raw.githubusercontent.com/afawcett/githubsfdeploy/master/src/main/webapp/resources/img/deploy.png)
NOTE If you deploy to a sandbox, replace login.salesforce.com
with test.salesforce.com
You may also use the Salesforce CLI command
sfdx force:package:install -w 10 -b 10 -p 04t4I000000kpOsQAI -r -u YourOrg
The following list describes framework's main capabilities:
- creates records for standard or custom objects, for any standard or custom field
- automatically definines the required fields
- creates static or random data for fields of any data type: Integer, Currency, Double, Date, Datetime, Time, Boolean, String, TextArea, Percent, Reference, Email, Phone, URL, Base64 (BLOB), Picklist and MultiPicklist
- creates real random first and last names
- creates real random addresses with street, zip code, city, region/state and country
- creates serial data for date, datetime, integer, decimal, currency and percent
- can copy data from another field of the same record or a lookup record
- can create the same random data, using a pseudo-random number generator
- handles record types and field dependencies (dependent picklists)
- supports record groups for inserting and deleting records
- validates the definitions based on the field data type
- provides many methods to get/insert the created records, add/delete field definitions, get the errors, configure the amount of information returned during run-time (debug log) and more
- includes an extended error messaging system
To get familiar with Forceea, you can
- find details in the User Guide
- see examples to find out how you can create data for standard objects and custom objects
- read the article How to create an Apex reusable Data Factory Library using Forceea Templates
- read the article Populate your Salesforce org with data using Forceea and Salesforce CLI: a step-by-step guide
- visit passion-for-salesforce.com to see all posted articles