Connecting Test Automation to Specific App Features and Devices

Having the right Test Automation plan helps bridge gaps and fragmentations in the complex mobile environment.

Figuring out the best Test Automation plan is one of the biggest frustrations for today’s digital teams.

Organizations struggle to develop cross-platform Test Automation that can fit with their Continuous Integration cadence, their regression cycles and other elements of their software development lifecycle (SDLC).

On top of the known complexities associated with mobile environments such as the network, the various OS versions, competing apps, there’s also the growing disconnect between the application being tested, the Test Automation scripts and the device.

When an application vendor develops its Android or iOS app, usually the mobile app development team would mark in the property files what features it uses and supports (i.e. GPS, TouchID, Doze, etc.) and what permissions this app requires, such as HTTP connection, GPS and File system.

For the app developer, once these property files are developed, his role in defining the app capabilities is done — which now pushes the test responsibility to the testing teams.

The problem that now arises is, how do these testing teams associate the right test cases based on the app capabilities that are only supported by certain mobile devices?

The screenshot below is taken from a Google Android Developer guide. It’s an example of a line that would usually be in an application Manifest.MF file within the App.APK file. What it’s showing here is that this specific app would require the use of the phone’s camera – this will trigger the user to allow camera access in the app’s first launch post-installation.

While that’s a common case, what would a tester do in a case where the requirement is for TouchID, ForceTouch, Android Doze or Multi-Window (coming in next Android N release)?

These features would complicate the test scenarios and Test Automation because only specific devices and/or OS versions would support these new OS capabilities. Without automatically planning and knowing which test should be executed against which device/OS combination, there is simply no way to manage these tests in today’s mobile app landscape. As a result, many organizations will lean on manual testing as a way to overcome the test delta for newer features that are unique to device/OS combinations. But when this gap grows, test cycles slow down and if not addressed quickly, the balance between manual and automation tests weighs toward manual as more enhancements are introduced in the app.

Break the App-Device-Test Disconnect

The main point here is to continuously make sure that the Test Automation suite supports all app capabilities, and is able to be executed against the right mobile platforms based on all the supported capabilities. So how can you overcome this challenge? Continuing to add to your “manual testing debt” is definitely not a sustainable solution.

Development and testing teams should work together closely, especially when a new supported feature, permission request or other capability is added to the Android app Manifest.MF file (see example to the left) or Apple Info.plist files. Whenever this happens there should be a call to action that requires updating the test execution rules and redirecting existing or newly developed tests for the right devices and platforms.

There are a few ways of addressing this call-to-action:

  • Testing teams receive a new developer build with a change log (pointing to the manifest.mf and info.plist changes)
  • Testing teams validate that there are existing tests for the above changes

⇒ Exists –> OK

⇒ Doesn’t exist –> Implement delta related cases (see the Facebook example above)

  • Testing teams, including developers, are synced on the right target devices (smartphones, tablets, wearables) that match the new and older test cases
  • Schedule test execution with proper rules and redirections to the right devices

In the case of an Android app that supports TouchID within the app Manifest.MF

(uses-permission android:name=”android.permission.USE_FINGERPRINT” /)

the dedicated Test Automation script will only be targeted against Samsung Galaxy S7 as a supported device.

For an iOS application that would use ForceTouch or 3D Touch through the UIApplicationShortcutItems, the developer would typically identify which of the menu options will be exposed to the user for testing to make the test plan easier to frame and develop.

Keeping Test Automation, Apps and Devices Aligned

As mobile operating systems evolve and introduce new functionalities, Test Automation suites are expected to become more fragmented. In order to not lose any existing investment in automation and at the same time increase Test Automation coverage and reduce Manual Testing, it’s important to identify the test suite gaps in your automation and pinpoint the devices that support your unique app features.

By doing this, you’ll be able to synchronize your test elements, your apps being tested and the devices in your test lab.

It’s important to note that “test coverage” will be defined differently based on a company’s industry, its organizational maturity in the digital space and its application types (mobile web, responsive web and/or native apps).

Eran Kinsbruner
Eran Kinsbruner is the mobile evangelist at Perfecto and the author of The Digital Quality Handbook, as well as a monthly columnist at InfoWorld.com. He is a software engineering professional with nearly twenty years of experience at companies such as Matrix, Sun Microsystems, General Electric, Texas Instruments and NeuStar. He holds various industry certifications from ISTQB, CMMI, and others. Eran is a recognized mobile testing influencer and thought leader, as well as an experienced speaker in the major software engineering conferences. He is also a patent-holding inventor for a test exclusion automated mechanism for mobile J2ME testing, public speaker, researcher, and blogger. He can be found all over social media, including on Facebook, Twitter (@ek121268), LinkedIn, and his professional mobile testing blog.

The Related Post

Developers of large data-intensive software often notice an interesting — though not surprising — phenomenon: When usage of an application jumps dramatically, components that have operated for months without trouble suddenly develop previously undetected errors. For example, the application may have been installed on a different OS-hardware-DBMS-networking platform, or newly added customers may have account ...
Introduction A common issue that I come across in projects is the relationship between test automation and programming. In this article I want to highlight some of the differences that I feel exist between the two.
This article was developed from concepts in the book Global Software Test Automation: Discussion of Software Testing for Executives. Introduction There are many potential pitfalls to Manual Software Testing, including: Manual Testing is slow and costly. Manual tests do not scale well. Manual Testing is not consistent or repeatable. Lack of training. Testing is difficult ...
Utility: A program that performs a specific task related to the management of computer functions, resources, or files, as password protection, memory management, virus protection, and file compression. Tool: A program or application that software development teams use to create, debug, maintain, or otherwise support other programs and applications. The term usually refers to programs that can be combined together ...
Elfriede Dustin of Innovative Defense Technology, is the author of various books including Automated Software Testing, Quality Web Systems, and her latest book Effective Software Testing. Dustin discusses her views on test design, scaling automation and the current state of test automation tools. LogiGear: With Test Design being an important ingredient to successful test automation, ...
When it comes to performance testing, be smart about what and how you automate Listen closely to the background hum of any agile shop, and you’ll likely hear this ongoing chant: Automate! Automate! Automate! While automation can be incredibly valuable to the agile process, there are some key things to keep in mind when it ...
LogiGear Magazine – April 2013 – Test Automation
Framework: An abstraction in which software providing generic functionality can be selectively changed by additional user written code, thus providing application specific software. A software framework is a universal, reusable software platform used to develop applications, products and solutions. Harness: A collection of software and test data configured to test a program unit by running it under varying conditions and monitoring ...
Test automation provides great benefits to the software testing process and improves the quality of the results. It improves reliability while minimizing variability in the results, speeds up the process, increases test coverage, and ultimately can provide greater confidence in the quality of the software being tested. However, automation is not a silver bullet. It ...
Automated Testing is a huge part of DevOps, but without human-performed quality assurance testing, you’re increasing the risk of  lower-quality software making it into production.  Automated Testing is an essential DevOps practice to increase organizations’ release cadence and code quality. But there are definitely limits to only using Automated Testing. Without human quality assurance (QA) ...
“Happy About Global Software Test Automation: A Discussion of Software Testing for Executives” Author: Hung Q. Nguyen, Michael Hackett, and Brent K. Whitlock Publisher: Happy About (August 1, 2006) Finally, a testing book for executives!, November 17, 2006 By Scott Barber “Chief Technologist, PerfTestPlus” Happy About Global Software Test Automation: A Discussion of Software Testing ...
Take 5 and test your knowledge on the Software Testing essentials covered in our March 2019 issue. Good luck!

Leave a Reply

Your email address will not be published.

Stay in the loop with the lastest
software testing news

Subscribe