0

Can anyone tell me how can I write Robotium tests for non activity classes? I have seen lot of example for activity classes but not for non activity classes. Is it possible?

Thank You.

quad
  • 872
  • 3
  • 17
  • 37

1 Answers1

0

Robotium is mostly useful for interacting with your app in a test case. These interactions are usually with activities.

If you want to test other classes, there's no need to use Robotium. You might look into Robolectric for running tests in the JVM on your computer.

Edward Dale
  • 29,597
  • 13
  • 90
  • 129
  • I have a separate class with all the listeners like the onClick,onLongClick,onItemSelectedListener etc. So this is basically for interaction with the application. What do you suggest I should do? – quad Aug 15 '12 at 08:15