Difference between revisions of "CAPTURE-REPLAY"

From Test Automation Patterns
Jump to navigation Jump to search
m (Topic titles in capital letters)
Line 10: Line 10:
 
=<span style="font-size: 16px">'''Implementation'''</span>=
 
=<span style="font-size: 16px">'''Implementation'''</span>=
 
<span style="font-size: 16px">With a so called capture-replay tool you can record a test in the script language of the tool while you perform it manually. By running the script you can let the tool perform the test automatically</span>
 
<span style="font-size: 16px">With a so called capture-replay tool you can record a test in the script language of the tool while you perform it manually. By running the script you can let the tool perform the test automatically</span>
=<span style="font-size: 16px">'''Possible problems'''</span>=
+
=<span style="font-size: 16px">'''Potential problems'''</span>=
 
<span style="font-size: 16px">This pattern can be very useful to automate actions that are repeated very often and almost never change, for instance set-ups.</span><br /> <span style="font-size: 16px">If you capture a test not only as a script but also as video clip you can get the information you need to automate it even if testers have no time to support you. </span><br /> <span style="font-size: 16px">Beware: If you want your automation scripts to be easily maintainable, you should avoid creating them solely using capture-replay: every small change in the SUT can force you to record the test again and you will get ''[[BRITTLE SCRIPTS]]'' or ''[[TOOL-DRIVEN AUTOMATION]]''</span>
 
<span style="font-size: 16px">This pattern can be very useful to automate actions that are repeated very often and almost never change, for instance set-ups.</span><br /> <span style="font-size: 16px">If you capture a test not only as a script but also as video clip you can get the information you need to automate it even if testers have no time to support you. </span><br /> <span style="font-size: 16px">Beware: If you want your automation scripts to be easily maintainable, you should avoid creating them solely using capture-replay: every small change in the SUT can force you to record the test again and you will get ''[[BRITTLE SCRIPTS]]'' or ''[[TOOL-DRIVEN AUTOMATION]]''</span>
 
=<span style="font-size: 16px">'''Experiences'''</span>=
 
=<span style="font-size: 16px">'''Experiences'''</span>=
 
<span style="font-size: 16px">If you have used this pattern, please add your name and a brief story of how you used this pattern: your context, what you did, and how well it worked - or how it didn't work!</span><br /> <br /> <span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Design Patterns]] / Back to [[Test Automation Patterns]]</span></div>
 
<span style="font-size: 16px">If you have used this pattern, please add your name and a brief story of how you used this pattern: your context, what you did, and how well it worked - or how it didn't work!</span><br /> <br /> <span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Design Patterns]] / Back to [[Test Automation Patterns]]</span></div>

Revision as of 09:45, 28 June 2018

.................................................................................................................Main Page / Back to Design Patterns / Back to Test Automation Patterns

Pattern summary

Capture a manual test with an appropriate tool and replay it to run the test again

Category

Design

Context

This pattern can be useful to develop one-off disposable scripts. It should not be applied for long lasting, maintainable automation, except as a stepping stone to provide very short "building block" scripts to be edited into something more useful.

Description

You can capture your manual test with an appropriate tool and replay it when you want to rerun it. Capturing a manual test can also be useful to be an "audit record" of the testing that someone has done manually, for example if a business user comes in to do some testing. A small captured script can also be useful to support a bug report.

Implementation

With a so called capture-replay tool you can record a test in the script language of the tool while you perform it manually. By running the script you can let the tool perform the test automatically

Potential problems

This pattern can be very useful to automate actions that are repeated very often and almost never change, for instance set-ups.
If you capture a test not only as a script but also as video clip you can get the information you need to automate it even if testers have no time to support you.
Beware: If you want your automation scripts to be easily maintainable, you should avoid creating them solely using capture-replay: every small change in the SUT can force you to record the test again and you will get BRITTLE SCRIPTS or TOOL-DRIVEN AUTOMATION

Experiences

If you have used this pattern, please add your name and a brief story of how you used this pattern: your context, what you did, and how well it worked - or how it didn't work!

.................................................................................................................Main Page / Back to Design Patterns / Back to Test Automation Patterns