@Override public void setUp() throws Exception { super.setUp(); createProject(); UiTestUtils.prepareStageForTest(); UiTestUtils.getIntoScriptActivityFromMainMenu(solo); }
@Override public void tearDown() throws Exception { // normally super.teardown should be called last // but tests crashed with Nullpointer super.tearDown(); ProjectManager.getInstance().deleteCurrentProject(); }
@Override public void tearDown() throws Exception { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); prefs.edit().putString(Constants.TOKEN, saveToken).commit(); uploadProject = null; super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); createProject(); UiTestUtils.prepareStageForTest(); lookFile = UiTestUtils.setUpLookFile(solo, getActivity()); }
@Override public void tearDown() throws Exception { userVariablesContainer.deleteUserVariableByName("p1"); userVariablesContainer.deleteUserVariableByName("p2"); userVariablesContainer.deleteUserVariableByName("sprite_var1"); userVariablesContainer.deleteUserVariableByName("sprite_var2"); super.tearDown(); }
@Override public void setUp() throws Exception { // normally super.setUp should be called first // but kept the test failing due to view is null // when starting in ScriptActivity createProject(); super.setUp(); }
@Override public void setUp() throws Exception { super.setUp(); createProject(); UiTestUtils.prepareStageForTest(); UiTestUtils.getIntoSpritesFromMainMenu(solo); UiTestUtils.clickOnBottomBar(solo, R.id.button_play); }
@Override public void setUp() throws Exception { super.setUp(); SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); saveToken = preferences.getString(Constants.TOKEN, Constants.NO_TOKEN); uploadDialogTitle = solo.getString(R.string.upload_project_dialog_title); createTestProject(); solo.waitForActivity(MainMenuActivity.class.getSimpleName(), 3000); solo.sleep(300); try { setServerURLToTestURL(); } catch (Throwable e) { throw new Exception(); } }
@Override public void setUp() throws Exception { super.setUp(); createTestProject(UiTestUtils.DEFAULT_TEST_PROJECT_NAME); UiTestUtils.getIntoScriptActivityFromMainMenu(solo); }
@Override public void tearDown() throws Exception { lookFile.delete(); super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); createProject(); UiTestUtils.getIntoScriptActivityFromMainMenu(solo); }