public void test01AboutInMenuShouldOpenDialog() { RobotiumTestUtils.openMenu(solo); solo.clickOnText("About"); assertTrue(solo.searchText("KouChat v")); assertTrue(solo.searchText("Copyright")); assertTrue(solo.searchText("LGPLv3")); solo.clickOnButton("OK"); assertTrue(solo.searchText("Welcome to KouChat")); }
public void test99Quit() { albert.logoff(); tina.logoff(); xen.logoff(); albert = null; tina = null; xen = null; image = null; requestedFile = null; requestedFile1 = null; requestedFile2 = null; RobotiumTestUtils.quit(solo); }
public void setUp() { Locale.setDefault( Locale.US); // To avoid issues with "." and "," in asserts containing file sizes final MainChatController mainChatController = getActivity(); final Instrumentation instrumentation = getInstrumentation(); solo = new Solo(instrumentation, mainChatController); me = RobotiumTestUtils.getMe(mainChatController); final AndroidUserInterface ui = TestUtils.getFieldValue( mainChatController, AndroidUserInterface.class, "androidUserInterface"); notificationService = TestUtils.getFieldValue(ui, NotificationService.class, "notificationService"); if (albert == null) { albert = new TestClient("Albert", 0); tina = new TestClient("Tina", 0); xen = new TestClient("Xen", 0); albert.logon(); tina.logon(); xen.logon(); // Make sure we have an image to send from a test client to the real client FileUtils.copyKouChatImageFromAssetsToSdCard(instrumentation, mainChatController); image = FileUtils.getKouChatImageFromSdCard(mainChatController); requestedFile = getLocationToRequestedFile(""); requestedFile1 = getLocationToRequestedFile("_1"); requestedFile2 = getLocationToRequestedFile("_2"); } solo.sleep(500); checkThatNoFileTransferNotificationsAreActive(); }
private void checkDialogMessage(final String textToFind) { assertTrue(RobotiumTestUtils.searchText(solo, textToFind)); }
private void checkMainChatMessage(final String textToFind) { assertTrue( RobotiumTestUtils.textIsVisible(solo, R.id.mainChatView, R.id.mainChatScroll, textToFind)); }
public void test99Quit() { RobotiumTestUtils.quit(solo); }