Mobile, Web and Custom Software



The user interface (UI) is a crucial a part of the practicality of automaton mobile apps, therefore you ought to be ready to perform intensive UI tests. Google’s mona El Mahdy has revealed on the Google software package Testing web log a post that presents four ways to check automaton UI, getting to produce UI tests that are each quick, reliable and simple to rectify.  

UI testing is outlined as “ensuring that your application returns the right UI output in response to a sequence of user actions on a tool. mona El Mahdy starts with a reminder of the importance of doing the maximum amount unit testing as potential. To check the android UI, she recommends using java that she defines as a “great framework for running UI actions and verification within the same process.” 

 Strategy 1: victimization an End-To-End check as a UI test 

The problem with End-To-End (E2E) tests is that they need that everything (backend servers, networks, etc). works fine. UI tests will work with simply a simulation of those conditions. Future ways aim at fixing the issues of E2E tests. 

 Strategy 2: tight UI Testing using pretend Servers 

This approach limits the take a look at size, however, you would like to take care of a separate fake server still as you take a look at. it’s tough to rectify as you’ve got to examine the take a look at and therefore, the native server. 

Strategy 3: Dependency Injection style for Apps 

Dependency injection is used within the android application to swap real module implementations with pretend ones. To realize this goal, you’ll use Dagger, an open supply dependency contraption for android and Java. 

Strategy 4: Building Apps into Smaller Libraries 

In this strategy, you build your android application into tiny components/libraries, every of them having its own UI resources and user dependency management. Once you have tiny parts with dependency injection support, you’ll build a look at applications for every part. 

The conclusions of the post are: 

  1. Don’t write E2E tests rather than UI tests. Instead, write unit tests and integration tests beside the UI tests.
  2. Tight tests are the thanks to go.
  3. Use dependency injection whereas coming up with your app.
  4. Build your application into tiny libraries/modules and look at each in isolation. You’ll then have many integration tests to verify integration between parts is correct. 
  5. Componentized UI tests have tried as abundant quicker than E2E and 99%+ stable. Quick and stable tests have tried to drastically improve developer productivity.”


Enjoy this blog? Please spread the word :)