BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
49 / 81 · Module 14 — External Automated Testing of Mule Integrations · filtered: interview← prev⊞ allnext →

14.11Cleanup

Your tests create real Salesforce data.

You need a policy.

Options:

delete after test

mark records as automation data

periodic cleanup job

dedicated Salesforce sandbox refreshed periodically

A useful convention:

External ID:
AUTOTEST-...

Test_Data__c:
true

if the Salesforce schema permits it.

Then cleanup can safely find automation records.