Search in sources :

Example 16 with Solo

use of com.robotium.solo.Solo in project isItMayYet by CMPUT301W18T03.

the class WelcomeActivityTests method testLogin.

public void testLogin() {
    solo = new Solo(getInstrumentation(), getActivity());
    solo.assertCurrentActivity("Wrong activity", WelcomeActivity.class);
    solo.clickOnView(solo.getView(R.id.loginBtn));
    solo.assertCurrentActivity("Wrong activity", SimpleLoginActivity.class);
}
Also used : Solo(com.robotium.solo.Solo)

Example 17 with Solo

use of com.robotium.solo.Solo in project isItMayYet by CMPUT301W18T03.

the class WelcomeActivityTests method testBrowse.

public void testBrowse() {
    solo = new Solo(getInstrumentation(), getActivity());
    solo.assertCurrentActivity("Wrong activity", WelcomeActivity.class);
    solo.clickOnView(solo.getView(R.id.button_GoToMainMenu));
    solo.assertCurrentActivity("Wrong activity", MainMenuActivity.class);
}
Also used : Solo(com.robotium.solo.Solo)

Example 18 with Solo

use of com.robotium.solo.Solo in project AntennaPod by AntennaPod.

the class MainActivityTest method setUp.

@Before
public void setUp() throws IOException {
    EspressoTestUtils.clearPreferences();
    EspressoTestUtils.clearDatabase();
    activityRule.launchActivity(new Intent());
    uiTestUtils = new UITestUtils(InstrumentationRegistry.getInstrumentation().getTargetContext());
    uiTestUtils.setup();
    solo = new Solo(InstrumentationRegistry.getInstrumentation(), activityRule.getActivity());
}
Also used : Solo(com.robotium.solo.Solo) Intent(android.content.Intent) Before(org.junit.Before)

Aggregations

Solo (com.robotium.solo.Solo)18 SharedPreferences (android.content.SharedPreferences)2 PodDBAdapter (de.danoeh.antennapod.core.storage.PodDBAdapter)2 Intent (android.content.Intent)1 Event (com.brightcove.player.event.Event)1 EventListener (com.brightcove.player.event.EventListener)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 Before (org.junit.Before)1