Difference between revisions of "GIANT SCRIPTS"

From Test Automation Patterns
Jump to navigation Jump to search
m (Topic titles in capital letters)
m (empty lines removed)
Line 1: Line 1:
<div id="content_view" class="wiki" style="display: block"><span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Design Issues]] / Back to [[Test Automation Issues]]</span><br />  
+
<div id="content_view" class="wiki" style="display: block"><span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Design Issues]] / Back to [[Test Automation Issues]]</span>  
 
=<span style="font-family: Arial; font-size: 16px">'''Issue Summary'''</span>=
 
=<span style="font-family: Arial; font-size: 16px">'''Issue Summary'''</span>=
<span style="font-size: 16px">Scripts that span thousands of lines </span><br /> <br />  
+
<span style="font-size: 16px">Scripts that span thousands of lines </span>  
 
=<span style="font-size: 16px">'''Category'''</span>=
 
=<span style="font-size: 16px">'''Category'''</span>=
 
<span style="font-size: 16px">Design</span>  
 
<span style="font-size: 16px">Design</span>  
 
=<span style="font-family: Arial; font-size: 16px">'''Examples'''</span>=
 
=<span style="font-family: Arial; font-size: 16px">'''Examples'''</span>=
<span style="font-size: 16px">Scripts are not modular, one script does the test case from beginning to end (this is often the case if you use [[CAPTURE-REPLAY]])</span><br /> <span style="font-size: 16px">Scripts perform more then one test case</span><br /> <br />  
+
<span style="font-size: 16px">Scripts are not modular, one script does the test case from beginning to end (this is often the case if you use [[CAPTURE-REPLAY]])</span><br /> <span style="font-size: 16px">Scripts perform more then one test case</span>  
 
=<span style="font-family: Arial; font-size: 16px">'''Questions'''</span>=
 
=<span style="font-family: Arial; font-size: 16px">'''Questions'''</span>=
<span style="font-size: 16px">Who is doing the scripting?</span><br /> <br />  
+
<span style="font-size: 16px">Who is doing the scripting?</span>  
 
=<span style="font-family: Arial; font-size: 16px">'''Resolving Patterns'''</span>=
 
=<span style="font-family: Arial; font-size: 16px">'''Resolving Patterns'''</span>=
 
<span style="font-family: Arial; font-size: 16px">Most recommended:</span><br />  
 
<span style="font-family: Arial; font-size: 16px">Most recommended:</span><br />  
 
 
* <span style="font-size: 16px"><span style="font-size: 16px">[[ABSTRACTION LEVELS]]:</span>This pattern helps but it may be too costly or too time-consuming to change retroactively the architecture of your current automation, still you should use this pattern for all new automation efforts or when you have to do complex updates.</span>
 
* <span style="font-size: 16px"><span style="font-size: 16px">[[ABSTRACTION LEVELS]]:</span>This pattern helps but it may be too costly or too time-consuming to change retroactively the architecture of your current automation, still you should use this pattern for all new automation efforts or when you have to do complex updates.</span>
 
* <span style="font-size: 16px"><span style="font-size: 16px">[[GOOD DEVELOPMENT PROCESS]]: </span>apply this pattern if you don't have a process for developing test automation. Apply it also if your process lives only on paper (nobody cares)</span>
 
* <span style="font-size: 16px"><span style="font-size: 16px">[[GOOD DEVELOPMENT PROCESS]]: </span>apply this pattern if you don't have a process for developing test automation. Apply it also if your process lives only on paper (nobody cares)</span>
Line 16: Line 15:
 
* <span style="font-size: 16px">[[ONE CLEAR PURPOSE]]: use this pattern if you have scripts that perform more than one test case</span>
 
* <span style="font-size: 16px">[[ONE CLEAR PURPOSE]]: use this pattern if you have scripts that perform more than one test case</span>
 
<br /> <span style="font-size: 16px">Other useful patterns:</span><br />  
 
<br /> <span style="font-size: 16px">Other useful patterns:</span><br />  
 
 
* <span style="font-size: 16px">[[ DESIGN FOR REUSE]]:Apply this pattern for long lasting testware</span>
 
* <span style="font-size: 16px">[[ DESIGN FOR REUSE]]:Apply this pattern for long lasting testware</span>
 
* <span style="font-size: 16px">[[KEEP IT SIMPLE]]:Use this pattern always</span>
 
* <span style="font-size: 16px">[[KEEP IT SIMPLE]]:Use this pattern always</span>
 
* <span style="font-size: 16px">[[SINGLE PAGE SCRIPTS]]:</span><span style="font-family: Arial; font-size: 16px">use this pattern to modularize your scripts</span>
 
* <span style="font-size: 16px">[[SINGLE PAGE SCRIPTS]]:</span><span style="font-family: Arial; font-size: 16px">use this pattern to modularize your scripts</span>
 
<br /> <span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Design Issues]] / Back to [[Test Automation Issues]]</span></div>
 
<br /> <span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Design Issues]] / Back to [[Test Automation Issues]]</span></div>

Revision as of 17:13, 7 May 2018

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

Issue Summary

Scripts that span thousands of lines

Category

Design

Examples

Scripts are not modular, one script does the test case from beginning to end (this is often the case if you use CAPTURE-REPLAY)
Scripts perform more then one test case

Questions

Who is doing the scripting?

Resolving Patterns

Most recommended:

  • ABSTRACTION LEVELS:This pattern helps but it may be too costly or too time-consuming to change retroactively the architecture of your current automation, still you should use this pattern for all new automation efforts or when you have to do complex updates.
  • GOOD DEVELOPMENT PROCESS: apply this pattern if you don't have a process for developing test automation. Apply it also if your process lives only on paper (nobody cares)
  • GOOD PROGRAMMING PRACTICES:This pattern should already be in use! If not, you should apply it for all new automation efforts. Apply it also every time you have to change current testware.
  • ONE CLEAR PURPOSE: use this pattern if you have scripts that perform more than one test case


Other useful patterns:


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