Salesforce
Salesforce Org Anatomy for Testers

Rishabh Kumar
Published On

Table of contents
Lorem ipsum
Lorem ipsum
Lorem ipsum
Lorem ipsum
Lorem ipsum
A test that passes as a System Administrator on one record type has proved one combination out of dozens. In Salesforce, the same business action can look and behave differently depending on the record type, the page, the app and the user. Testers who understand how an org is built can turn “test the opportunity page” into a precise list of combinations worth testing. Testers who don’t end up with suites that pass in one configuration while the business runs in another.
What is Inside a Salesforce Org - From a Tester’s Point of View?
A Salesforce org is a set of objects that hold records, shaped by record types, displayed through page layouts and Lightning record pages, governed by access rules and driven by automation. For a tester, each of those layers is a variable, because the same business action can look and behave differently depending on the record type, the page, the app and the user.
Understanding these layers is what lets you decide which combinations to test, instead of guessing or testing them all.
The Building Blocks of an Org, and Why Each Matters to Tests
Building Block | What It Is | Why It Matters to Tests |
|---|---|---|
Standard objects | Salesforce-provided objects such as Account, Contact, Lead, Opportunity, Case and Quote | Shared by many processes, so a change for one team can affect another |
Custom objects | Objects your organisation adds, usually ending in \_\_c in their API name | Often hold the most business-specific logic and the least test coverage |
Fields | Standard and custom fields, including formulas, lookups and roll-up summaries | Formula and roll-up values change without anyone editing the record |
Record types | Variants of an object with their own picklist values, page layouts and processes | Each record type is effectively a different journey through the same object |
Page layouts | The fields, related lists and buttons shown for a record type and profile | Decide what a user can see and click, and differ by profile |
Lightning record pages | Pages built in Lightning App Builder, assigned by app, record type and profile | Components and Dynamic Forms show or hide fields based on conditions |
Apps | Groupings of tabs and navigation, such as Sales or the Service Console | The same record can open differently in different apps |
Access | Profiles, permission sets, roles and sharing | Decide who can see and change what |
Logic | Flows, Apex, validation rules and approvals | Decide what happens when records change |
For where each kind of logic lives, and which test layer proves it, read Flows, Apex and triggers: where Salesforce business logic lives.
How Quickly the Combinations Multiply
Worked example (illustrative)
An Opportunity object has three record types (new business, renewal and partner), is used in two apps (Sales and Partner Central) and by four profiles (sales rep, sales manager, finance and partner user).
That’s 3 × 2 × 4 = 24 possible versions of the same page.
Not all 24 happen in real life. Partner users only see partner opportunities, in the partner app, and finance only views renewals.
Mapping who actually does what cuts the 24 down to 7 combinations that carry real business volume, and those are the ones to test as end-to-end journeys.
How Record Types and Layouts Change What a Test Sees
Record types and layouts decide which fields, picklist values, buttons and related lists appear, and Lightning record pages can show or hide fields based on field values or the user.
A test that creates a record of one type, as one profile, in one app, proves that combination only. Six patterns cause most surprises.
Pattern | What Goes Wrong | How to Test It |
|---|---|---|
Picklist values differ by record type | A value available on one record type is missing on another, so a user can’t complete a process | Run the journey for each record type, choosing the values the business uses |
Dynamic Forms hide fields until a condition is met | A required field appears only after another field is set, so step order matters | Set the condition, then assert the field appears or stays hidden |
Buttons and actions differ by profile | A journey that works for an administrator stops at the first click for a real user | Run as each persona, and assert the button is present or absent |
Field-level security | A field is visible but read-only, or hidden, for some profiles | Assert what each persona can see and edit, not just what saves |
Dependent picklists | A second picklist’s options change with the first, and a mapping change breaks a process | Test each controlling value the business relies on |
Different pages per app | The same record opens with a different page in a different app | Run the journey in each app real users work in |
Record type also reaches beyond the page. It can be a condition in validation rules, formula fields and flows, so the same save can pass for one record type and fail for another, and users creating a record may be asked to choose a record type first.
Treat that choice as a step in the journey, and test what follows for each type.
For locators that survive these variations, including label-based steps and persona testing, see Salesforce UI test automation.
Mapping Your Org Before You Map Your Tests
List your most important journeys, such as lead to opportunity, quote to cash or case to resolution.
For each journey, list the objects it touches, standard and custom.
Note the record types, apps and pages involved for each object.
List the profiles and permission sets of the people who perform each step.
Mark the combinations that carry real volume or risk, using reports on record counts and user activity.
Turn each marked combination into a journey test, run as the persona who performs it.
Sample journey inventory (illustrative)
Journey | Objects | Record Types | Apps | Personas |
|---|---|---|---|---|
New business sale | Lead, Account, Opportunity, Quote | New business | Sales | Sales rep, sales manager |
Renewal | Opportunity, Contract | Renewal | Sales | Account manager, finance |
Partner deal registration | Opportunity, Partner__c | Partner | Partner Central | Partner user, channel manager |
Customer complaint | Case, Complaint__c | Complaint | Service Console | Service agent, team lead |
Which Org Changes Should Trigger Regression
Some configuration changes look cosmetic and aren’t. Treat these as triggers for the journeys that touch the object.
Change | Journeys to Rerun |
|---|---|
A new or changed record type, or new picklist values | Every journey using that object and record type |
Page layout or Lightning record page assignment changes | Journeys for the affected apps, record types and profiles |
Dynamic Forms visibility rules and component filters | Journeys that set the conditions involved |
New required fields, or fields made read-only | Every journey that creates or edits the record |
Formula, lookup and roll-up summary field changes | Journeys and reports that depend on the calculated value |
Profile, permission set or sharing changes | Journeys run as the affected personas |
A Salesforce release | Every important journey, in the sandbox preview window |
For the release dates that set each preview window, see the Salesforce release cycle.
What This Means for Your Regression Suite
Keep a short inventory of objects, record types, apps and pages for each important journey.
Run each journey for every record type the business actually uses.
Run it as each persona, because layouts and pages differ by profile.
Check visible fields and available actions, not only saved values.
Rerun when layouts, pages, record types or picklists change, and on every Salesforce release.
Testing Every Combination That Matters, With Virtuoso QA
Covering record types, apps and personas by hand multiplies effort fast, which is why most suites quietly test one combination. Virtuoso QA makes the combinations cheap to cover.
Journeys are written once in plain English and run as each persona’s test user, with reusable steps for sign-in and common actions. Data tables run the same journey across record types and picklist values. Steps find fields by their visible labels, so the same journey works across different layouts, and checks can confirm that a field or button is present, absent or read-only, not just that a record saved.
💡Virtuoso QA’s Salesforce test automation runs the same plain English journey across record types, apps and personas, so every combination that matters is proven on every release.
Related Reads
Salesforce Org Anatomy FAQs
What is a record type in Salesforce?
What’s the difference between a page layout and a Lightning record page?
Why do Salesforce tests pass for one record type and fail for another?
Do page layout changes need regression testing?
How many combinations should a Salesforce regression suite cover?
Written by

Rishabh Kumar
AI Testing & Quality Engineering Contributor
Rishabh leads business development and marketing at Virtuoso QA. He writes about AI-powered test automation, end-to-end testing, self-healing tests, and quality engineering, exploring how these capabilities can improve test coverage, reduce test maintenance, and support reliable software releases.










