OBLYTECH Logo
OBLYTECH Logo

Sandbox Test Data Personas for UAT

Sandbox test data personas are named groups of users and the records they own: accounts, contacts, cases and open work. Each persona stands for one kind of person in the org, with a defined job and the data that job needs. Testing against personas instead of a generic demo set means testers walk the paths the business actually takes.

Why personas beat a generic test data set

A generic set of test accounts looks tidy and tests little. Records get created in the order a developer thinks of them, with one owner, one region and clean fields. Real work is messier. A regional sales rep inherits accounts from a colleague who left, a support agent picks up a case with three handoffs behind it, and a billing clerk finds a contact whose address changed twice. Tidy data passes UAT and leaves those paths untested.

Personas tie the data to people. Instead of asking whether a feature works in general, the team asks whether the rep can close a renewal on an inherited account, or whether the agent can reassign an open case without losing its history. Those questions have concrete answers.

Choose personas from the work, not the org chart

Start from the process map, not the list of job titles. Two people with the same title can run different workflows, and one person may wear two hats in a day. Walk through each process UAT will cover and note who starts it, who decides at each step and who receives the output.

Keep the finished list short enough that one named person can own each persona’s data. Long lists hide edge cases behind near-duplicates, and short lists can leave a branch of the process without a persona.

  1. List the processes UAT will exercise, one line each.
  2. Mark who starts, approves, changes or closes each step.
  3. Merge personas that see the same records and make the same decisions.
  4. Split a persona only when its work changes which records it sees or edits.
  5. Name each persona by its job, such as “renewal rep with inherited accounts,” so testers can find it.

Define the data profile each persona needs

Each persona gets a written profile limited to what its work depends on. A tester should be able to read it and set up the starting state without asking anyone.

  • Ownership: which accounts, contacts and cases the persona owns, and which were inherited or shared.
  • Lifecycle state: where each record sits, such as new, in progress, waiting on the customer or closed.
  • History: prior activity, notes and handoffs the persona reads before acting.
  • Edge conditions: duplicate names, missing fields, past-due dates, or a record another persona is editing.
  • Access: the actions the persona must be able to take, and the ones it must be blocked from taking.

Access deserves the same attention as the records. A persona that can view a record but not change it runs a different path from one that can edit it. Write the blocked actions into the profile too, so a denied action becomes a result UAT confirms.

Build records that carry the messy details

Clean records are easy to create and rarely the ones that fail. Add complications on purpose. An account with two near-identical names tests the duplicate handling the business depends on. A contact who moved companies tests the lookup and the history behind it. A reopened case tests a status path the first process draft may not have covered.

Build records in the order real work creates them: account first, then contacts, then cases and activity, then handoffs and status changes. Attach a short note to each record explaining why it exists, so the reason for three contacts with the same surname sits in the record rather than in someone’s memory.

Walk through a sample profile for the renewal rep

Take the renewal rep from earlier. The illustrative profile lists six accounts: four owned outright and two inherited when a colleague left. One inherited account has an open renewal past its due date, and another has a contact who moved companies while its history still shows the former owner’s notes.

The scripts cover three paths: a standard renewal from open record to close, the past-due renewal with its date handling, and a reassignment that confirms the former owner’s notes stay readable. Each path starts from a known state, so a failure points to a step rather than a missing record.

Connect each persona to the scripts that use it

Each test script should name one persona and the starting state it expects. A script that says “log in as the renewal rep, open the inherited account and apply the renewal change” tells the tester what to load. A script that says “use test data” leaves each tester to guess differently.

Before reusing a persona’s data set, check the release notes for each feature the scripts touch, because a change to a feature can affect data that was valid in an earlier cycle. The pre-test release notes review covers that check. Confirm any release-specific behavior on your own instance and release.

Handle data quality problems before testers see them

Migrations often leave duplicates and mismatched owners behind. They look harmless in a list view and then break scripts in ways testers must untangle. Review each persona’s records before testing starts, and log each known gap so a failed script can be traced to a data cause.

If the source records are still being cleaned, fix them there rather than in the test environment. The data quality and migration guidance is the place to start. Duplicate accounts need a regular review step, which the duplicate review routine for data stewards covers.

When persona records load in bulk, compare the data loader options for migration against the relationships your records depend on, then run a small test load before the full set.

Keep persona data realistic without copying production

Realistic data does not require real customer records. Invented names, made-up addresses and order values that follow the shape of real data serve testers well. If production records are copied into a test environment, they should pass through the masking and access rules your data governance policy sets, and access should be limited to the testing group.

Volume matters less than shape. A persona with a dozen well-chosen accounts often tests more than one with two hundred identical accounts. After several cycles, rebuild the set from its saved profile instead of patching the last run’s records.

Common failure modes to watch for

  • Testers share one login, so one run changes the starting state for the next.
  • Scripts were written before the records existed and reference records that are missing.
  • Sharing left over from a former owner can make a script pass for the wrong reason.
  • Test users have broader access than the profile lists, so a denied action appears to work.
  • A date-driven record was built on setup day and goes past due before its script runs.

These usually surface on the first dry run. Compare what the tester saw with the profile, not with what the tester expected. A mismatch points to the persona set, and a match with a failing result points to the feature.

Checks to run before testers start

  • Each persona has a named owner who can reset its data.
  • Each test script names one persona and the starting state it expects.
  • Each test user’s access matches the profile, including the actions it should be denied.
  • Known data defects are logged, so testers can separate a data fault from a product fault.
  • A dry run by one tester per persona finds missing records before the full cycle begins.

For help planning this work, see Salesforce implementation.

Questions about maintaining personas between UAT cycles

How many test users should a persona have?

Give each tester a separate user where your environment allows it, since shared logins hide who changed a record. If setup limits the number of users, keep one shared login for read-only scripts and reserve individual logins for scripts that write data.

Who should approve changes to a persona profile?

The business process owner approves changes to what a persona does, because the profile describes the work. Whoever maintains the test environment approves changes to how the data is built. Record both approvals in the profile’s change note.

Can personas be reused for regression testing?

Usually, yes. Check each script against the current process first, because a script written for last quarter’s approval path may now test a step the business no longer uses. Retire personas whose job has changed rather than stretching an old profile.

What should a tester do when the data might be the cause?

Rebuild the persona set from its profile in a fresh copy and repeat the step exactly as written. If the failure disappears, the data was the cause, and the record notes should explain what changed. If it remains on a clean set, log it against the feature with the persona name, starting state and exact steps.

How far ahead should personas be built?

Build them after the last process decision and before the first dry run. A set built against a moving process needs rebuilding, and the dry run often finds something, so leave time for one rebuild.