示例#1
0
 @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();
 }
示例#3
0
 @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());
 }
示例#5
0
 @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();
 }
示例#7
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
   createProject();
   UiTestUtils.prepareStageForTest();
   UiTestUtils.getIntoSpritesFromMainMenu(solo);
   UiTestUtils.clickOnBottomBar(solo, R.id.button_play);
 }
示例#8
0
 @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();
   }
 }
示例#9
0
 @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);
 }