Пример #1
0
  public void testRestartButtonActivityChain() throws NameNotFoundException, IOException {
    createAndSaveTestProject(testProject);
    solo.clickOnButton(getActivity().getString(R.string.my_projects));
    solo.waitForActivity(MyProjectsActivity.class.getSimpleName());
    solo.waitForFragmentById(R.id.fr_projects_list);
    assertTrue("Cannot click project.", UiTestUtils.clickOnTextInList(solo, testProject));
    solo.waitForActivity(ProjectActivity.class.getSimpleName());

    Activity currentActivity = solo.getCurrentActivity();

    UiTestUtils.clickOnActionBar(solo, R.id.menu_start);
    solo.waitForActivity(StageActivity.class.getSimpleName());
    solo.goBack();
    solo.sleep(100);
    solo.clickOnButton(getActivity().getString(R.string.restart_current_project));
    solo.waitForActivity(StageActivity.class.getSimpleName());
    solo.assertCurrentActivity("Program is not in stage activity", StageActivity.class);

    solo.sleep(500);
    solo.goBack();
    solo.sleep(100);
    solo.clickOnButton(getActivity().getString(R.string.back));
    solo.waitForActivity(ProjectActivity.class.getSimpleName());
    assertEquals("Returned to wrong Activity", currentActivity, solo.getCurrentActivity());
  }
Пример #2
0
  public void test02_SetTest() {
    Activity testActivity = mSolo.getCurrentActivity();
    mSolo.assertCurrentActivity("Not SspDebugModeActivity Class", SspDebugModeActivity.class);

    mSolo.sleep(EmOperate.TIME_LONG);
    if (!mSolo.isCheckBoxChecked(0)) {
      mSolo.clickOnCheckBox(0);
      mSolo.sleep(EmOperate.TIME_LONG);
      mSolo.clickOnButton(0);

      mSolo.sleep(EmOperate.TIME_SUPER_LONG);

      BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
      // BluetoothAdapterEx adapterEx = BluetoothAdapterEx.getDefaultAdapterEx();
      // adapterEx.setSSPDebugMode(false);
      mSolo.sleep(EmOperate.TIME_SUPER_LONG);
      mSolo.sleep(EmOperate.TIME_SUPER_LONG);
      mSolo.sleep(EmOperate.TIME_SUPER_LONG);
      if (BluetoothAdapter.STATE_OFF != adapter.getState()) {
        adapter.disable();
        int jumpCount = 0;
        while ((BluetoothAdapter.STATE_OFF != adapter.getState()) && (jumpCount++ < 15)) {
          EmOperate.waitSomeTime(EmOperate.TIME_SUPER_LONG);
        }
      }
    } else {

      mSolo.sleep(EmOperate.TIME_SUPER_LONG);
      mSolo.clickOnCheckBox(0);
      mSolo.sleep(EmOperate.TIME_LONG);

      mSolo.goBack();
    }
  }
Пример #3
0
  /**
   * The first walkthrough. Documented on the wiki. Starts on the login, ends up navigating to a
   * lesson after logging in.
   */
  @Test
  public void testWalkthroughLoginToDashboardToCoursesToCourseToLesson() {
    // Login first
    EditText user = solo.getEditText(0);
    EditText pass = solo.getEditText(1);
    solo.typeText(user, "*****@*****.**");
    solo.typeText(pass, "password");
    solo.clickOnButton(solo.getString(com.huskysoft.eduki.R.string.login));
    // Need to sleep to allow the activity to finish
    solo.sleep(8000);
    solo.assertCurrentActivity("Wrong activity", MainActivity.class);

    // Click on the all courses button
    solo.clickOnActionBarItem(com.huskysoft.eduki.R.id.action_courses);
    solo.sleep(1000);
    solo.assertCurrentActivity("Did not start the Course list Activity", CoursesListActivity.class);

    // Wait for the courses list to appear
    solo.waitForView(solo.getView(com.huskysoft.eduki.R.id.courseListView));
    solo.sleep(1000);
    List<Course> courseList = ((CoursesListActivity) solo.getCurrentActivity()).getCourseList();
    assertNotSame(courseList.size(), 0);
    solo.clickOnText("INTRODUCTION");
    solo.assertCurrentActivity("Wrong activity", CourseActivity.class);

    // Wait for the course page to appear
    solo.waitForView(solo.getView(com.huskysoft.eduki.R.id.course_activity));
    solo.sleep(1000);

    // Click a lesson, wait for it to appear
    List<Lesson> lessonList = ((CourseActivity) solo.getCurrentActivity()).getLessonList();
    assertNotSame(lessonList.size(), 0);
    solo.clickOnText(lessonList.get(0).toString());

    solo.waitForView(solo.getView(com.huskysoft.eduki.R.id.lessonViewLayoutText));
    solo.sleep(1000);
    String content =
        ((TextView)
                solo.getCurrentActivity()
                    .findViewById(com.huskysoft.eduki.R.id.lessonViewLayoutText))
            .getText()
            .toString();
    assertFalse(content.equals(""));
  }
Пример #4
0
 public void testAddNote() throws Exception {
   solo.clickOnMenuItem("Add note");
   solo.assertCurrentActivity("Expected NoteEditor activity", "NoteEditor");
   solo.enterText(0, "1");
   solo.goBack();
   solo.clickOnMenuItem("Add note");
   solo.enterText(0, "Note2");
   solo.goBackToActivity("NotesList");
   solo.takeScreenshot();
 }
 public void testEmptyCourseListClick() {
   ListView listView = (ListView) solo.getView(R.id.courses_list);
   View emptyview = listView.getEmptyView();
   assertEquals("EmptyView shoudl not be visible", View.GONE, emptyview.getVisibility());
   deleteAllCourses();
   assertEquals(0, listView.getCount());
   assertEquals("Empty view should be visible", View.VISIBLE, emptyview.getVisibility());
   solo.clickOnView(emptyview);
   solo.assertCurrentActivity(
       "Current activity shoudl Be the AddCourse Activity", AddCourseActivity.class);
   solo.goBack();
 }
Пример #6
0
  /**
   * The second test, documented on the wiki. Starts on login. Does not login, instead navigates to
   * a course list and ends up at a quiz.
   */
  @Test
  public void testWalkthroughLoginToCoursesListToCourseToQuiz() {
    // Need to sleep to allow the activity to finish
    solo.clickOnActionBarItem(com.huskysoft.eduki.R.id.action_courses);
    solo.sleep(1000);
    solo.assertCurrentActivity("Did not start the Course list Activity", CoursesListActivity.class);

    // Wait for the courses list to appear
    solo.waitForView(solo.getView(com.huskysoft.eduki.R.id.courseListView));
    solo.sleep(1000);
    List<Course> courseList = ((CoursesListActivity) solo.getCurrentActivity()).getCourseList();
    assertNotSame(courseList.size(), 0);
    solo.clickOnText("INTRODUCTION");
    solo.assertCurrentActivity("Wrong activity", CourseActivity.class);

    // Wait for the course page to appear
    solo.waitForView(solo.getView(com.huskysoft.eduki.R.id.course_activity));
    solo.sleep(1000);

    // Click a quiz, wait for it to appear
    List<Quiz> quizList = ((CourseActivity) solo.getCurrentActivity()).getQuizList();
    assertNotSame(quizList.size(), 0);
    solo.clickOnText(quizList.get(0).toString());

    solo.waitForView(solo.getView(com.huskysoft.eduki.R.id.quizScrollView));
    solo.sleep(2000); // Sleep to wait for the answers to populate
    List<RadioGroup> answersGroupList =
        ((QuizzesViewActivity) solo.getCurrentActivity()).getAnswerGroup();
    for (int i = 0; i < answersGroupList.size(); i++) {
      RadioGroup current_rg = answersGroupList.get(i);
      List<RadioButton> list_rb = getRadioButtons(current_rg);
      assertTrue(list_rb.size() != 0);
      solo.clickOnView(list_rb.get(0)); // Answer "A" for everything
      solo.sleep(500);
    }
    solo.sleep(1000);
    solo.clickOnButton("SUBMIT");
    solo.waitForActivity(QuizzesResultsActivity.class);
    solo.assertCurrentActivity("Wrong activity", QuizzesResultsActivity.class);
  }
Пример #7
0
  public void testBackButtonPressedTwice() throws NameNotFoundException, IOException {
    Project project = createTestProject(testProject);
    ProjectManager.getInstance().setProject(project);

    UiTestUtils.clickOnActionBar(solo, R.id.menu_start);
    solo.waitForActivity(StageActivity.class.getSimpleName());
    solo.sleep(1000);
    solo.goBack();

    solo.goBack();
    solo.waitForActivity(MainMenuActivity.class.getSimpleName());
    solo.assertCurrentActivity("Program is not in stage activity", MainMenuActivity.class);
  }
Пример #8
0
  // Generated from trace 753
  public void testTrace00001() {

    // Testing base activity
    retrieveWidgets();
    // Testing current activity: should be a1
    solo.assertCurrentActivity("Testing base activity", "Dashboard");

    // Testing transition
    // Firing event: e757
    fireEvent(0, "", "null", "openMenu");

    // This event leads to fail
    solo.sleep(SLEEP_AFTER_TASK);
  }
 public void testStartActivity() {
   solo.assertCurrentActivity("Check on UpdateTaskActivity", UpdateTaskActivity.class);
 }
Пример #10
0
  // Generated from trace 943
  public void testTrace00002() {

    // Testing base activity
    retrieveWidgets();
    // Testing current activity: should be a1
    solo.assertCurrentActivity("Testing base activity", "Dashboard");

    // Testing transition
    // Firing event: e760
    fireEvent(2131165201, 13, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a73
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e785
    fireEvent(2131165263, 53, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a74
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e793
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a75
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e796
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a76
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e798
    fireEvent(1, "Home", "menuItem", "click");

    retrieveWidgets();
    // Testing current activity: should be a77
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e815
    fireEvent(2131165263, 53, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a78
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e823
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a79
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e825
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a80
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e839
    fireEvent(2131165263, 53, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a81
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e847
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a82
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e851
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a83
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e854
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a84
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e860
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a85
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e862
    fireEvent(2131165329, 7, "", "webPage", "longClick");

    retrieveWidgets();
    // Testing current activity: should be a86
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e867
    fireEvent(8, "Email or Username\n\t\t", "text", "click");

    retrieveWidgets();
    // Testing current activity: should be a87
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e872
    fireEvent(8, "Email or Username\n\t\t", "text", "click");

    retrieveWidgets();
    // Testing current activity: should be a88
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e876
    fireEvent(2131165329, 7, "", "webPage", "longClick");

    retrieveWidgets();
    // Testing current activity: should be a89
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e882
    fireEvent(8, "Email or Username\n\t\t", "text", "click");

    retrieveWidgets();
    // Testing current activity: should be a90
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e889
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a91
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e896
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a92
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e900
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a93
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e906
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a94
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e912
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a95
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e916
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a96
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e921
    fireEvent(2131165204, 16, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a97
    solo.assertCurrentActivity("", "Posts");

    // Testing transition
    // Firing event: e935
    fireEvent(16908313, 15, "OK", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a98
    solo.assertCurrentActivity("", "Posts");

    // Testing transition
    // Firing event: e942
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a99
    solo.assertCurrentActivity("", "Posts");

    // Testing transition
    // Firing event: e945
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a100
    solo.assertCurrentActivity("", "Posts");

    // Testing transition
    // Firing event: e948
    fireEvent(2131165200, 14, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a101
    solo.assertCurrentActivity("", "Posts");

    solo.sleep(SLEEP_AFTER_TASK);
  }
Пример #11
0
  // Generated from trace 751
  public void testTrace00000() {

    // Testing base activity
    retrieveWidgets();
    // Testing current activity: should be a1
    solo.assertCurrentActivity("Testing base activity", "Dashboard");

    // Testing transition
    // Firing event: e11
    fireEvent(2131165263, 53, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a2
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e17
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a3
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e23
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a4
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e28
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a5
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e29
    fireEvent(2131165329, 7, "", "webPage", "longClick");

    retrieveWidgets();
    // Testing current activity: should be a6
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e33
    fireEvent(2131165329, 7, "", "webPage", "longClick");

    retrieveWidgets();
    // Testing current activity: should be a7
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e39
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a8
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e44
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a9
    solo.assertCurrentActivity("", "Read");

    // Testing transition
    // Firing event: e48
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a10
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e61
    fireEvent(2131165262, 50, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a11
    solo.assertCurrentActivity("", "Settings");

    // Testing transition
    // Setting input: i16
    setInput(2131165215, "writeText", "27");
    // Setting input: i17
    setInput(2131165217, "writeText", "29");
    // Firing event: e75
    fireEvent(2131165348, 18, "", "spinner", "selectSpinnerItem", "9");

    retrieveWidgets();
    // Testing current activity: should be a12
    solo.assertCurrentActivity("", "Settings");

    // Testing transition
    // Setting input: i46
    setInput(2131165215, "writeText", "27");
    // Setting input: i47
    setInput(2131165217, "writeText", "29");
    // Firing event: e93
    fireEvent(2131165348, 18, "", "spinner", "selectSpinnerItem", "8");

    retrieveWidgets();
    // Testing current activity: should be a13
    solo.assertCurrentActivity("", "Settings");

    // Testing transition
    // Setting input: i70
    setInput(2131165215, "writeText", "27");
    // Setting input: i71
    setInput(2131165217, "writeText", "29");
    // Firing event: e108
    fireEvent(2131165348, 18, "", "spinner", "selectSpinnerItem", "4");

    retrieveWidgets();
    // Testing current activity: should be a14
    solo.assertCurrentActivity("", "Settings");

    // Testing transition
    // Firing event: e142
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a15
    solo.assertCurrentActivity("", "Settings");

    // Testing transition
    // Setting input: i158
    setInput(2131165215, "writeText", "27");
    // Setting input: i159
    setInput(2131165217, "writeText", "29");
    // Firing event: e158
    fireEvent(2131165200, 33, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a16
    solo.assertCurrentActivity("", "Settings");

    // Testing transition
    // Setting input: i208
    setInput(2131165215, "writeText", "27");
    // Setting input: i209
    setInput(2131165217, "writeText", "29");
    // Firing event: e186
    fireEvent(2131165262, 72, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a17
    solo.assertCurrentActivity("", "Settings");

    // Testing transition
    // Setting input: i240
    setInput(2131165215, "writeText", "27");
    // Setting input: i241
    setInput(2131165217, "writeText", "29");
    // Firing event: e205
    fireEvent(2131165219, 24, "Save", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a18
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e211
    fireEvent(2131165200, 11, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a19
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e227
    fireEvent(2131165200, 11, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a20
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e241
    fireEvent(2131165258, 43, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a21
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e250
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a22
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e252
    fireEvent(16908313, 15, "OK", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a23
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e257
    fireEvent(2131165201, 20, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a24
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e262
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a25
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e266
    fireEvent(2131165201, 20, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a26
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e272
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a27
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e274
    fireEvent(16908313, 15, "OK", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a28
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e279
    fireEvent(2131165201, 20, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a29
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e283
    fireEvent(16908313, 15, "OK", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a30
    solo.assertCurrentActivity("", "Comments");

    // Testing transition
    // Firing event: e289
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a31
    solo.assertCurrentActivity("", "Dashboard");

    // Testing transition
    // Firing event: e300
    fireEvent(2131165257, 39, "", "linearLayout", "click");

    retrieveWidgets();
    // Testing current activity: should be a32
    solo.assertCurrentActivity("", "Posts");

    // Testing transition
    // Firing event: e309
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a33
    solo.assertCurrentActivity("", "Posts");

    // Testing transition
    // Firing event: e315
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a34
    solo.assertCurrentActivity("", "Posts");

    // Testing transition
    // Firing event: e317
    fireEvent(1, "New Page", "menuItem", "click");

    retrieveWidgets();
    // Testing current activity: should be a35
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e326
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a36
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Setting input: i254
    setInput(2131165236, "writeText", "90");
    // Setting input: i255
    setInput(2131165286, "writeText", "45");
    // Firing event: e328
    fireEvent(2131165283, 16, "Edit", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a37
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e338
    fireEvent(16908796, 20, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a38
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e351
    fireEvent(16908795, 19, "", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a39
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e368
    fireEvent(16908795, 24, "", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a40
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e381
    fireEvent(16908794, 23, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a41
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e393
    fireEvent(16908795, 19, "", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a42
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e406
    fireEvent(16908794, 19, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a43
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e423
    fireEvent(16908794, 22, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a44
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e434
    fireEvent(16908794, 18, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a45
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e446
    fireEvent(16908795, 15, "", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a46
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e470
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a47
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e478
    fireEvent(16908796, 20, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a48
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e493
    fireEvent(16908794, 22, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a49
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e511
    fireEvent(16908314, 30, "Cancel", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a50
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e520
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a51
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e526
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a52
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Setting input: i270
    setInput(2131165236, "writeText", "90");
    // Setting input: i271
    setInput(2131165286, "writeText", "45");
    // Firing event: e527
    fireEvent(2131165265, 9, "Content", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a53
    solo.assertCurrentActivity("", "EditContent");

    // Testing transition
    // Firing event: e542
    fireEvent(0, "", "null", "back");

    retrieveWidgets();
    // Testing current activity: should be a54
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Setting input: i278
    setInput(2131165236, "writeText", "90");
    // Setting input: i279
    setInput(2131165286, "writeText", "45");
    // Firing event: e546
    fireEvent(2131165283, 16, "Edit", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a55
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e556
    fireEvent(16908796, 20, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a56
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e575
    fireEvent(16908314, 30, "Cancel", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a57
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Setting input: i286
    setInput(2131165236, "writeText", "90");
    // Setting input: i287
    setInput(2131165286, "writeText", "45");
    // Firing event: e581
    fireEvent(2131165287, 20, "Publish", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a58
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e588
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a59
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e592
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a60
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e593
    fireEvent(16908313, 15, "OK", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a61
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Setting input: i290
    setInput(2131165236, "writeText", "90");
    // Setting input: i291
    setInput(2131165286, "writeText", "45");
    // Firing event: e598
    fireEvent(2131165283, 16, "Edit", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a62
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e609
    fireEvent(16908794, 22, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a63
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e620
    fireEvent(16908794, 18, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a64
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e637
    fireEvent(16908794, 22, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a65
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e657
    fireEvent(0, "", "null", "openMenu");

    retrieveWidgets();
    // Testing current activity: should be a66
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e663
    fireEvent(16908795, 19, "", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a67
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e673
    fireEvent(16908794, 15, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a68
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e688
    fireEvent(16908795, 15, "", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a69
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e714
    fireEvent(0, "", "null", "changeOrientation");

    retrieveWidgets();
    // Testing current activity: should be a70
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e720
    fireEvent(16908796, 20, "", "button", "click");

    retrieveWidgets();
    // Testing current activity: should be a71
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e736
    fireEvent(16908795, 23, "", "focusableEditText", "focus");

    retrieveWidgets();
    // Testing current activity: should be a72
    solo.assertCurrentActivity("", "EditPost");

    // Testing transition
    // Firing event: e748
    fireEvent(16908796, 20, "", "button", "click");

    // This event leads to fail
    solo.sleep(SLEEP_AFTER_TASK);
  }
 public void testStartActivity() {
   solo.assertCurrentActivity("Check on MemberInfoActivity", MemberInfoActivity.class);
 }