Automated 
Test 
Design: 
Single 
Use 
vs. 
Reusable 
Tests 
Josh 
Grant 
@joshin4colours 
@testcomplete 
| 
#testdesign
A 
Few 
Notes 
• We 
will 
send 
you 
the 
recording 
and 
slides 
from 
this 
presenta@on 
• Join 
the 
live 
Q&A 
at 
the 
end 
of 
the 
preso 
• Use 
#testdesign 
on 
TwiFer 
or 
use 
the 
webinar 
chat 
box 
to 
par@cipate 
#testdesign
This 
is 
Josh 
Grant. 
• Follow 
him 
@joshin4colours 
• From 
Toronto, 
Ontario 
• Formerly 
a 
mathema@cian 
• Automa@on 
enthusiast 
#testdesign
#testdesign 
##tetestsdtdeesisgignn
#testdesign 
##tetestsdtdeesisgignn 
...how 
so?
Single-Use Tests 
#testdesign
#testdesign
#testdesign
#testdesign
#testdesign
...and 
that's 
it! 
#testdesign
l Straightforward 
l Gets the Job Done 
l Designed for One-Time Use 
#testdesign 
#testdesign
Reusable Tests 
#testdesign
#testdesign
#testdesign 
l Budgets 
l Patrons 
l Menus 
l Maintenance 
l Staffing 
l Decor 
#testdesign
In 
other 
words, 
not 
at 
all 
like...
In 
other 
words, 
not 
at 
all 
like...
In 
other 
words, 
not 
at 
all 
like... 
Several 
aspects 
don't 
even 
apply!
Complexity
In 
the 
case 
of...
In 
the 
case 
of... 
...complexity 
is 
fairly 
clear 
(not 
too 
high).
Tests designed for one-time use... 
l by specific people, 
l with set resources, 
l with a clear, objective goal. 
#testdesign 
#testdesign
In 
the 
case 
of...
In 
the 
case 
of... 
... 
complexity 
is 
much 
higher.
Reusable tests may mean tests 
l ...have different people working with them 
l ...in varying environments 
l ...with different resources 
l ...and possibly changing goals 
#testdesign 
#testdesign
Reusable 
tests 
need 
to 
address 
subjec<vity. 
#testdesign 
#testdesign
Reusable 
tests 
need 
to 
address 
subjec<vity. 
#testdesign 
#testdesign 
“Predic'on 
is 
hard, 
par'cularly 
about 
the 
future.” 
-­‐ 
Yogi 
Berra
What 
are 
your 
goals? 
##tteessttddeessiiggnn
#testdesign
#testdesign
Value
Here... 
#testdesign
Here... 
value 
is 
preFy 
clear. 
#testdesign
What 
about 
here?
What 
about 
here? 
... 
it 
depends 
on 
who 
you 
are.
#testdesign
#testdesign
Different 
Kinds 
of 
Value 
l 
Business 
value 
(yes, 
this 
means 
$$$) 
#testdesign 
l 
Technical 
value 
l 
Opportunity 
costs 
l 
(Is 
this 
even 
a 
good 
idea?) 
#testdesign
Maintenance
In 
this 
case... 
#testdesign
In 
this 
case... 
There 
is 
no 
maintenance. 
#testdesign
By 
defini@on, 
maintenance 
doesn't 
apply 
to 
single 
use 
tests. 
#t#etsetsdtdeessiiggnn
By 
defini@on, 
maintenance 
doesn't 
apply 
to 
single 
use 
tests. 
This 
is 
a 
key 
feature 
of 
single 
use 
tests. 
#t#etsetsdtdeessiiggnn
Meanwhile, 
here...
Meanwhile, 
here... 
It’s 
almost 
all 
maintenance.
#testdesign
Maintenance, Maintenance, Maintenance! 
#testdesign
Reusable Tests mean Usable Tests 
#testdesign 
l Code Rot 
l Technical Debt 
l Fragile Tests 
l ...and the app is changing as well 
#testdesign
Tooling
Tooling 
is 
easy 
here 
#testdesign
...which 
is 
kind 
of 
the 
point. 
#testdesign
Many 
more 
tooling 
choices 
here 
#testdesign
Some 
are 
familiar...
...And 
some 
are 
less 
so.
Tools 
help 
solve 
problems, 
not 
be 
a 
problem. 
#testdesign 
l 
Source 
Control 
l 
Languages/Editors 
l 
Third-­‐party 
or 
roll 
your 
own? 
l 
Most 
important 
tool 
is 
your 
brain 
#testdesign
In 
conclusion... 
≠
#testdesign 
Acknowledgements 
l Lorinda 
Brandon 
and 
Kendal 
Peiguss 
at 
SmartBear 
l Ron 
Perreault 
and 
Test 
Development 
at 
CaseWare
Thanks! Questions? 
@testcomplete 
| 
#testdesign 
Josh 
Grant 
@joshin4colours

Automated Test Design: Single Use Vs Reusable Tests