Robotium is an open-source test framework which is used for writing automatic grey-box test cases for Android applications. Using Robotium, test case developers can write function, system and acceptance test scenarios, spanning multiple Android activities.
Robotium can be used both for testing applications where the source code is available and applications where only the APK file is available.
Step 1 − Prerequisites for using Robotium is Java SDK (minimum 1.6). First, install Java on your system by following below steps.
Step 2 − Download Android Studio from Android Studio
Step 3 − Install Android images and tools.
Step 4 − Create Android Virtual Devices.
Step 5 − Robotium Jar file Download Robotium Jar file from RobotiumTech
To test an App with Robotium, follow the steps given below
Step 1 − Create a test Project in the Android Studio named as “RobotiumTest”.
Choose all the default options until you reach to the main page.
Step 2 − Copy the Robotium jar file into the Lib folder of the project.
Step 3 − Add the dependency in build.gradle file under src folder.
androidTestCompile 'com.jayway.android.robotium:robotium-solo-5.5.3'
Step 4 − Sync the Gradle.
Step 5 − Create the Test class as shown below
Step 6 − Save all changes and ensure there are no errors.
Step 7 − Now, run the test case. If the test case is successful, below shown output will be displayed.
|
|
Mobile Testing Related Tutorials |
|
---|---|
Selenium Tutorial | Software testing Tutorial |
Mobile Security Tutorial | Mobile Marketing Tutorial |
Mobile Testing Related Interview Questions |
|
---|---|
Manual Testing Interview Questions | Mobile Plant Operator Interview Questions |
Selenium Interview Questions | Mobile Testing Interview Questions |
Mobile Device Management Interview Questions | Automation Testing Interview Questions |
Software testing Interview Questions | Synchronized Multimedia Integration Language (SMIL) Interview Questions |
Mobile Security Interview Questions | Mobile Developer Interview Questions |
Mobile Application Testing Interview Questions | Mobile Marketing Interview Questions |
Mobile Application Architect Interview Questions |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.