public class testmm extends ActivityInstrumentationTestCase2<MainActivity>{
private Solo solo;
@SuppressWarnings("deprecation")
public testmm(){
super("com.example.texthello", MainActivity.class);
}
@Before
public void setUp() throws Exception {
solo = new Solo(getInstrumentation(), getActivity());
}
@After
public void tearDown() throws Exception {
}
@Test
public void test1() {
solo.clickOnButton("Button");
}
@Test
public void test2() {
solo.clickOnButton("Button2");
}
@Test
public void test3() {
boolean expected = true;
boolean actual = solo.searchText("Hello") && solo.searchText("world");
assertEquals("This and/or is are not found", expected, actual);
}