Translating Web App Functional Testing To Mobile
Sauce AI for Test Authoring: Move from intent to execution in minutes.|xBack to ResourcesBlogPosted
Sauce AI for Test Authoring: Move from intent to execution in minutes.
|
x
Technological advancements and the detonation of devices across multiple platforms means hardware and software developers get a lots more difficult job. They have to continue up with the demand to develop and wheel out new ware. One of the most significant matter is accounting for the differences in system response, when responding to mobile traffic preferably than to internet traffic.
Applications must be test to make sure they run responsively on key platforms and across numerous networks. Effective functional examination eases the pressure on device manufacturers while let application developers the time to collect applicable prosody that improve merchandise quality.A New Set of ChallengesTesting mobile applications is completely different and importantly more complicated than testing traditional desktop and net applications. Mobile devices don ’ t just emulate the desktop environment — they have their own set of requisite. Mobile app testing is far catchy because of the undermentioned key aspects.Device Variation:Mobile covering run on devices that have different:
Operating Systems (OS) such as iOS, Android, Windows and BB;
Versions of those OS; and
Manufacturers such as Apple, Samsung, Nokia, Motorola and LG.
When an application needs to run on multiple OS, device, and varied screen size, QA teams are faced with the challenge of ensuring the application functions in every environment. The below graphic of the iOS support matrix solely shows the complexity with a single series of devices and OS eccentric. [caption id= & quot; attachment_12588 & quot; align= & quot; aligncenter & quot; width= & quot; 587 & quot;]

source: iossupportmatrix.com
Availability of Mobile Testing Tools:Desktop and web application-based examination instrument can not be utilise for testing roving applications, so a new testing framework is required. Some of the frameworks presently available for write examination scripts are:

Network Challenges:You must be able to effectively emulate various bandwidth rate, because your end users will be control on a multifariousness of networks and bandwidths. You also must be able to screen geographically isolated loads accurately to intend real-world traffic.Screen Size and Densities:With the variety of blind sizing and compactness usable today, you must also be able to test your mobile app on different screen form so that it:
Fits on small screens;
Takes reward of the additional space on bigger screens while still look good on pocket-sized blind. For representative, the difference in screen size between iPhone 4 and iPhone 6+;
Is optimized for both landscape and portrayal orientations.
Peripheral Mode:When testing in mobile, there are physical elements that too need to be study, unlike with web coating. You may take to consider wireless and wired peripheral mode testing.
Wireless to the gimmick such as near field communication (NFC), Bluetooth or style; and
Wired national to the device such as a earpiece jack or extraneous testing with cc reader or bar codification scanner;
Native Applications and Browser-Based Applications.
These are the variables that come with a mix of native and browser-based applications. Native applications reside on the exploiter ’ s twist and communicate over HTTP (s). The browser-based covering utilize a modified version of a browser to approach applications online. As many company use both applications to offer solutions to their customers, you must endorse examination of all types of mobile applications.
Taking Challenges on & quot; Strategy First & quot;
What do these test challenges mean for web developer and site owners? Primarily, for every web covering design, you must also address a scheme to test the product in the roving space. Building an app with all the characteristic and functionality needed by the node and exploiter is significant. Having a strict mobile prove plan in place before the nomadic app is deployed is even more all-important to its success. Mobile covering are go more and more sophisticated, importantly increasing the requirement for functional examination. To tackle this, organisation that involve app testing are constantly search alternative to traditional manual testing. Mobile automation examination is a highly effectual approach to mobile app QA. It provides significant concern returns when execute using the rightfield tools and infrastructure, while factor in cross-platform challenges. From sites to web applications to native mobile application, test automation instrument bring full-featured functional testing to mobile platforms.
Strategy for Mobile Test Automation
Automated testing can sometimes be a black hole. The best thing to do is automate something and measure that against a exact aim that can be mensurate in a realistic timeframe. Knowing your hard or soft Return on Investment (ROI) goals help as well.

Mobile testing involve a balanced approach, and the key is understanding your fellowship ’ s mobile strategy.
Target Device Selection:You simply can not prove application on every gimmick that subsist. However, cloud-based twist emulation tools allow you to increase that breadth more and more. The best approach is analyze the market and choosing a representative device that reduces the effort of executing multiple test cases. A few element to study are OS version, screen resolution and form divisor (smartphone and tablets) while also insure the multi-device and multi-platform compatibility of the app.
Emulators:Emulators mimic the software and ironware environments found on actual devices and provide splendid pick. Options like the ability to bypass the network and use a real-world environment via modem where existent users run and interact with those applications on their devices. At the same clip you will need to test on a physical device, but this can usually be done more ad-hoc for most applications. Find the right mix of emulator and physical devices to cater the better results!
SUSA automates exploratory testing with persona-driven behavior, catching bugs that scripted automation misses.
Tool Selection Criteria:Test mechanisation tools make a framework to systemize the testing of mobile native and web apps across platforms. For instance, Appium is one of the few frameworks that can develop cross-platform scripts in multiple scripting lyric. Collaboration between iOS and Android developer is important to ensuring every ingredient that looks the like has the same accessibility label and build a testable app. An crucial pace in this process is creating a list of requisite to review when choose a tool for valuation. Some questions to ask as you find your requirement are:
Am I look for a Behavior Driven Development (BDD) framework?
Do I involve to support aboriginal, hybrid, mobile initiative (responsive web design) or mobile web?
Do I need to back diverse mobile program such as Android, iOS or Windows?
Am I looking to test locally or in the cloud to reduce the cost of ownership?
Am I looking to test against emulator or real device?
Do I need a framework that support cross-platform scripting?
Do I need a model that offers an easy interface for examination to auto-generate scripts? For instance, scripts can be automated without any programming or scripting speech knowledge.
Am I rehearse continuous integration and take a tool that integrates into the broader environment seamlessly?
Am I looking for a framework that will attract existing developer to contribute to my automation goals?
Take a step rearwards and consider your resources. Does your QA squad have sufficient programming noesis for automation development? For automation, you must have citizenry with some programming noesis. If not, do they have the technical potentiality to easy adapt to the new technologies? Answers to these questions will help guide your team to picking the best framework, and also understand the capabilities of the team to execute on examine.
Automation Environment:Automation environment and setup depends on the approach to testing. Automation testing approaches are either cloud-based or local. Cloud-based testing provides web-based automation platforms that can be access from anyplace in the cosmos with full internet connectivity. It is one standard way in which one can achieve native and hybrid character of test automation. And the “ automation-from-anywhere ” characteristic is a big reward. You can run scripts from your test model on most of the cloud solutions. Local-based screen involves setting up puppet in a test environment and leveraging either emulators/simulators or physical devices to automate testing using popular open-source puppet such as Appium, Espresso, or Kif. The additional consideration with on-premise examination is the breadth you can cover, and the time to set up these surroundings.
Mobile Testing, The Practice
Though the proficiency and puppet used to automate mobile application testing are complex, we learn a lot from the years of client/server background applications. But a few extra mechanism are required for mobile automation, and these are:
Using a roving test model such as Espresso or Kif get it leisurely for developers and examiner to pen scripts in the aboriginal programming language and opens the threshold for pair programming;
Identify the requirements and categorize them based on the mobile application type—Native, Hybrid or Mobile Web;
Identify the range and device that meets the requirement;
Identify an mechanization puppet that will a best fit. Filter the best tools by performing Proof of Concept (POC) that would demonstrate that the mechanization can produce existent answer;
Design the framework architecture base on the initial requisite.
Test automation scheme runs in parallel with the model design, which details the technical scope, test environment, and extend scripts on emulators/physical gimmick with appropriate automation based approach.
Mobile Device Matrix:In addition to the testing mechanics, you feature to deal the matrix of device type, gimmick OS, and twist browsers to test against. The size of this matrix is significantly larger than in web application testing because of the dependency of device types since each have different screen resolution possibilities and different features. For example, the new thumb print authentication in some iPhones is not usable in others, but applications can leverage this feature. Templates for building a mobile mechanization twist matrix require:
Operating Systems - customizations, missing library, driver issues;
Screen Size - rendering issues, usability, miss layouts;
Pixel Density - density independence, miss layout;
Aspect Ratio - X, Y calculations, overlapping panels, display matter;
System on a Chip (SoC): ironware performance, education set, battery signal;
Carrier: network protocol, swiftness, responsiveness, packet loss.
Conclusion
To build a successful test mobile automation strategy, all stakeholders must understand the occupation value of automation. Further, all squad, including development, want to buy in to the summons. Picking the correct automation instrument and building the right examination surround are typically the most hard challenge when implementing a successful test automation process. However, you do need to focus on the long-term success of your production, so it ’ s helpful to speak these important interrogative when starting the process:
What are your mechanisation object?
Will your current development processes need to change?
What test environment support do you need?
What skills will you need?
Process and Organization + Environment + Technical + Resources + Scope and Roadmap = Test Automation Strategy. Mobile testing tool are relatively new, and developing an automation strategy specific to your organization ensures that you will get the most concern value out of your automation creature. A all-important piece to place the cornerstone for peregrine app examination is build a well-balance screen portfolio that includes machine-driven unit testing, integration examination, WebView essay, automated UI testing and explorative manual app testing of the UI. Appium prove great promise in this area. Making the leap into wandering screen today is not easy. The good news is a there are many tool that are be developed that support mobile testing efforts, but the biggest part of the challenge is integrating your quiz into your existing environment. The crucial thing to know is that just because it is difficult does not imply you should reduce your travail compare to your web application. This would result in a disconnect of software caliber, and could finally destroy your nomadic application strategy from within.
Greg Sypolt (@ gregsypolt) is a senior technologist at Gannett and co-founder of Quality Element. He is a passionate automation technologist search to optimize package development caliber, coaching team members how to write great automation scripts, and helping testing community become best testers. Greg has spent most of his calling work on package quality - concentrating on web browsers, APIs, and mobile. For the past 5 years he has focused on the creation and deployment of automated test strategies, fabric, tools, and platforms.
Automate This With SUSA
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.
Try SUSA FreeTest Your App Autonomously
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.
Try SUSA Free