Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

robotium testing wait time between each clicks

in robotium testing, is it possible to set a wait time between clicks? For example, I have 2 buttons(A & B). I want robotium to click on button A and then 20 seconds later click on button B.

like image 878
xiaowoo Avatar asked Aug 26 '11 22:08

xiaowoo


People also ask

How does Robotium work?

Robotium aims to make writing tests for simulating user actions such as touching, clicking, and typing simple. It can be used if you have the source code for the app or if you only have the apk files, and can run on either emulators or real devices.

What is Robotium test?

Robotium is an open-source test framework for writing automatic gray-box testing cases for Android applications. With the support of Robotium, test case developers can write function, system and acceptance test scenarios, spanning multiple Android activities.

Where can we execute Robotium test cases?

Robotium Test cases can be executed on Android Emulator as well as the Real device, we don't need to write any specific configuration code to run Robotium test cases on the Real device. Robotium Can be easily written in the Maven project also, and it can be run through continuous integration tools.


1 Answers

u can use this code its working fine

solo.clickOnButton(0);

solo.sleep(20000); // 20 seconds

solo.clickOnButton(0);

like image 69
Narasimha Avatar answered Oct 19 '22 19:10

Narasimha