import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences;
+import org.eclipse.swtbot.swt.finder.waits.Conditions;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.junit.BeforeClass;
import org.junit.Ignore;
*/
public class TestCustomTxtWizard {
+ private static final String MANAGE_CUSTOM_PARSERS_SHELL_TITLE = "Manage Custom Parsers";
private static final String PROJECT_NAME = "Test";
private static final String EXPECTED_TEST_DEFINITION = "<Definition name=\"Test\">\n" +
"<TimeStampOutputFormat>ss</TimeStampOutputFormat>\n" +
}
assertNotNull(treeNode);
treeNode.contextMenu("Manage Custom Parsers...").click();
+ fBot.waitUntil(Conditions.shellIsActive(MANAGE_CUSTOM_PARSERS_SHELL_TITLE));
fBot.button("New...").click();
fBot.textWithLabel("Log type:").setText(PROJECT_NAME);
}
assertNotNull(treeNode);
treeNode.contextMenu("Manage Custom Parsers...").click();
+ fBot.waitUntil(Conditions.shellIsActive(MANAGE_CUSTOM_PARSERS_SHELL_TITLE));
fBot.list().select(fBot.list().getItems()[0]);
fBot.button("Edit...").click();