Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Most Popular Android UI Automation Testing Tool Andrii Voitenko

Similar presentations


Presentation on theme: "The Most Popular Android UI Automation Testing Tool Andrii Voitenko"— Presentation transcript:

1 The Most Popular Android UI Automation Testing Tool Andrii Voitenko
Robotium The Most Popular Android UI Automation Testing Tool Andrii Voitenko

2 Index Main Info & Benefits
Installing and creating Robotium Project & Class Most used Robotium methods Locating Elements in Android application Conclusions

3 Main Info The tool is released under Apache License 2.0.
Its founder and main developer is Renas Reda Version was released on January 5, Robotium is similar to Selenium, but for Android It has support for a vast range of Android features such as activities, toasts, menus and context menus

4 Benefits Easy to write Simple API (All Methods are available only in Solo Class) Automatic Delays & Timings No need to write code, when navigating from one activity to another activity. Test Android native apps as well as the hybrid app. Able to handle multiple Android activities. Less time to write tests as the API is quite simple. Test cases are Robust, due to runtime binding to UI components Fast test case execution Integrates easily with Maven and ANT.

5 Prerequisites: Download Java Download ADT bundle
Step #1: Open eclipse contains your android application to be tested.

6 Step #2: Create new Test project. Step #3: Give it a name
Step #2: Create new Test project. Step #3: Give it a name. Step #4: Select the android application.

7 Step #5: Test project will be created in the eclipse workspace
Step #5: Test project will be created in the eclipse workspace. Step #6: Download Robotium. Step #7: Configure build path. Step #8: Add Robotium to the libraries. Step #9: Robotium Test project is created successfully. Now it is possible to create classes under the project and start writing the test cases.

8 Creating Robotium Class #1: Import the Main Activity class the Robotium test project. #2: New class will inherit properties from ActivityInstrumentationTestCase2 class #3: Creating an Instance of Solo class #4: Creating a constructor for the Test class #5: Creating setUp (to Initiate the Instrumentation) and tearDown (to close the activity after the test has been completed) methods

9

10 Step #1: Open eclipse contains your android application to be tested
Step #1: Open eclipse contains your android application to be tested. Step #2: Select an XML file, you want to automate. Step #3: Click on the element to locate, check its ID.

11 Conclusions Robotium is the most commonly used Android Test automation tool. Robotium Test cases can be executed on Android Emulator as well as on the real device, we don’t need to write any additional specific configuration code for it. Robotium Can be easily written in maven project also, and it can be run through continuous integration tools. Thus, Robotium is very useful in writing Android Test automation scripts.

12 Thank you for your attention!


Download ppt "The Most Popular Android UI Automation Testing Tool Andrii Voitenko"

Similar presentations


Ads by Google