public void selectNameSpace(String nameSpace) {
    JTabbedPaneFixture combinedVarPanelTabbedPane = focusedWindow.tabbedPane("CombinedVarPanel");
    combinedVarPanelTabbedPane.selectTab("Name Space");
    JTreeFixture tree = focusedWindow.tree();

    tree.doubleClickPath(nameSpace);
  }
Example #2
0
  @Test
  public void fullStudyDesign() throws Exception {
    Assert.assertTrue("Location must exist: " + location, new File(location).exists());

    window.menuItemWithPath("File", "New Study").click();
    JFileChooserFixture fileChooser = JFileChooserFinder.findFileChooser().using(window.robot);
    fileChooser.fileNameTextBox().enterText(location + "/" + studyName);
    fileChooser.approve();

    window.textBox("study_num_alters_field").deleteText().enterText("15");
    window.radioButton("btnAlterModelRandomSubset").click();
    window.textBox("txtAlterModelRandomSubset").deleteText().enterText("5");

    JTabbedPaneFixture tabs = window.tabbedPane();

    // ego questions
    tabs.selectTab("Ego");
    window.robot.waitForIdle(); // there's some funky creation going on here
    AuthoringQuestionPanel egoPanel0 = findQPanel(window.robot.finder(), QuestionType.EGO);
    JPanelFixture egoPanel = new JPanelFixture(window.robot, egoPanel0);

    createPlainQuestion(egoPanel, AnswerType.CATEGORICAL);
    createPlainQuestion(egoPanel, AnswerType.NUMERICAL);
    createPlainQuestion(egoPanel, AnswerType.TEXT);

    // alter prompt
    tabs.selectTab("Alter Prompt");
    PromptPanel alterpromptPanel0 = findPromptPanel(window.robot.finder());
    JPanelFixture altrerpromptPanel = new JPanelFixture(window.robot, alterpromptPanel0);

    createQuestionTitleQuestionCitation(altrerpromptPanel);

    // alter
    tabs.selectTab("Alter");
    AuthoringQuestionPanel alterPanel0 = findQPanel(window.robot.finder(), QuestionType.ALTER);
    JPanelFixture alterPanel = new JPanelFixture(window.robot, alterPanel0);

    createPlainQuestion(alterPanel, AnswerType.CATEGORICAL);
    createPlainQuestion(alterPanel, AnswerType.NUMERICAL);
    createPlainQuestion(alterPanel, AnswerType.TEXT);

    // alter pair
    tabs.selectTab("Alter Pair");
    window.robot.waitForIdle(); // there's some funky creation going on here
    AuthoringQuestionPanel alterPairPanel0 =
        findQPanel(window.robot.finder(), QuestionType.ALTER_PAIR);
    JPanelFixture alterPairPanel = new JPanelFixture(window.robot, alterPairPanel0);

    createPlainQuestion(alterPairPanel, AnswerType.CATEGORICAL, true);

    window.menuItemWithPath("File", "Quit").click();
    DialogFixture dialog =
        WindowFinder.findDialog(DialogByTitleMatcher.withTitle("Save Study Changes"))
            .withTimeout(5000)
            .using(window.robot);
    dialog.button(withText("Yes")).click();
  }
 public void selectSearchTab() {
   JTabbedPaneFixture combinedVarPanelTabbedPane = focusedWindow.tabbedPane("CombinedVarPanel");
   combinedVarPanelTabbedPane.selectTab("Search");
 }
 public void selectNameSpaceTab() {
   JTabbedPaneFixture combinedVarPanelTabbedPane = focusedWindow.tabbedPane("CombinedVarPanel");
   combinedVarPanelTabbedPane.selectTab("Name Space");
 }