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

14.5Test data must be unique

Never hardcode every test to:

customerId = C001

because:

parallel tests collide
old data contaminates results
reruns behave differently
tests become order-dependent

Generate unique business identifiers:

const customerId =
  `AUTO-${Date.now()}-${crypto.randomUUID()}`;

This is especially important when testing Salesforce upserts.