Leapwork - FactSheet TestAutomationStrategy v2
Leapwork - FactSheet TestAutomationStrategy v2
AUTOMATION
STRATEGY
A Checklist
Test Automation Strategy: A Checklist
Once the decision has been made to roll out test automation, the next issue
presents itself:
This is why we’ve put together this checklist for creating a test automation
strategy. It consists of eight items for you to consider as you head out on your
automation journey. Some of the items you might already be able to check
off, while others will require some work - perhaps even help from external
consultants.
Test Automation Strategy: A Checklist
1. SCOPE
Defining a project scope from an automation perspective includes outlining
timelines and milestones for each sprint in the project. All team members
(product owners, developers, testers, etc.) should be on board with the scope.
At this stage, clearly define which tests to automate and which to keep doing
manually. A rule of thumb is the 80/20 split: Select 80% of the test cases which, if
automated, would reduce the risk of errors happening during regression testing
to an acceptable level. The remaining 20% can then be either left for manual
testing or not considered part of the current regression suite.
20%
80%
PROCESS
Test automation roll-out must be a well-defined and structured process. Make
sure to cover the following in your plan:
• When during the sprint should automated test cases be developed?
• When are features ready for automated testing?
• Which features are tested manually?
• Who takes care of maintenance?
• How do we analyze results?
TECHNOLOGY
Identify the applications to be automated. Figure out which technology
they are based on and whether your test automation platform supports
these technologies. In most cases, rolling out automation will involve several
application types: web-based, desktop-based, SAP, mobile apps etc., therefore
it’s important to have a tool that can handle all your automation requirements.
You should also outline which kind of test automation is needed. Unit and
integration testing are usually an integrated part of development practices,
but there is a long list of other test activities which can be automated. Define
the roles for automation in the agile team. Make sure that all members know
who is responsible for which part of the automation project.
ROLES
Learn more about why all members of test team has a role to play in automation.
Examples of roles and responsibilities include:
• Automation lead: Responsible for coordinating and managing all activities
regarding automation in the project.
• Test case designer / reviewer: Similar to code reviews among software
developers, it’s important to establish a review process for automated test
cases. This means that a tester will typically have at least two roles: test
case designer and test case reviewer.
Test Automation Strategy: A Checklist
3. RISK ANALYSIS
Risk analysis is of course an essential part of project planning in general, but it
is important to consider this specifically in relation to automation as well. The
analysis is done by creating a list of all identifiable risks qualified with these
details:
• Description and relevant meta data
Severity: What will happen if the risk becomes reality?
•
How hard will it hit the project?
• Probability: What is the likeliness that it happens?
• Mitigation: What can be done to minimize the risk?
Cost estimate: What is the cost of mitigating the risk –
•
what is the cost of not doing it?
Note that a risk plan is a dynamic document; risks will be added and removed to the list as the project evolves.
Test Automation Strategy: A Checklist
5. EXECUTION PLAN
An execution plan should outline the day-to-day tasks and procedures related
to automation.
Pick the test cases to be automated based on the approach defined in step
#1. Before any automated test cases are added to the regression suite, they
should be run and verified multiple times to ensure they run as expected.
False failures are time-consuming, so it’s essential that test cases are robust
and reliable.
Define a set of best practices that make test cases resistant to changes in the
system being automated. These guidelines will depend on the application in
question, but they should cover how test cases recognize and interact with
elements in the application under test.
Remember, you can never test too much, and the combination of test
automation, reliable test cases, and scheduled/controlled execution will
always have a positive effect.
Test Automation Strategy: A Checklist
6. RELEASE CONTROL
In any release pipeline, regardless of its complexity and maturity, there is a
point when a team needs to decide whether to release a build or not. Parts of
this decision-making can be automated, other parts still require a human touch,
so the final decision regarding release will often be based on a combination of
algorithm results and manual inspection.
In any case, make sure that the results from test automation are part of the
release decision. Either decide to only allow releases if all regression test
passes or have the lead tester approve the result.
After a complete run of regression tests, consider including the application logs
as part of the release decision. If the regression tests have good application
coverage, then any errors not related to the UI should reveal themselves in
the log files.
LOCAL
DEVELOPMENT TEST PRODUCTION
DEVELOPMENT
Release pipeline
Test Automation Strategy: A Checklist
7. FAILURE ANALYSIS
Having a plan for how to analyze failing test cases and the actions required
to take afterwards is a critical—and sometimes neglected—part of a test
automation strategy. The time it takes from a tester is notified of a failing test
case until the fix is described, understood, and accepted in the development
backlog is usually much longer than teams anticipate. Having a well-defined
process for this can save a lot of time and frustrations in a development team.
• etc.
REVIEW AND FEEDBACK
Finally, once you’ve made a draft of a test automation strategy, make
sure to have it reviewed and approved by all members of the involved
development team.
Read the LEAPWORK guide to reducing risk, lowering costs, and driving
value with test automation here