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
-3
votes
2 answers

How to click in a view with a Robotium automation script?

There is a screen where we are searching for text and after that searched view shown. We have to click on that view (marked green on screenshot) to go for next page. I am not able to click on that view.
Shakir Husain
  • 11
  • 1
  • 1
  • 3
-4
votes
1 answer

How can i download robotium eclipse plugin?

Can't download robotium Eclipse plugin, getting the error shown: . What could be the reason?
-4
votes
2 answers

Assertion Failure while trying to assert amount of textviews in a list

Why is my assertion failing when I am trying to assert the amount of textviews in a list ? @Test public void testDeleteNote() throws Exception { int count= getNoOfTextViews(); // Checking if count is greater than 0. if (count > 0) { …
srinivasv
  • 125
  • 8
1 2 3
66
67