Difference between revisions of "LITTER BUG"

From Test Automation Patterns
Jump to navigation Jump to search
(Created page with "<div id="content_view" class="wiki" style="display: block"><span style="font-size: 14px">.........................................................................................")
 
m (Topic titles in capital letters)
Line 1: Line 1:
 
<div id="content_view" class="wiki" style="display: block"><span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Execution Issues]] / Back to [[Test Automation Issues]]</span>
 
<div id="content_view" class="wiki" style="display: block"><span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to [[Execution Issues]] / Back to [[Test Automation Issues]]</span>
=<span style="font-size: 16px">Issue Summary</span>=
+
=<span style="font-size: 16px">'''Issue Summary'''</span>=
 
<span style="font-size: 16px">Tests leave spurious data in databases, history etc. that slows performance or hinders further tests</span>
 
<span style="font-size: 16px">Tests leave spurious data in databases, history etc. that slows performance or hinders further tests</span>
=<span style="font-size: 16px">Category</span>=
+
=<span style="font-size: 16px">'''Category'''</span>=
 
<span style="font-size: 16px">Execution</span>
 
<span style="font-size: 16px">Execution</span>
<span style="font-family: Arial; font-size: 16px">
+
=<span style="font-size: 16px">'''Examples'''</span>=
=<span style="font-family: Arial; font-size: 16px">Examples</span>=
 
</span><br />
 
 
 
 
# <span style="font-size: 16px">A test changes the database so that it cannot run again with the same initial conditions</span>
 
# <span style="font-size: 16px">A test changes the database so that it cannot run again with the same initial conditions</span>
 
# <span style="font-size: 16px">If a test fails, it leaves the System under Test in such a condition that no more tests can run</span>
 
# <span style="font-size: 16px">If a test fails, it leaves the System under Test in such a condition that no more tests can run</span>
 
# <span style="font-size: 16px">A test writes so much stuff that the next tests either cannot execute or are much slower</span>
 
# <span style="font-size: 16px">A test writes so much stuff that the next tests either cannot execute or are much slower</span>
<br /> <span style="font-size: 16px">Questions</span><br /> <span style="font-size: 16px">Are your tests Independent from each other?</span><br /> <span style="font-size: 16px">What happens when the system crashes?</span><br />  
+
<span style="font-size: 16px">'''Questions'''</span><br /> <span style="font-size: 16px">Are your tests Independent from each other?</span><br /> <span style="font-size: 16px">What happens when the system crashes?</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-size: 16px">[[FAIL GRACEFULLY]]: If a test fails it should restore the system and the environment so that the successive tests are not affected</span><br /> <br /> <br /> <span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to Execution Issues / Back to [[Test Automation Issues]]</span></div>
 
<span style="font-size: 16px">[[FAIL GRACEFULLY]]: If a test fails it should restore the system and the environment so that the successive tests are not affected</span><br /> <br /> <br /> <span style="font-size: 14px">.................................................................................................................[[Main Page]] / Back to Execution Issues / Back to [[Test Automation Issues]]</span></div>

Revision as of 15:33, 4 May 2018

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

Issue Summary

Tests leave spurious data in databases, history etc. that slows performance or hinders further tests

Category

Execution

Examples

  1. A test changes the database so that it cannot run again with the same initial conditions
  2. If a test fails, it leaves the System under Test in such a condition that no more tests can run
  3. A test writes so much stuff that the next tests either cannot execute or are much slower

Questions
Are your tests Independent from each other?
What happens when the system crashes?

Resolving Patterns

FAIL GRACEFULLY: If a test fails it should restore the system and the environment so that the successive tests are not affected


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