Featured
- Get link
- X
- Other Apps
Top 10 Test Automation Strategies And Best Practices

This is the ultimate article within the take a look at
automation series. This article summarizes the quality practices and techniques
for doing check automation.
Although our previous articles do point out first-rate
practices (and some of them can be repeated here), I strongly felt to list down
the few, but most essential nice practices of automation right here in one
article for reference.
These techniques are taken from my very own enjoy plus from
the literature of testing specialists like Michael Bolton, James Bach, and Cem
Kaner. These practices ought to be observed in each automation mission.
Here we cross..
#1. Hire a Dedicated Automation Engineer or Team
This is a simple factor to do. Don’t ask your manual testers
to take pleasure in take a look at automation. If you do want them to do test
automation, then unfastened them from guide checking out work. Test automation
is a complete-time activity. For this, you need committed assets.
I suggest building a test automation crew including at the
least one automation architect. You can rent a couple of automation engineers
to work underneath the guidance of the check automation architect. The variety
of automation engineers relies upon at the variety and size of your
merchandise.
#2. An automation tool is important, but it isn't always the
answer to everything
We mentioned device selection. But deciding on the proper
tool is just the beginning. Some managers have the misconception that in the
event that they pick the right tool, they are able to without difficulty
automate whatever. Beware, automation gear do now not give you the entirety.
They make the technique simpler. But you need professional assets to complete
the method.
Often automation equipment are buggy and they stuck in
figuring out complicated objects on the application. The sources you hire, if
they are skilled, come up with a workaround which takes the method ahead.
Otherwise, in case you don’t lease proper assets, Tool by myself can not assure
successful automation.
#3. Select the automation device that's acquainted on your
sources
If your assets are acquainted with C# and your software to
be examined is also developed in C#, then there is no point deciding on the
tool which does not provide C# to put in writing scripts.
Language studying is a time taking method. Avoid this
gaining knowledge of curve by using buying a tool which gives a minimal learning
curve.
#four. Know the utility being examined
The device choice depends heavily on the technologies used
for your product. Know your merchandise inside out before starting the
automation.
If it's far a web utility, realize the browsers it's going
to aid. Know the technologies being utilized in it. If it's miles a computing
device software, know which language is constructed upon. What 0.33-celebration
controls are being used within the application. This will help you are making
the device selection and destiny automation simpler.
#5. Good Automation method excellent guide check case
Nicely written strong manual check instances store us from
automating the ones take a look at cases that are smooth to automate however
weak in locating defects.
Here is the costing from the book Lessons Learned in
Software Testing:
“Automating without excellent take a look at design may
bring about a lot of pastime, however little value.”
It is always really helpful to first write the check case in
manual form. Identify all prerequisites and test information. Write steps in a
clean manner and write anticipated consequences in the front of each step. The
goal of 1 check case need to be clear and it must be much less dependent on the
opposite test cases. Automation engineers have to run this test case manually
at the least once to simply decide what objects need to be identified and what
is going to be the go with the flow of navigation. Ask questions with manual
testers.
This pastime on occasion helps to pick out insects even
earlier than the automation script is written. Experts say that most people of
bugs is identified within the take a look at automation improvement section in
preference to in the real execution phase.
#6. Identify possibilities with automation
If you are passed over with a manual check case to automate,
don’t just automate that take a look at case as it's far. Instead, discover
further possibilities on your automation, to expand the scope of this check
case.
For instance, if the manual take a look at case requirement
is you need to login to an internet web page. You can amplify this take a look
at case by way of making it facts-driven. List all the feasible situations of
login like invalid password, empty password, invalid username, invalid e-mail,
clean username, don't forget me checked, now not checked, and so on. List the
viable situations together with their predicted bring about an excel report and
put this excel document as a records supply on your take a look at case. Now
this one guide check case, after being computerized, can take a look at all of
the feasible eventualities in one go.
Always look for possibilities that may be carried out with
automation, however hard to do manually. Such as Load Testing eventualities,
Performance Benchmarks, Same Tests underneath exceptional environments with
exceptional configurations, Memory Leaks, High Precision Tests and so on. These
all are tough eventualities for manual testers.
#7. You cannot automate the entirety
Automation approach strolling fewer exams greater
frequently. You have to begin small through attacking your smoke assessments
first. Then cover your construct reputation exams. Then flow onto your often
completed tests, then flow onto it slow taking assessments. But ensure every
check you automate, it saves time for a guide tester to focus on extra
essential matters.
Automation is not right here to update guide testers. Nor it
may. It is right here to take the repeated paintings away from guide testers
with the intention to use their complete attention and energy in locating new
testing situations and insects. (Read my article Misconceptions of check
automation)
Automate some tests which can be precious and time savers or
hard to do for manual testers. If you did that, the undertaking of automation
is completed.
#eight. Avoid GUI Automation whilst there may be an
alternate gift
GUI automation is usually harder than other forms of
automatic exams. So if there is a state of affairs whilst you can reap your
goal via no longer automating the GUI, but by way of some other techniques like
command line inputs, then the pleasant strategy is to keep away from GUI
automation.
For example, you need to test the installation of the
utility. The objective is to check whether or not the software installed or now
not in a selected surroundings. One approach is to start the installation and
click on at the “Next” button more than one times through your automation tool.
It may be problematic, time-consuming and it is difficulty to maintenance if UI
modifications. The different approach is to provoke the software set up with a
batch record giving silent arguments. The utility will silently deploy
displaying no GUI. The objective might be finished in less time and in a more
reliable way.
#nine. Use Automation for different useful functions as well
Automation is this kind of notable factor. You can achieve
such things from it which you don’t typically reflect onconsideration on.
Automation is not just about programming a manual take a look at case. Instead,
you may use automation to facilitate exceptional operations in your enterprise.
For example, you could use automation to create grasp facts
and setup configurations routinely for manual testers. So that they can begin
their testing as early as possible.
I can give one example from my very own enterprise. We
desired to exchange from our check case management tool. We had been the usage
of “Test Director” (now HP ALM) and desired to interchange to TFS (Team Foundation
Server). We had round 4000 manual Test Cases and Bugs in Test Director.
Transferring them manually to TFS could take approximately a month. So my
manager requested me to strive a few automation.
I dig the ones gear and determined out that Test Director is
the use of SQL server as its repository. For TFS, I observed out a device that
may examine take a look at cases and insects from an excel report, if they may
be written in a particular layout, and might insert them in TFS. The Rest of
the story is straightforward. I wrote an SQL query to fetch all check instances
and insects and exported them in an Excel File within the unique format. I then
used that tool which reads all test instances and insects from excel report and
inserted them in TFS. The entire process took best 3 hours. My supervisor
became very satisfied. I wish you get my factor too.
#10. Automation is software program development
If you expand excellent software program, it wishes first-rate
practices. It desires code opinions to put in writing best code. It wishes a
framework or layout pattern to be followed. It desires constant renovation.
Automation is largely software development. So all
first-rate practices you follow while you increase software program have to be
followed in doing automation. Automation Framework need to be there. Code
Reviews must be executed. Bugs of automation must be pronounced in the computer
virus repository. Source Code of automation have to be positioned under supply
manage, and so forth. The extra you treat it like software development, the
greater a hit automation may be.
Conclusion
This sums up the object in addition to the series of check
automation. I learned many stuff even as writing those tutorials and I wish you
analyze as nicely by way of analyzing. Test automation is an exciting and
rewarding profession. Doing it efficaciously isn't simplest beneficial for you
but for the agency as well.
Every day while working on check automation and its strategies,
I find new and thrilling challenges to solve. This collection changed into an
try and spotlight what ought to stumble upon on a journey of take a look at
automation. I hope I brought it proper and in a simple manner.
As constantly, I wait for your comments and hints. Feel
unfastened to write down your comments inside the feedback section. I could be
satisfied to pay attention from you and help you if needed. Thanks for
studying.
PREV Tutorial #6
- Get link
- X
- Other Apps
Popular Posts
Badly designed contracts fate public IT projects to failure
- Get link
- X
- Other Apps