org.eclipse.swtbot.eclipse.finder.waits.Conditions Java Examples
The following examples show how to use
org.eclipse.swtbot.eclipse.finder.waits.Conditions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestValidSelectionExport.java From aCute with Eclipse Public License 2.0 | 6 votes |
@Test public void testValidSelectionExport() { openExportWizard(); SWTBotButton finishButton = bot.button("Finish"); assertTrue("Should be able to Finish an export with a valid Project selected.", finishButton.isEnabled()); finishButton.click(); bot.waitUntil(Conditions.waitForWidget(withText("<terminated> .NET Core Export")),30000); SWTBotView view = bot.viewByTitle("Project Explorer"); SWTBotTree tree = new SWTBot(view.getWidget()).tree(0); SWTBotTreeItem projectItem = tree.getTreeItem(project.getName()); try { projectItem.expand().getNode("bin"); }catch (WidgetNotFoundException e) { SWTBotView consoleView = bot.viewByPartName("Console"); fail("Export failed: "+ consoleView.bot().styledText().getText()); } }
Example #2
Source File: SWTBotActorFilterExportTests.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
private void exportActorFilter(final String connector, final String fileName, final boolean hasDependencies, final boolean hasSources) throws Exception { SWTBotActorFilterUtil.activateExportActorFilterShell(bot); bot.table().select(connector); assertFalse("Finish button should be disabled", bot.button(IDialogConstants.FINISH_LABEL).isEnabled()); if (hasSources) { bot.checkBoxWithLabel("Include sources").select(); } else { bot.checkBoxWithLabel("Include sources").deselect(); } if (hasDependencies) { bot.checkBoxWithLabel("Add dependencies").select(); } else { bot.checkBoxWithLabel("Add dependencies").deselect(); } bot.textWithLabel("Destination *").setText(ProjectUtil.getBonitaStudioWorkFolder().getAbsolutePath()); bot.waitUntil(Conditions.widgetIsEnabled(bot.button(IDialogConstants.FINISH_LABEL)), 5000); bot.button(IDialogConstants.FINISH_LABEL).click(); bot.waitUntil( new ShellIsActiveWithThreadSTacksOnFailure(org.bonitasoft.studio.common.repository.Messages.exportLabel), 15000); bot.button(IDialogConstants.OK_LABEL).click(); checkExportedFile(ProjectUtil.getBonitaStudioWorkFolder().getAbsolutePath(), fileName, hasDependencies, hasSources); }
Example #3
Source File: SWTBotTestUtil.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
public static void addNewCustomDataInitWithScript(final SWTGefBot bot, final String name, final String type, final String defaultValueAsScript) { bot.waitUntil(Conditions.shellIsActive(org.bonitasoft.studio.data.i18n.Messages.newVariable)); bot.textWithLabel(org.bonitasoft.studio.properties.i18n.Messages.name).setText(name); bot.comboBoxWithLabel(org.bonitasoft.studio.properties.i18n.Messages.datatypeLabel) .setSelection(org.bonitasoft.studio.common.Messages.JavaType); bot.button(org.bonitasoft.studio.data.i18n.Messages.browseClasses).click(); bot.text().setText(type); bot.waitUntil(Conditions.tableHasRows(bot.table(), 2)); bot.table().select(0); bot.button(IDialogConstants.OK_LABEL).click(); bot.waitUntil(Conditions.shellIsActive(org.bonitasoft.studio.data.i18n.Messages.newVariable)); clickOnPenToEditExpression(bot, 0); SWTBotTestUtil.setScriptExpression(bot, "result", defaultValueAsScript, type); bot.button(IDialogConstants.FINISH_LABEL).click(); }
Example #4
Source File: SwtBotMenuActions.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 6 votes |
public static void openPerspective(SWTWorkbenchBot bot, String perspectiveLabel) { SwtBotUtils.print("Opening Perspective: " + perspectiveLabel); SWTBotShell shell = null; try { menu(bot, "Window").menu("Open Perspective").menu("Other...").click(); shell = bot.shell("Open Perspective"); bot.waitUntil(ActiveWidgetCondition.widgetMakeActive(shell)); shell.bot().table().select(perspectiveLabel); shell.bot().button("OK").click(); bot.waitUntil(Conditions.shellCloses(shell)); } catch (Exception e) { if (shell != null && shell.isOpen()) shell.close(); SwtBotUtils.printError("Couldn't open perspective '" + perspectiveLabel + "'\n" + "trying to activate already open perspective instead"); // maybe somehow the perspective is already opened (by another test before us) SWTBotPerspective perspective = bot.perspectiveByLabel(perspectiveLabel); perspective.activate(); } SwtBotUtils.print("Opened Perspective: " + perspectiveLabel); }
Example #5
Source File: SWTBotTestUtil.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * @param bot * @param variableName */ public static void setVariableExpression(final SWTGefBot bot, final String variableName) { bot.waitUntil(Conditions.shellIsActive(editExpression)); bot.tableWithLabel(expressionTypeLabel).select("Variable"); bot.sleep(1000); // select the variable final SWTBotTable tableVar = bot.table(1); for (int i = 0; i < tableVar.rowCount(); i++) { final SWTBotTableItem tableItem = tableVar.getTableItem(i); if (tableItem.getText().startsWith(variableName + " --")) { tableItem.select(); break; } } bot.waitUntil(Conditions.widgetIsEnabled(bot.button(IDialogConstants.OK_LABEL))); bot.button(IDialogConstants.OK_LABEL).click(); }
Example #6
Source File: ConnectorPropertyTest.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
private void addConnector(String connectorDefinitionId, String name, String dataName, String version) { SWTBotTestUtil.selectTabbedPropertyView(bot, "Connectors"); bot.button("Add...").click(); assertFalse(IDialogConstants.NEXT_LABEL + " should be disabled", bot .button(IDialogConstants.NEXT_LABEL).isEnabled()); assertFalse(IDialogConstants.FINISH_LABEL + " should be disabled", bot .button(IDialogConstants.FINISH_LABEL).isEnabled()); bot.tree().expandNode("Uncategorized").select(connectorDefinitionId + " (" + version + ")"); assertTrue(IDialogConstants.NEXT_LABEL + " should be disabled", bot .button(IDialogConstants.NEXT_LABEL).isEnabled()); assertFalse(IDialogConstants.FINISH_LABEL + " should be disabled", bot .button(IDialogConstants.FINISH_LABEL).isEnabled()); bot.button(IDialogConstants.NEXT_LABEL).click(); assertFalse(IDialogConstants.FINISH_LABEL + " should be disabled", bot .button(IDialogConstants.FINISH_LABEL).isEnabled()); bot.textWithLabel("Name *").setText(name); assertTrue(IDialogConstants.FINISH_LABEL + " should be disabled", bot .button(IDialogConstants.FINISH_LABEL).isEnabled()); bot.button(IDialogConstants.NEXT_LABEL).click(); bot.textWithLabel("text").setText("hello world"); bot.waitUntil(Conditions.waitForWidget(WidgetMatcherFactory.withMnemonic(IDialogConstants.NEXT_LABEL)), 1000); bot.button(IDialogConstants.NEXT_LABEL).click(); bot.comboBox().setSelection(dataName + " (java.lang.String)"); bot.button(IDialogConstants.FINISH_LABEL).click(); }
Example #7
Source File: AbstractNewWizardTest.java From aCute with Eclipse Public License 2.0 | 6 votes |
protected SWTBotShell openWizard() { bot = new SWTWorkbenchBot(); bot.menu("File").menu("New").menu("Other...").click(); bot.waitUntil(Conditions.shellIsActive("New")); SWTBotShell shell = bot.shell("New"); shell.activate(); bot.tree().expandNode(".NET Core").select(".NET Core Project"); bot.button("Next >").click(); while (!bot.list(0).itemAt(0).equals("No available templates") && !bot.list(0).isEnabled()) { try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } } return shell; }
Example #8
Source File: ShellUiTestUtil.java From dsl-devkit with Eclipse Public License 1.0 | 6 votes |
/** * Tests if a shell with a specific type of data contained (e.g. Window). * * @param bot * to use * @param clazz * class of data contained to check for */ @SuppressWarnings("rawtypes") public static void assertShellWithDataTypeVisible(final SWTWorkbenchBot bot, final Class clazz) { bot.waitUntil(Conditions.waitForShell(new BaseMatcher<Shell>() { @SuppressWarnings("unchecked") public boolean matches(final Object item) { return UIThreadRunnable.syncExec(new Result<Boolean>() { public Boolean run() { if (item instanceof Shell) { Object shellData = ((Shell) item).getData(); if (shellData != null) { return clazz.isAssignableFrom(shellData.getClass()); } } return false; } }); } public void describeTo(final Description description) { description.appendText("Shell for " + clazz.getName()); } })); }
Example #9
Source File: TestRenameDiagram.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
@Test public void testRenameMenu() { SWTBotTestUtil.createNewDiagram(bot); bot.menu("File").menu("Save").click(); final SWTBotEditor botEditor = bot.activeEditor(); final SWTBotGefEditor gmfEditor = bot.gefEditor(botEditor.getTitle()); final MainProcess diagram = (MainProcess) ((IGraphicalEditPart) gmfEditor.mainEditPart().part()) .resolveSemanticElement(); final String originalName = diagram.getName(); bot.menu("File").menu("Rename diagram...").click(); bot.waitUntil(Conditions.shellIsActive(org.bonitasoft.studio.common.Messages.openNameAndVersionDialogTitle)); assertTrue("OK should be enabled", bot.button(IDialogConstants.OK_LABEL).isEnabled()); final String newName = originalName + " renamed" + System.currentTimeMillis(); bot.textWithLabel(org.bonitasoft.studio.common.Messages.name, 0).setText(newName); bot.button(IDialogConstants.OK_LABEL).click(); assertEquals(newName + " (1.0)", bot.activeEditor().getTitle()); assertFalse("Editor is dirty", bot.activeEditor().isDirty()); }
Example #10
Source File: SWTBotConnectorExportTests.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
private void exportConnector(final String connector, final String fileName, final boolean hasDependencies, final boolean hasSources) throws Exception { final String exportPath = ProjectUtil.getBonitaStudioWorkFolder().getAbsolutePath(); SWTBotConnectorTestUtil.activateExportConnectorShell(bot); bot.table().select(connector); assertFalse("Finish button should be disabled", bot.button(IDialogConstants.FINISH_LABEL).isEnabled()); if (hasSources) { bot.checkBoxWithLabel(org.bonitasoft.studio.connectors.i18n.Messages.inculeSourcesLabel).select(); } else { bot.checkBoxWithLabel(org.bonitasoft.studio.connectors.i18n.Messages.inculeSourcesLabel).deselect(); } if (hasDependencies) { bot.checkBoxWithLabel(org.bonitasoft.studio.connectors.i18n.Messages.addDependencies).select(); } else { bot.checkBoxWithLabel(org.bonitasoft.studio.connectors.i18n.Messages.addDependencies).deselect(); } bot.textWithLabel(org.bonitasoft.studio.connectors.i18n.Messages.destinationLabel + " *").setText(exportPath); bot.button(IDialogConstants.FINISH_LABEL).click(); bot.waitUntil(Conditions.shellIsActive(org.bonitasoft.studio.connectors.i18n.Messages.exportStatusTitle)); bot.button(IDialogConstants.OK_LABEL).click(); checkExportedFile(exportPath, fileName, hasDependencies, hasSources); }
Example #11
Source File: SWTBotActorFilterUtil.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * use it to access to the Actor filter wizard "Edit definition" (menu * DEvelopement>Actor filters>Edit definition) * * @param bot */ public static void activateActorFilterDefEditionShell(final SWTBot bot) { final Matcher<MenuItem> matcher = withMnemonic("Development"); bot.waitUntil(Conditions.waitForMenu(bot.activeShell(), matcher), 40000); bot.menu("Development").menu("Actor filters") .menu("Edit definition...").click(); bot.waitUntil(Conditions .shellIsActive("Select an actor filter definition"), 10000); }
Example #12
Source File: SWTBotActorFilterUtil.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * use it to access to the Actor filter wizard * "New actor filter implementation" (menu DEvelopement>Actor filters>New * implementation) * * @param bot */ public static void activateActorFilterImplementationShell(final SWTBot bot) { final Matcher<MenuItem> matcher = withMnemonic("Development"); bot.waitUntil(Conditions.waitForMenu(bot.activeShell(), matcher), 40000); bot.menu("Development").menu("Actor filters") .menu("New implementation...").click(); bot.waitUntil(Conditions .shellIsActive(Messages.newFilterImplementation), 10000); }
Example #13
Source File: TestDatabaseConnectorOutputMode.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
private void addDBConnectorWithPatternExpression(final String connectorLabel, final String connectorVersion, final String[] dbCategoryLabel, final String connectorName) { bot.viewById(SWTBotTestUtil.VIEWS_PROPERTIES_PROCESS_EXECUTION).show(); SWTBotTestUtil.selectTabbedPropertyView(bot, SWTBotTestUtil.VIEWS_PROPERTIES_PROCESS_EXECUTION_CONNECTORS_IN); bot.button("Add...").click(); bot.text().setText(connectorLabel); bot.table().select(0); bot.button(IDialogConstants.NEXT_LABEL).click(); bot.textWithLabel("Name *").setText(connectorName); bot.waitUntil(Conditions.widgetIsEnabled(bot.button(IDialogConstants.NEXT_LABEL)), 5000); bot.button(IDialogConstants.NEXT_LABEL).click(); bot.button(IDialogConstants.NEXT_LABEL).click(); bot.button(IDialogConstants.NEXT_LABEL).click(); }
Example #14
Source File: SWTBotActorFilterUtil.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * use it to access to the Actor filter wizard "Edit definition" (menu * DEvelopement>Actor filters>Edit definition) * * @param bot */ public static void activateActorFilterImplEditionShell(final SWTBot bot) { bot.waitUntil(Conditions.widgetIsEnabled(bot.menu("Development")), 10000); bot.menu("Development").menu("Actor filters") .menu("Edit implementation...").click(); bot.waitUntil(Conditions .shellIsActive("Select an actor filter implementation"), 10000); }
Example #15
Source File: BPMNExportTests.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Test public void testBPMN2MenuPresentAfterOepningAnotherEditor() { final String id = "testBPMN2MenuPresentAfterOpeningAnotherEditor"; final String className = "MyConnectorImpl" + System.currentTimeMillis(); final String packageName = "org.bonita.connector.test"; SWTBotConnectorTestUtil.createConnectorDefAndImpl(bot, id, "1.0.0", className, packageName); bot.waitUntil(Conditions.waitForEditor(new BaseMatcher<IEditorReference>() { @Override public boolean matches(final Object item) { return "org.eclipse.jdt.ui.CompilationUnitEditor".equals(((IEditorReference) item).getId()); } @Override public void describeTo(final Description description) { } }), 10000); final SWTBotEditor activeEditor = bot.activeEditor(); assertEquals("org.eclipse.jdt.ui.CompilationUnitEditor", activeEditor.getReference().getId()); final SWTBotMenu processMenu = bot.menu("File"); final SWTBotMenu exportAsMenu = processMenu.menu("Export as").click(); final MenuItem mi = exportAsMenu.widget; Display.getDefault().syncExec(() -> { mi.getMenu().notifyListeners(SWT.Show, new Event()); final MenuItem[] mis = mi.getMenu().getItems(); for (final MenuItem menuItem : mis) { final String menuText = menuItem.getText(); menuBPMN2found = menuBPMN2found || "BPMN 2.0...".equals(menuText); } }); assertTrue("BPMN 2.0 menu is not present", menuBPMN2found); }
Example #16
Source File: TestCategories.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public void testCantCreateDuplicateCategory() { createProcessAndGotoUserXPTab(); final String categoryName = "categoryCantDuplicated"; addCategory(categoryName); bot.button("+").click(); bot.waitUntil(Conditions.shellIsActive(Messages.newCategory)); bot.text().setText(categoryName); final boolean okEnabled = bot.button(IDialogConstants.OK_LABEL).isEnabled(); bot.button(IDialogConstants.CANCEL_LABEL).click(); assertFalse("We can create duplicate categories", okEnabled); }
Example #17
Source File: SWTBotTestUtil.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public static void selectExpressionProposal(final SWTBot bot, final String storageExpressionName, final String returnType, final int index) { bot.toolbarButtonWithId(SWTBOT_ID_EXPRESSIONVIEWER_DROPDOWN, index).click(); final SWTBotShell proposalShell = bot.shellWithId(SWTBOT_ID_EXPRESSIONVIEWER_PROPOSAL_SHELL); final SWTBot proposalBot = proposalShell.bot(); final SWTBotTable proposalTAble = proposalBot.tableWithId(SWTBOT_ID_EXPRESSIONVIEWER_PROPOSAL_TABLE); final int row = proposalTAble.indexOf(storageExpressionName + " -- " + returnType, 0); if (row == -1) { throw new WidgetNotFoundException(storageExpressionName + " not found in proposals"); } proposalTAble.select(row); proposalTAble.pressShortcut(Keystrokes.CR); bot.waitUntil(Conditions.shellCloses(proposalShell)); }
Example #18
Source File: SWTBotActorFilterUtil.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * use it when the wizard "New definition" is active. (menu * development>Actors filters>New definition...) * * @param bot * @param categoryId * @throws Exception */ public static void createNewCategory(final SWTBot bot, final String categoryId) throws Exception { bot.waitUntil(Conditions.widgetIsEnabled(bot.button("New...")), 10000); SWTBotShell activeShell = bot.activeShell(); bot.button("New...").click(); Assert.assertFalse("ok button should be desabled", bot.button(IDialogConstants.OK_LABEL).isEnabled()); bot.textWithLabel("Id").setText(categoryId); bot.textWithLabel("Display name").setText(categoryId); bot.button(IDialogConstants.OK_LABEL).click(); activeShell.setFocus(); }
Example #19
Source File: TestCategories.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
private void addCategory(final String categoryName) { String mainShellName = bot.activeShell().getText(); bot.button("+").click(); bot.waitUntil(Conditions.shellIsActive(Messages.newCategory)); bot.text().setText(categoryName); bot.button(IDialogConstants.OK_LABEL).click(); bot.waitUntil(Conditions.shellIsActive(mainShellName)); }
Example #20
Source File: TestTimer.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * Open the General Tab, launch the editor shell of a Timer * * @param gmfEditor * @param timerName */ private void editTimerCondition(final SWTBotGefEditor gmfEditor, final String timerName) { gmfEditor.getEditPart(timerName).parent().select(); bot.viewById(SWTBotTestUtil.VIEWS_PROPERTIES_PROCESS_GENERAL).show(); SWTBotTestUtil.selectTabbedPropertyView(bot, "General"); bot.button(Messages.editCondition).click(); bot.waitUntil(Conditions.shellIsActive(Messages.timerConditionWizardTitle)); }
Example #21
Source File: TestTimer.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Test public void testEditTimerCondition() throws IOException { /* Import process */ new BotApplicationWorkbenchWindow(bot).importBOSArchive() .setArchive( TestTimer.class.getResource("TestTimer_1_0.bos")) .finish(); final SWTBotGefEditor gefEditor = bot.gefEditor(bot.activeEditor().getTitle()); /* Select step on which there is the connector to test */ gefEditor.select(gefEditor.getEditPart("StartTimer").parent()); bot.viewById(SWTBotTestUtil.VIEWS_PROPERTIES_PROCESS_GENERAL).setFocus(); SWTBotTestUtil.selectTabbedPropertyView(bot, "General"); bot.button(Messages.editCondition).click(); bot.waitUntil(Conditions.shellIsActive(Messages.timerConditionWizardTitle)); /* In the wizard add the data */ final String testValue = "0 0 12 1/1 * ? *"; bot.textWithId(SWTBOT_ID_EXPRESSIONVIEWER_TEXT).setText(testValue); bot.sleep(500); // Due to delayed observable on databinding bot.button(IDialogConstants.FINISH_LABEL).click(); bot.activeEditor().save(); /* Ensure that the field is correctly fill */ assertEquals(testValue, bot.textWithLabel(Messages.timerCondition).getText()); }
Example #22
Source File: OrganizationCreationTest.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
private void deployOrganization(final String organizationName, final String username) { SWTBotActorFilterUtil.activateSynchronizeOrganizationWizard(bot); bot.table().select(organizationName); bot.textWithLabel(Messages.defaultUser).setText(username); bot.button(Messages.deploy).click(); bot.waitUntil(Conditions.shellIsActive(Messages.deployInformationTitle), 1500000); bot.button(IDialogConstants.OK_LABEL).click(); }
Example #23
Source File: SWTBotActorFilterUtil.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * use it to access to the Actor filter wizard "New actor filter definition" * (menu Development>Actor filters>New implementation) * * @param bot */ public static void activateActorFilterDefinitionShell(final SWTBot bot) { final Matcher<MenuItem> matcher = withMnemonic("Development"); bot.waitUntil(Conditions.waitForMenu(bot.activeShell(), matcher), 40000); bot.menu("Development").menu("Actor filters").menu("New definition...") .click(); bot.waitUntil(Conditions.shellIsActive(Messages.newFilterDefinition), 10000); }
Example #24
Source File: SWTBotConnectorTestUtil.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * use it when the wizard "New definition" is active. (menu * development>connectors>New definition...) * * @param bot * @param categoryId * @throws Exception */ public static void createNewCategory(SWTBot bot, String categoryId) { bot.waitUntil(Conditions.widgetIsEnabled((bot.button("New..."))), 10000); SWTBotShell activeShell = bot.activeShell(); bot.button("New...").click(); bot.waitUntil(Conditions.widgetIsEnabled(bot.activeShell())); Assert.assertFalse("ok button should be desabled", bot.button(IDialogConstants.OK_LABEL).isEnabled()); bot.textWithLabel("Id").setText(categoryId); bot.textWithLabel("Display name").setText(categoryId); bot.button(IDialogConstants.OK_LABEL).click(); activeShell.setFocus(); }
Example #25
Source File: BotContractInputTab.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public BotContractInputTab remove() { bot.button(Messages.remove).click(); if (!FileActionDialog.getDisablePopup()) { bot.waitUntil(Conditions.shellIsActive(Messages.removeInputConfirmationTitle)); bot.button(IDialogConstants.OK_LABEL).click(); } return this; }
Example #26
Source File: BotContractConstraintTab.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public BotContractConstraintTab remove() { bot.button(Messages.remove).click(); if (!FileActionDialog.getDisablePopup()) { bot.waitUntil(Conditions.shellIsActive(Messages.removeConstraintConfirmationTitle)); bot.button(IDialogConstants.OK_LABEL).click(); } return this; }
Example #27
Source File: BotContractConstraintRow.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public BotContractConstraintRow setExpression(final String expression) { constraintTable.setFocus(); constraintTable.click(row, EXPRESSION_COLUMN); bot.button("...").click(); bot.waitUntilWidgetAppears(Conditions.widgetIsEnabled(bot.styledText())); bot.styledText().setText(expression); bot.button(IDialogConstants.FINISH_LABEL).click(); return this; }
Example #28
Source File: BotDiagramPropertySection.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public BotDiagramPropertySection setVersion(final String pVersion) { bot.waitUntil(Conditions.widgetIsEnabled(bot.button("Edit..."))); bot.button("Edit...").click(); // Open new Shell bot.waitUntil(Conditions.shellIsActive(org.bonitasoft.studio.common.Messages.openNameAndVersionDialogTitle)); bot.textWithLabel(org.bonitasoft.studio.common.Messages.version, 0).setText(pVersion); bot.button(IDialogConstants.OK_LABEL).click(); return this; }
Example #29
Source File: BotDiagramPropertySection.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public BotDiagramPropertySection setName(final String pName) { bot.waitUntil(Conditions.widgetIsEnabled(bot.button("Edit..."))); bot.button("Edit...").click(); // Open new Shell bot.waitUntil(Conditions.shellIsActive(org.bonitasoft.studio.common.Messages.openNameAndVersionDialogTitle)); bot.textWithLabel(org.bonitasoft.studio.common.Messages.name, 0).setText(pName); bot.button(IDialogConstants.OK_LABEL).click(); return this; }
Example #30
Source File: BotActorDefinitionPropertySection.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public BotActorDefinitionPropertySection deleteActor(final String actorName) { selectActor(actorName); bot.button(Messages.delete).click(); bot.waitUntil(Conditions.shellIsActive(Messages.deleteActorsTitle)); bot.button(IDialogConstants.OK_LABEL).click(); return this; }