use of com.robotium.solo.Solo in project ring-client-android by savoirfairelinux.
the class HomeActivityTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
mActivity = getActivity();
mSolo = new Solo(getInstrumentation(), getActivity());
}
use of com.robotium.solo.Solo in project isItMayYet by CMPUT301W18T03.
the class RegisterActivityTests method testEmptyRegister.
public void testEmptyRegister() {
solo = new Solo(getInstrumentation(), getActivity());
solo.assertCurrentActivity("Wrong activity", RegisterActivity.class);
solo.clickOnView(solo.getView(R.id.bCreate));
// message from toast on empty register
solo.waitForText("Please fill in all the fields");
}
use of com.robotium.solo.Solo in project isItMayYet by CMPUT301W18T03.
the class RegisterActivityTests method testAccountRegisterSuccess.
public void testAccountRegisterSuccess() {
// TODO: implement ES
solo = new Solo(getInstrumentation(), getActivity());
solo.assertCurrentActivity("Wrong activity", RegisterActivity.class);
solo.enterText(0, "username");
solo.enterText(1, "email");
solo.enterText(2, "7807800000");
solo.enterText(3, "password1");
solo.enterText(4, "password1");
solo.enterText(5, "firstname");
solo.enterText(6, "lastname");
solo.clickOnView(solo.getView(R.id.bCreate));
solo.assertCurrentActivity("Wrong activity", SimpleLoginActivity.class);
}
use of com.robotium.solo.Solo in project isItMayYet by CMPUT301W18T03.
the class SplashActivityTest method testUserExisting.
public void testUserExisting() {
UserAccount user = new UserAccount();
user.setUsername("lambda");
ApplicationController.setUser(user);
solo = new Solo(getInstrumentation(), getActivity());
solo.waitForActivity(MainMenuActivity.class);
}
use of com.robotium.solo.Solo in project isItMayYet by CMPUT301W18T03.
the class MainMenuActivityTests method testSearch.
public void testSearch() {
// tests on hardcoded sample tasks TODO: update for ES implementation
solo = new Solo(getInstrumentation(), getActivity());
solo.assertCurrentActivity("Wrong activity", MainMenuActivity.class);
solo.clickOnView(solo.getView(R.id.searchBar));
solo.enterText(0, "Description for");
solo.pressSoftKeyboardDoneButton();
solo.waitForText("Task0");
solo.clearEditText(0);
solo.clickOnView(solo.getView(R.id.searchBar));
solo.enterText(0, "desc");
solo.pressSoftKeyboardDoneButton();
solo.waitForText("Task0");
solo.waitForText("Task1");
solo.clearEditText(0);
solo.clickOnView(solo.getView(R.id.searchBar));
solo.enterText(0, "fluff");
solo.pressSoftKeyboardDoneButton();
solo.waitForText("Task3");
solo.waitForText("Task4");
}
Aggregations