예제 #1
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
   createProject();
   UiTestUtils.prepareStageForTest();
   UiTestUtils.getIntoScriptActivityFromMainMenu(solo);
 }
예제 #2
0
 @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();
 }
예제 #6
0
 @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);
 }
예제 #10
0
 @Override
 public void tearDown() throws Exception {
   lookFile.delete();
   super.tearDown();
 }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   createProject();
   UiTestUtils.getIntoScriptActivityFromMainMenu(solo);
 }