Source:
<code>public void testTimestampEqualsOr() { SWTBotView viewBot = fBot.viewById(FilterView.ID); viewBot.setFocus(); <START> SWTBot filterBot = viewBot.bot(); <END> SWTBotTree treeBot = filterBot.tree(); viewBot.toolbarButton("Add new filter").click(); treeBot.getTreeItem("FILTER <name>").select(); SWTBotText textBot = filterBot.text(); textBot.setFocus(); String filterName = "matchAndEquals"; textBot.setText(filterName); SWTBotTreeItem filterNodeBot = treeBot.getTreeItem(FILTER_TEST + filterName); filterNodeBot.click(); filterNodeBot.contextMenu("TRACETYPE").click(); filterNodeBot.expand(); SWTBotCombo comboBot = filterBot.comboBox(); comboBot.setSelection(TRACETYPE); filterNodeBot.getNode(WITH_TRACETYPE).expand(); filterNodeBot.getNode(WITH_TRACETYPE).contextMenu(OR).click(); filterNodeBot.getNode(WITH_TRACETYPE).getNode(OR).contextMenu("EQUALS").click(); filterNodeBot.getNode(WITH_TRACETYPE).getNode(OR).expand(); filterNodeBot.getNode(WITH_TRACETYPE).getNode(OR).getNode(0).select(); comboBot = selectCombo(filterBot); comboBot.setSelection(comboBot.itemCount() - 3); textBot = filterBot.text(); textBot.setFocus(); textBot.setText("19:00:00.000 000 300"); filterNodeBot.getNode(WITH_TRACETYPE).getNode(OR).contextMenu("MATCHES").click(); filterNodeBot.getNode(WITH_TRACETYPE).getNode(OR).expand(); filterNodeBot.getNode(WITH_TRACETYPE).getNode(OR).getNode(1).select(); comboBot = selectCombo(filterBot); comboBot.setSelection(comboBot.itemCount() - 1); textBot = filterBot.text(0); textBot.setFocus(); textBot.setText("field"); textBot = filterBot.text(1); textBot.setFocus(); textBot.setText("1"); viewBot.toolbarButton("Save filters").click(); String ret = applyFilter(fBot, filterName); assertEquals("26/100", ret); }</code><technical_language>fBot</technical_language>

Target:
public void testTimestampEqualsOr() { SWTBotView viewBot = fBot.viewById(FilterView.ID); viewBot.setFocus(); SWTBot filterBot = viewBot.bot(); SWTBotTree treeBot = filterBot.tree(); viewBot.toolbarButton("Add new filter").click(); treeBot.getTreeItem("FILTER <name>").select(); SWTBotText textBot = filterBot.text(); textBot.setFocus(); String filterName = "matchAndEquals"; textBot.setText(filterName); SWTBotTreeItem filterNodeBot = treeBot.getTreeItem(FILTER_TEST + filterName); filterNodeBot.click(); filterNodeBot.contextMenu("TRACETYPE").click(); filterNodeBot.expand(); SWTBotCombo comboBot = filterBot.comboBox(); comboBot.setSelection(TRACETYPE); filterNodeBot.getNode(WITH_TRACETYPE).expand(); filterNodeBot.getNode(WITH_TRACETYPE).contextMenu(OR).click(); SWTBotTreeItem orNode = filterNodeBot.getNode(WITH_TRACETYPE).getNode(OR); orNode.contextMenu("EQUALS").click(); orNode.expand(); orNode.getNode(0).select(); comboBot = filterBot.comboBox(); comboBot.setSelection(comboBot.itemCount() - 3); textBot = filterBot.text(); textBot.setFocus(); textBot.setText("19:00:00.000 000 300"); orNode.contextMenu("MATCHES").click(); orNode.expand(); orNode.getNode(1).select(); comboBot = filterBot.comboBox(); comboBot.setSelection(comboBot.itemCount() - 1); textBot = filterBot.text(0); textBot.setFocus(); textBot.setText("field"); textBot = filterBot.text(1); textBot.setFocus(); textBot.setText("1"); viewBot.toolbarButton("Save filters").click(); String ret = applyFilter(fBot, filterName); assertEquals("26/100", ret); }