Test Automation-Best Practices
Test Automation-Best Practices
B est Pr actices
Which
test
C ases
should be automated?
A test case or use case scenario is a simulated situation in which a user performs
determinate actions when using a particular app. Some typical test cases can be
automated and it would be a very idea to do so to save money, time and keep users as
happy as possible!
Depending on your app, you may want to writes specific test scripts for certain features
and actions. Nonetheless there a few criteria to decide which tests to automate.
TestObject GmbH
Which
test
C ases
should be automated?
1. A utomate
There may already be a number of tests that youre manually running as routine
tests to check basic functionality on different devices and after every minor
update.
Those tests might be a good start for test automation, since they are executed
repeatedly and running them manually might lead to errors, such as forgetting
a step, so that the results might not be reliable.
Above all performing repetitive test is time consuming and extremely boring,
so dont let the talent of your testers get wasted on something a script can do
better.
TestObject GmbH
Which
test
C ases
should be automated?
2. A utomate
Automated test cases that are easy to automate to have positive results on
your ROI: it will take a little time to write effective scripts that will save time
and money in the long run.
TestObject GmbH
Which
test
C ases
should be automated?
3. A utomate
You can automate test with conditional actions, which have a predictable
results e.g. if you click on the icon, the app must be launched.
Those kind of tests, which state the obvious are not obvious at all. There are
apps which pass every in-app test, but when a user tries to launch it, nothing
happens.
TestObject GmbH
Which
test
C ases
should be automated?
4. A utomate
Manual testing can be tricky at times, thats when automated testing get his
big spotlight.
Software testing is always tricky but it becomes even trickier when it comes to
mobile app testing. Every device is different and every manufacturer changes
Android a little bit to personalize it, so manual testing can become tedious and
complicated.
Luckily for us we can automated those tests so to get the exact and right
information that we need to know about our app.
In conclusion: automate generic processes as much as possible so that you
have time to look in detail into issue and bugs.
No app is going to be perfect, but you can try to get as close as possible,
because end-users are unforgiving people!
TestObject GmbH
Which
test
C ases
should be automated?
5. A utomate
Some tests cannot be performed manually, i.e. you maybe can perform them
manually, but you just see that something isnt working, but you dont know
why.
Performing an automated test in this case can also indicate the cause of a
certain action/series of actions not working. Again saving time, saving money
and boosting your ROI.
TestObject GmbH
Which
test
C ases
should be automated?
6. A utomate
TestObject GmbH
Which
test
C ases
should be automated?
7. A utomate
Frequently used functionalities come often with high risk conditions, for both
the device and sensitive user data. Without proper testing, apps might have
negative effects on the end-user device, such as:
Loss of functionality ( e.g. loss of data connection)
Unexpected high data usage
Battery draining 2-3 times faster than normal
Security or privacy exposure.
Some apps ask more permission than actually necessary and data leakage can
cause unwanted and unnecessary exposure of the users data.
TestObject GmbH
10
TestObject GmbH
TestObject GmbH
11
12
You can put all the pieces together later, grouping them, but making sure that
every small part is working properly. You can also write test as you develop
the app, instead of finishing one thing and then starting with the tests.
Test automation is all about saving time, so finding bugs and issues early in
the app code, makes sure that it will a quick fix, or at least there is not that
much code to check.
When grouping tests, you create test suites; when testing an app you can run
the whole suite or you can specify which tests in the suite you do not want to
run in a specific test cycle.
Tests can be organized by functional area, major/minor division in the
application, common function or set of test data. Tests can also be run
randomly or you can specify the order in which the tests are performed.
TestObject GmbH
13
What
to
K eep
in
TestObject GmbH
What
to
K eep
in
Regression test for compatibility are very important as well: device and OS
fragmentation have to be taken into account when updating apps. Regression
tests are meant to check if the recently made changes have broken something
that was working before, not only on the latest device with the latest OS version
but on older devices with older OS versions as well.
Automated testing is now more important than ever before: apps updates have
to be released faster to the market, making app development a continuous
development process. Tools for continuous integration are designed to help
you keep track of bugs and issues as you go.
Whether automated or manual, mobile app testing should be done in the right
way.
TestObject GmbH
14
TestObject GmbH
Neuendorfstr. 18b
D-16761 Hennigsdorf
T +49 (0)3302 2097320
Email: info@testobject.com