public class UITextTest extends ActivityInstrumentationTestCase2<ActivityMain>{
private Solo solo;
public UITextTest() {
super("com.android.helloworld", ActivityMain.class);
}
public void setUp()throws Exception {
solo=newSolo(getInstrumentation(), getActivity());
}
public void testUI()throws Exception {
boolean expected =true;
boolean actual =solo.searchText("This") &&solo.searchText("is");
assertEquals("This and/or is are not found", expected, actual);