Difference between revisions of "Solution to Nancy Naive"
(14 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
<span style="font-size: 16px"> | <span style="font-size: 16px"> | ||
1) Go to [[Test Automation Issues Mind Map]] or [https://atlas.mindmup.com/testautomationpattern/test_automation_issues_https_testautom/index.html Test Automation Issues Mind map with clickable links]. Look through the Issue names and see if one stands out as Nancy's main problem. | 1) Go to [[Test Automation Issues Mind Map]] or [https://atlas.mindmup.com/testautomationpattern/test_automation_issues_https_testautom/index.html Test Automation Issues Mind map with clickable links]. Look through the Issue names and see if one stands out as Nancy's main problem. | ||
− | </span><br /> <br /> | + | </span><br /> <br /> |
<span style="font-size: 16px"> | <span style="font-size: 16px"> | ||
Line 14: | Line 14: | ||
</span><br /><br /> | </span><br /><br /> | ||
− | <span style="font-size: 16px">Solution:<br /> | + | <span style="font-size: 16px">Solution:</span><br /> |
− | Using the Diagnostic, there are two possible issues on the Diagnostic page: | + | <span style="font-size: 16px"> |
+ | Using the Diagnostic, there are two possible issues on the Diagnostic page:</span> | ||
+ | <span style="font-size: 16px"><br /> | ||
* [[NO PREVIOUS TEST AUTOMATION]] (Management Issue) - Nancy is new to automation so this one may apply, or [[LIMITED EXPERIENCE]] (Management Pattern) | * [[NO PREVIOUS TEST AUTOMATION]] (Management Issue) - Nancy is new to automation so this one may apply, or [[LIMITED EXPERIENCE]] (Management Pattern) | ||
* Another possibility is to choose [[Improve or revive test automation]] | * Another possibility is to choose [[Improve or revive test automation]] | ||
− | * The most likely choice here is [[Maintenance expectations not met]]. | + | ** The most likely choice here is [[Maintenance expectations not met]]. |
− | * The topic [[Maintenance costs too high]] is a good choice here, | + | *** The topic [[Maintenance costs too high]] is a good choice here, |
− | * followed by [[Updating the automation scripts]] as it takes too much effort to update the scripts. This leads to the two most relevant issues: | + | **** followed by [[Updating the automation scripts]] as it takes too much effort to update the scripts. This leads to the two most relevant issues: |
− | ** [[BRITTLE SCRIPTS]] (Design Issue) that recommends for instance the following patterns: | + | ***** [[BRITTLE SCRIPTS]] (Design Issue) that recommends for instance the following patterns: |
− | *** [[MAINTAINABLE TESTWARE]] (Design Pattern) | + | ****** [[MAINTAINABLE TESTWARE]] (Design Pattern) |
− | *** [[MANAGEMENT SUPPORT]] (Management Pattern) | + | ****** [[MANAGEMENT SUPPORT]] (Management Pattern) |
− | *** [[TESTWARE ARCHITECTURE]] (Design Pattern) | + | ****** [[TESTWARE ARCHITECTURE]] (Design Pattern) |
− | *** [[GOOD PROGRAMMING PRACTICES]] (Process Pattern) | + | ****** [[GOOD PROGRAMMING PRACTICES]] (Process Pattern) |
− | ** [[TOOL DEPENDENCY]] (Design Issue). Other patterns recommended by TOOL DEPENDENCY include: | + | ***** [[TOOL DEPENDENCY]] (Design Issue). Other patterns recommended by TOOL DEPENDENCY include: |
− | *** [[RIGHT TOOLS]] (Management Pattern) | + | ****** [[RIGHT TOOLS]] (Management Pattern) |
− | *** [[TOOL INDEPENDENCE]] (Design Pattern) | + | ****** [[TOOL INDEPENDENCE]] (Design Pattern) |
− | *** [[OBJECT MAP]] (Execution Pattern) | + | ****** [[OBJECT MAP]] (Execution Pattern) |
− | ** Both of these issues mention [[ABSTRACTION LEVELS]] (Design Pattern), so that would be a good one to look at. | + | ***** Both of these issues mention [[ABSTRACTION LEVELS]] (Design Pattern), so that would be a good one to look at.</span> |
− | |||
− | <span | ||
− | <span style="font-size: 16px"> | + | <span style="font-size: 16px"><br />Basically, Nancy should have thought about the design of her automation before she started, rather than jumping into capture-replay. She will probably have to start again and may or may not be able to use anything that she has recorded so far.</span> |
Latest revision as of 14:41, 13 August 2019
However, when the next release was ready, she found that many of the recorded tests didn’t actually play back or didn’t do what they should. She spent 2 days trying to fix the tests, and ended up re-recording some of them. She feels that this is too much time to spend on maintaining the tests! She is now concerned about what will happen the next time the system changes and wants to make sure that her test maintenance costs are kept to a reasonable level.
Exercises:
1) Go to Test Automation Issues Mind Map or Test Automation Issues Mind map with clickable links. Look through the Issue names and see if one stands out as Nancy's main problem.
2) Go to the Diagnostic. Answer the questions on Nancy's behalf and see if you find the same issues and patterns.
Solution:
Using the Diagnostic, there are two possible issues on the Diagnostic page:
- NO PREVIOUS TEST AUTOMATION (Management Issue) - Nancy is new to automation so this one may apply, or LIMITED EXPERIENCE (Management Pattern)
- Another possibility is to choose Improve or revive test automation
- The most likely choice here is Maintenance expectations not met.
- The topic Maintenance costs too high is a good choice here,
- followed by Updating the automation scripts as it takes too much effort to update the scripts. This leads to the two most relevant issues:
- BRITTLE SCRIPTS (Design Issue) that recommends for instance the following patterns:
- MAINTAINABLE TESTWARE (Design Pattern)
- MANAGEMENT SUPPORT (Management Pattern)
- TESTWARE ARCHITECTURE (Design Pattern)
- GOOD PROGRAMMING PRACTICES (Process Pattern)
- TOOL DEPENDENCY (Design Issue). Other patterns recommended by TOOL DEPENDENCY include:
- RIGHT TOOLS (Management Pattern)
- TOOL INDEPENDENCE (Design Pattern)
- OBJECT MAP (Execution Pattern)
- Both of these issues mention ABSTRACTION LEVELS (Design Pattern), so that would be a good one to look at.
- BRITTLE SCRIPTS (Design Issue) that recommends for instance the following patterns:
- followed by Updating the automation scripts as it takes too much effort to update the scripts. This leads to the two most relevant issues:
- The topic Maintenance costs too high is a good choice here,
- The most likely choice here is Maintenance expectations not met.
Basically, Nancy should have thought about the design of her automation before she started, rather than jumping into capture-replay. She will probably have to start again and may or may not be able to use anything that she has recorded so far.