Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.activate()


    assertTrue("Missing remote branch", children.contains("origin/stable"));
    item.getNode("origin/stable").select();
    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue("CreateBranchCommand"));
    SWTBotShell shell = bot.shell(UIText.CreateBranchWizard_NewBranchTitle);
    shell.activate();
    assertEquals("stable", shell.bot().textWithId("BranchName").getText());
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    item = myRepoViewUtil.getLocalBranchesItem(tree, clonedRepositoryFile)
        .expand();
View Full Code Here


    ContextMenuHelper.clickContextMenu(tree,
        myUtil.getPluginLocalizedValue("CreateBranchCommand"));

    SWTBotShell createPage = bot
        .shell(UIText.CreateBranchWizard_NewBranchTitle);
    createPage.activate();
    assertEquals("Wrong suggested branch name", "stable", createPage.bot()
        .textWithId("BranchName").getText());
    createPage.close();
    // checkout master again
View Full Code Here

    ContextMenuHelper.clickContextMenu(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CreateBranchCommand"));

    SWTBotShell createPage = bot
        .shell(UIText.CreateBranchWizard_NewBranchTitle);
    createPage.activate();
    // getting text with label doesn't work
    createPage.bot().textWithId("BranchName").setText("newLocal");
    createPage.bot().checkBox(UIText.CreateBranchPage_CheckoutButton)
        .deselect();
    createPage.bot().button(IDialogConstants.FINISH_LABEL).click();
View Full Code Here

  }

  protected void assertClickOpens(SWTBotTree tree, String menu, String window) {
    ContextMenuHelper.clickContextMenu(tree, menu);
    SWTBotShell shell = bot.shell(window);
    shell.activate();
    shell.bot().button(IDialogConstants.CANCEL_LABEL).click();
    shell.close();
  }

  /**
 
View Full Code Here

  public void testAddSectionEntry() throws Exception {
    preferencePage.bot().button(
        UIText.ConfigurationEditorComponent_AddButton).click();
    SWTBotShell addDialog = bot
        .shell(UIText.AddConfigEntryDialog_AddConfigTitle);
    addDialog.activate();
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_KeyLabel)
        .setText(TESTSECTION + "." + TESTNAME);
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_ValueLabel)
        .setText("true");
    // close the dialog
View Full Code Here

  public void testAddSubSectionEntry() throws Exception {
    preferencePage.bot().button(
        UIText.ConfigurationEditorComponent_AddButton).click();
    SWTBotShell addDialog = bot
        .shell(UIText.AddConfigEntryDialog_AddConfigTitle);
    addDialog.activate();
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_KeyLabel)
        .setText(TESTSECTION + "." + TESTSUBSECTION + "." + TESTNAME);
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_ValueLabel)
        .setText("true");
    // close the dialog
View Full Code Here

        TESTSUBSECTION).select();
    preferencePage.bot().button(
        UIText.ConfigurationEditorComponent_AddButton).click();
    SWTBotShell addDialog = bot
        .shell(UIText.AddConfigEntryDialog_AddConfigTitle);
    addDialog.activate();
    String suggested = addDialog.bot().textWithLabel(
        UIText.AddConfigEntryDialog_KeyLabel).getText();
    assertEquals(TESTSECTION + "." + TESTSUBSECTION + ".", suggested);
    addDialog.close();
  }
View Full Code Here

    getGitConfigurationPreferencePage();
    preferencePage.bot().button(
        UIText.ConfigurationEditorComponent_AddButton).click();
    SWTBotShell addDialog = bot
        .shell(UIText.AddConfigEntryDialog_AddConfigTitle);
    addDialog.activate();
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_KeyLabel)
        .setText(TESTSECTION + "." + TESTNAME);
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_ValueLabel)
        .setText("true");
    assertTrue(addDialog.bot().button(IDialogConstants.OK_LABEL)
View Full Code Here

  public void testChecksForKey() throws Exception {
    preferencePage.bot().button(
        UIText.ConfigurationEditorComponent_AddButton).click();
    SWTBotShell addDialog = bot
        .shell(UIText.AddConfigEntryDialog_AddConfigTitle);
    addDialog.activate();
    // neither key nor value set
    assertTrue(!addDialog.bot().button(IDialogConstants.OK_LABEL)
        .isEnabled());
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_ValueLabel)
        .setText("Somevalue");
View Full Code Here

  public void testSubsectionWithDot() throws Exception {
    preferencePage.bot()
        .button(UIText.ConfigurationEditorComponent_AddButton).click();
    SWTBotShell addDialog = bot
        .shell(UIText.AddConfigEntryDialog_AddConfigTitle);
    addDialog.activate();

    // subsection containing a dot
    String subsection = TESTSUBSECTION + "." + TESTNAME;
    addDialog.bot().textWithLabel(UIText.AddConfigEntryDialog_KeyLabel)
        .setText(TESTSECTION + "." + subsection + "." + TESTNAME);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.