| 1. |
What do you mean by Robo-electric testing framework? |
|
Answer» Testing an Android application on a device or emulator is not always easy. It usually takes a LOT of effort and time to build test cases. To ADDRESS this challenge, a robotic testing framework is considered. Using the Robolectric framework, Android tests can be run directly on desktop JVMs (Java Virtual MACHINES), without the need for a device or emulator. Thus, you don't need to set up anything extra to run Android tests within your development environment. It makes Android application testing FASTER and more reliable. Rather than using classes in Android, Robotetrics used shadow objects. If Robolectric implements a method, this method call is forwarded to the shadow object and it behaves similarly to the Android implementation. In cases where a shadow object does not implement a method, it returns a default value such as null or 0. |
|