State of Salesforce Testing Report
State of Salesforce Testing Report
SALESFORCE TESTING
How Elite Teams Test Salesforce
to Drive ROI
2022 Edition
What’s Inside
Copado’s first annual State of Salesforce Testing Report provides a snapshot of the testing
strategies leveraged by today’s most innovative brands. We reached out to 275+ Salesforce
professionals to gain insights on testing and pinpoint common challenges and best practices.
Executive Summary 3
Testing Trends 10
Survey Methodology 43
Executive Summary
Business Transformation Depends on Low-Code
With rapid innovation comes the need for scalable 84% still rely at least partially on manual
testing.
end-to-end testing — and that’s where many teams
continue to struggle.
51% of organizations have 25+ full-time QA
resources (20% have 100+ resources).
Manual
Testing
Homegrown
Testing Tool
Commercial
Testing Tool
0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 110% 120% 130% 140% 150% 160%
We created this report to achieve three goals: However, we also observed a growing shift from
manual testing to automated solutions — with
Analyze current testing processes
significant outcomes for teams wielding the power of
Measure the impact of quality automation:
Identify key areas for improvement
58% fewer production failures per year
Our findings were clear — testing remains the biggest
bottleneck to digital transformation. Companies of 50% more frequent releases
all shapes and sizes are still using traditional testing more likely to complete testing for each
methods such as manual testing or script-based 50% release
solutions. As a result, teams lack the time to test
changes before deployments and the release quality 50% lower total cost of ownership
suffers.
confidence in the face of change. But do organizations Do you have enough time to fully test all changes
have the time and capacity to keep up? before each release?
Even teams that claim to be agile often resort to No, due to time constraints
fixed time boxes like sprints — which function like 41% we often have to reduce the
mini waterfall projects. This approach (called “Water- scope of testing
Scrum-Fall”) squeezes testing to the end of the
process.
8% N/A, or I don’t know
Use
automated
testing
No test
automation
0% 5% 10% 15% 20% 25% 30% 35% 40% 45% 50% 55% 60% 65% 70%
In comparison, teams that use automated testing are 50% more likely to complete their
planned testing on time. Each batch of changes requires new tests — but teams that invest in
automation are able to keep pace with testing needs and derisk the development lifecycle.
On average, how many production issues arise each Without enough time planned for testing, quality
year due to the quality of the release? is often sacrificed for speed. We discovered that
a whopping 92% of respondents run into critical
business issues each year due to inadequate testing.
Bugs found early in the development cycle are easy to
2% None fix — but defects found later in the pipeline can cost
640X more to repair.
92%
36% 1-5
38% 5-10
Experience Critical
Issues Annually 18% 10+
6% N/A
85% 640x
40x
10x
4x
1x
CODING UNIT TEST FUNCTIONAL SYSTEM RELEASE
TEST TEST
Applied Software Measurement: Global Analysis of Productivity and Quality, Caper Jones McGraw-Hill Education, 2008
Figure 6
Using test
automation
No test
automation
0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0
Coding
The QA department was created to provide a
quicker way to verify the work of developers and
Testing
meet aggressive release timelines without cutting
corners. QA managers plan testing strategies, allocate
Operations
resources and oversee teams of testers. This model
dominated the landscape before the advent of Agile
and is still widely used today.
D
few weeks. Shorter cycles require close collaboration
p
between testers, developers and business analysts
e l o
— with new sets of requirements introduced in every
D ev
R evie w
sprint.
n
s
ig
new software releases and weed out feature defects. e
D
When it comes to flow speed and test effectiveness, Plan Launch
agile offers better flexibility and visbility across teams.
Due to feedback loops, delays and an ocean of provide continuous feedback and end-to-end visibility.
possible data points and user behaviors, web-scale Practices like feature flags can toggle capabilities on
systems are often expensive and complicated to or off in production — which allows for testing even
accurately simulate for testing. Shift-right testing after software has been deployed.
monitors these systems once they’re in production to
Acceptance Tests
Unit Tests
Unit Tests
Quick tests that execute individual units of code to
ensure functionality. (Apex and Lightning Components
can be unit tested in Salesforce)
26-50 24%
51-100 7%
101+ 20%
We employ a full-time
49%
in-house testing team
Testing is primarily
23%
done by developers
Other 2%
23%
An effective testing strategy starts with a clear The key is distinguishing repetitive work (that can
and concise definition of success. It should seek to be automated) from creative work (that can’t be
optimize experiences for both internal and external automated). Automating a test comes with an upfront
customers while accounting for the looming risk of cost in time — which can be paid back by future
end-to-end changes. Ultimately, the right strategy will savings once the automation gets up to speed. Teams
measure user risk against the costs and capabilities need to estimate:
of a testing team to find the most efficient way to
execute objectives. What are the testing dependencies?
How critical to the business is this scenario?
How often could changes undermine that?
How likely is that functionality to break?
How long does it take to manually test?
How likely are we to forget or run out of time to
test?
Testing is a protective task. It must be prioritized Easy-to-use test automation solutions help QA
according to a company’s most critical business professionals and developers exercise creative
systems. For instance, a team might estimate that a ways to protect functionality against risks that could
certain functionality takes 15 minutes for a person to undermine the code.
test and has a 5% chance of breaking each month,
with a productivity cost of $10,000 per hour if it
breaks. These metrics are contrasted with the cost of
creating an automated test.
COPADO ROBOTIC TESTING
Web master
None No RU N
master 27
18
master
Requirements Analysis: Establishing what types of Those stages remain the same across both manual
tests needs to be performed. and automated testing. Automation simply allows
teams to be faster and more comprehensive in test
Test Planning: Project plan includes type, method, execution.
efforts and resources.
Requirements
Test Case Development: Creating tests aligned to Analysis
Test management helps users organize, track An effective test management system enables
and analyze their testing activities in one central organizations to:
location. Without effective test management,
organizations are likely to struggle with a lack of Leverage polymorphic test objects to integrate and
centralized test visibility, siloed test roles and limited manage different types of tests and tools
process automation between testing and release Clearly understand the definition of “done” on a
management. user story
Organize all test plans
Continuous Integration test requires initial effort, but the cost of re-running
Continuous integration (CI) speeds up development by each test is negligible. This makes test automation an
merging work early and often (at least daily). Rather ideal solution for high-velocity teams who need fast
than letting conflicts accumulate, CI resolves them and consistent testing to prevent backward regression
in small batches. CI prevents teams working in one as they build new capabilities.
part of the system from making changes to shared
components that could cause code to break elsewhere Continuous Delivery
in the system. Continuous delivery (CD) expands on CI by deploying
code to production in small batches on a regular
Automated testing minimizes this risk by providing basis (at least daily). While CI addresses the risks of
a layer of protection — allowing functionality to be parallel development, CD tackles the risks of delaying
checked and rechecked thousands of times with feedback from end users.
minimal human intervention. Creating an automated
© 2022 Copado | Page 36
Teams using automated testing deploy 50% more
releases each year than teams that rely on manual
testing (34 on average vs. 22)
Culture Lean
Mature DevOps teams commit to a culture Lean is all about doing more with less by
of continuous learning and experimentation. understanding and optimizing value streams. Toyota’s
This requires a growth mindset that prioritizes lean manufacturing practices have gone on to
psychological safety and information flow. revolutionize healthcare and now IT.
Automation Measurement
The central miracle of technology is automation and Taking a data-driven approach to DevOps and testing
the dramatic efficiencies it enables. But automation gives teams a yardstick to gauge the effectiveness of
is not a panacea — the other four DevOps elements process improvements.
must be developed to drive success.
Sharing
Digital leaders share a fountain of information,
practices and resources between individuals, teams
and organizations. Books like Mastering Salesforce
DevOps show how traditional techniques like
modularization and continuous integration can be
adapted to the Salesforce platform. Learn more about
DevOps for Salesforce by reading Copado’s State of
Salesforce DevOps Report.
numbers.
Mstr. 2%
1%
2%
46% 13% 7% 5%
17%
19%
10%
13%
18%
23%
1-100 101-500 501- 1,001- 5,001- 10,001+
1,000 5,000 10,000
Region
Energy Telecom. Media
2% 2% 2%
42% AMER
32% APAC
21% EMEA
5% LATAM