Questions tagged [robotium]

Robotium is an Android test automation framework that has full support for native and hybrid applications. Robotium makes it easy to write powerful and robust automatic black-box UI tests for Android applications. With the support of Robotium, test case developers can write function, system and user acceptance test scenarios, spanning multiple Android activities.

Robotium is a test framework that allows to implement white-box test cases for native Android applications. It supports black-box testing too (i.e. without source code and only when the apk file is available) as long as the apk file and the test project are signed with the same certificate signature.
To achieve this it might be required to resign the apk file. Consequently pre-installed applications can be tested on rooted phones as well.

The Robotium main class, Solo, provides methods to click or tap on a number of views identified by id, index or containing text strings, e.g.:

Solo solo = new Solo(getInstrumentation(), getActivity());
solo.clickOnText("Release rabit"); // Click on some text
solo.clickOnButton("Ok");          // Click on confirmation button

It also allows to assert that some message is currently displayed by GUI:

// Assert message is displayed
assertTrue(solo.searchText("Rabit is on the field")); 

It also provides methods to send key events, capture screen shots, wait for the named activity to appear and others.

993 questions
-1
votes
2 answers

Robotium isn't scrolling to a text view

I have the following layout in my fragment and activity: As you can see, Robotium fills in the text for the EditText views. It also scrolls to and fills in the "Team" field which follows the "Player Name". However, there is a Spinner after that,…
Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
-1
votes
1 answer

Appium and Robotium - running tests remotely

From what I have read Appium has a client\server architecture which allows you to run the tests from one machine (client) against devices plugged into a separate machine (server). Is this true? Does Robotium support this?
Daryn
  • 3,394
  • 5
  • 30
  • 41
-1
votes
1 answer

Reading Log from android app through Robotium test project

I need to read the logs from the android application project through robotium test project. Please help me out. Thanks
user2879697
  • 69
  • 1
  • 10
-1
votes
1 answer

android app with it's robotium test code

Where can I find an android app code with its robotium test code online? I'm looking for something really simple that can just display written content when pressing a button or something.
Tsedu
  • 1
  • 2
-1
votes
1 answer

asserTrue API is not displaying in Robotium

I am using Robotium 5.0.1. assertTure or asserFalse API is not displaying in my eclispe IDE. How to enable this option? Thanks
-1
votes
1 answer

Robotium click on hyperlink using clickOnText() not working

I have a "Call Us" hyperlink in a TextView. When the user clicks on it a dailog box is opened with two buttons "OK" and "Cancel". I am trying to test this feature using robotium but solo.clickOnText("Call Us") does not open the dialog box nor does…
Nisha
  • 149
  • 1
  • 2
  • 9
-1
votes
1 answer

Access external files (Outside of AVD device) using Android JUnit

I am using Robotium to automate Android application. Created a android test project for the same. Inside project folder I want to keep some files like .properties/.xls etc. and want to read from /write to those files. For example, I have one…
Sitam Jana
  • 3,123
  • 2
  • 21
  • 40
-1
votes
1 answer

Why the Source Package not getting identified when created using Android Test Project in Eclipse Helios

Am a QA engineer for the Android/IOS apps. As well as new to automation. I am trying out to automate some apps using Robotium. Referring to the link http://testdroid.com/tech/54/automated-ui-testing-android-applications-robotium But when I created a…
Priety
  • 308
  • 1
  • 4
  • 19
-1
votes
3 answers

How do i assert text in the android webview

I have an application to test which has many webviews . i want to assert some strings in the webviews .i use robotium for testing and as robotium as of now doesn't support webviews i am in a fix .please help me in this .
srinivasv
  • 125
  • 8
-1
votes
2 answers

Does Robotium support OpenGL?

I want to create android automation tool for my own app with the help of either Robotium or NativeDriver. I have used OpenGL GLSurfaceView for 3D objects in my android app. Could anyone tell me which of the above (Robotium/NativeDriver) supports…
Vishal Tavande
  • 1,299
  • 2
  • 9
  • 8
-2
votes
1 answer

Parametrization of robotium

I have been trying to implement database in robotium so that i can parametrize and make it data oriented but i am completely lost please guide me.My robotium code is mentioned below please guide me on how can i open a database connection with…
Daniel Euchar
  • 1,740
  • 5
  • 28
  • 45
-2
votes
1 answer

Can I close external applications with Robotium?

I have my Android app and there are 4 buttons. Each of them calls an application like Facebook app, Twitter app, default email app and phone call. When I am testing these buttons with Robotium, is it possible to close the external applications from…
Speise
  • 789
  • 1
  • 12
  • 28
-2
votes
2 answers

How to handle webview element in robotium?

I am working on native app where the one of the page is partially in webview. Using Uiautomatorviewer the whole webview is highlighting as a whole no inside elements are recognizable. How to handle this page in robotium?
-2
votes
1 answer

Export Robotium test cases into Appium

Is it possible to export test cases written with Robotium into Appium? Until now I used Robotium to test an Android app, but I want to switch to Appium and not loose my work.
Lucy
  • 1
  • 1
-2
votes
1 answer

Getting nullpointer exception when try to get data from excel ?

i Tried to get data from excel in java. if i execute it as normal java program i am getting data from excel and it is getting printed in console.But when i put it my Robotium test project, i am getting null pointer exception(file or directory not…
Vaishnavi
  • 23
  • 4
1 2 3
66
67