Apex Bulk
The Bulk test step is designed for loading or deleting large sets of data via the Salesforce Bulk API. You can use it to modify a large number of records asynchronously by submitting batches from an Excel sheet. Salesforce will process these batches in the background until they are all complete.
To use this test step, first locate it in the Test Palette and click and drag it into the test case.
Then complete the following steps:
- Add a Parameter Value Source to read the Excel/CSV file and specify the variable in which to store the data, e.g. ExcelData.
- In the Object section, specify the target object in the Object field (e.g. Account).
- Select the Operation: Insert, Update, Delete, Upsert or Hard Delete. (Note: To perform a Hard Delete operation, the Salesforce Connection user must have the Bulk API Hard Delete permission enabled.)
- Specify an Assignment Rule (if the ownership of the records should be defined using existing Salesforce Assignment Rules).
- In the Data section, enter the variable in which the Excel data is stored (e.g. ExcelData).
- In the Result section, specify the Result Name and Result Scope. (Refer to Common Test Step Parameters for more information on Scope.)
Notes on data
When preparing your Excel file, please consider the following:
- Column-field matching: The Column headers in the Excel/CSV file must be an exact match for the Field Name (i.e. API Name) of the relevant field in Salesforce.
- Required fields: When inserting data into an object, all its required fields must be populated. For example, to insert Account records, Name must be a column header in the Excel file and must be populated for all rows.
- Salesforce IDs: To perform an operation on existing records, the unique Salesforce ID of the record must be specified. This applies to Update, Upsert, Delete or Hard Delete operations.
Documentation library
- General information
- Licensing Provar
- Provar trial guide and extensions
- Using Provar
- API testing
- Behavior-driven development
- Creating and importing projects
- Creating test cases
- Custom table mapping
- Functions
- Debugging tests
- Defining a namespace prefix on a connection
- Defining proxy settings
- Environment management
- Exporting test cases into a PDF
- Exporting test projects
- Managing test steps
- Namespace org testing
- Provar desktop
- Provar Test Builder
- Refresh and Recompile
- Reload Org Cache
- Reporting
- Running tests
- Searching Provar with find usages
- Secrets management and encryption
- Setup and teardown test cases
- Tags and Service Level Agreements (SLAs)
- Test cycles
- Test plans
- Testing browser options
- Tooltip testing
- Using the Test Palette
- Using custom APIs
- Callable tests
- Data-driven testing
- Page objects
- Block locator strategies
- Introduction to XPaths
- Creating an XPath
- JavaScript locator support
- Label locator strategies
- Maintaining page objects
- Mapping non-Salesforce fields
- Page object operations
- ProvarX™
- Refresh and reselect field locators in Test Builder
- Using Java method annotations for custom objects
- Applications testing
- DevOps
- Introduction to test scheduling
- Apache Ant
- Configuration for sending emails via the Provar Command Line Interface (CLI)
- Continuous integration
- AutoRABIT
- Azure DevOps
- Running a Provar CI task in Azure DevOps
- Configuring the Provar secrets password in Microsoft Azure Pipelines
- Parallel execution in Microsoft Azure Pipelines using multiple build.xml files
- Parallel execution in Microsoft Azure Pipelines using targets
- Parallel execution in Microsoft Azure Pipelines using Test Plans
- Bitbucket Pipelines
- Circle CI
- Copado
- Docker
- Flosum
- Gearset
- GitHub Actions
- Running a Provar CI task in GitHub Actions
- Remote Trigger in GitHub Actions
- Parameterization using Environment Variables in GitHub Actions
- Parallel Execution in GitHub Actions using multiple build.xml files
- Parallel Execution in GitHub Actions using Targets
- Parallel Execution in GitHub Actions using Test Plan
- Parallel Execution in GitHub Actions using Job Matrix
- GitLab CI
- Jenkins
- Travis CI
- Parallel Execution
- Running Provar on Linux
- Reporting
- Salesforce DX
- Git
- Team foundation server
- Version control
- Zephyr Cloud and Server
- Salesforce testing
- Adding a Salesforce connection
- Assert Page Error Messages on Add/Edit Product
- Dynamic Forms
- Internationalization support
- List and table testing
- Salesforce Release Updates
- Salesforce Lightning Testing
- Salesforce Lightning Web Component (LWC) locator support
- Salesforce console testing
- Visualforce Testing
- Testing best practices
- Troubleshooting
- Release notes
Trying to raise a case with Customer Success?
Other available resources
Looking for something different?
Keep your finger on the pulse with our latest blog posts
Do a Salesforce deep-dive with our webinars
Get inspired by the latest MVP & Trailblazer stories
Read the latest Provar company updates