Closed GoogleCodeExporter closed 9 years ago
Original comment by renasr...@gmail.com
on 14 Dec 2010 at 10:02
u should pass the solo object or u have to create solo object in your
Common.java
Example:
tescase.java has your test method
msolo = Solo(getInstrumentation(), getActivity());
test1() {
Common.clickontext(solo,text);
}
Common.java should contain.
public static void clickontext(Solo solo,String text) {
solo.clickOnText(text);
}
Original comment by anandpai...@gmail.com
on 14 Dec 2010 at 11:41
Please see above answer.
Original comment by renasr...@gmail.com
on 16 Dec 2010 at 3:53
I did write my tests as suggested by Anand. In the above scenario let's say I
have created a bunch of methods in Common.java and also I created multiple
classes similar to Common.java which provide different reusable functionality.
Each time I invoke a method in Common.java or other classes I am passing solo
object(from testcase.java), instead is there a way to create a solo object in
Common.java.
Anand did mention that this can be done but an example/suggestion would be
great.
Original comment by kpsrika...@gmail.com
on 24 Nov 2011 at 10:17
Original issue reported on code.google.com by
entrang2...@gmail.com
on 14 Dec 2010 at 9:59