Re: How to separate common Robotium Solo actions into a separate global class

50 views
Skip to first unread message

naveed

unread,
May 28, 2013, 1:09:21 AM5/28/13
to robotium-...@googlegroups.com
Make a separate global class with static members and call them by class name wherever needed.

On Saturday, May 25, 2013 11:29:52 AM UTC+5, Ukai wrote:

Could anyone please show me a simple example of reusable global functions that use solo? 

I'd like to separate common Robotium Solo actions into a separate global file.  Robotium test class is already extending ActivityInstrumentationTestCase2, so it cannot extend another class. Thanks!








naveed

unread,
Jun 1, 2013, 5:25:25 AM6/1/13
to robotium-...@googlegroups.com
use
public static solo = new Solo(getInstrumentation(), getActivity());
 in MainTesting class,

in Global class use MainTesting.solo to access that method

hope that helps
   

On Saturday, June 1, 2013 1:19:02 AM UTC+5, Ukai wrote:


Thank you Naveed for your reply and it makes sense.  Do you happen to have a code snippet that shows how to pass solo back and force? 
Reply all
Reply to author
Forward
0 new messages