Author: yzhishko
Date: 2009-08-07 05:24:09 -0400 (Fri, 07 Aug 2009)
New Revision: 17006
Modified:
workspace/yzhishko/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/TestControl.java
Log:
Little changes in TestControl class
Modified:
workspace/yzhishko/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/TestControl.java
===================================================================
---
workspace/yzhishko/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/TestControl.java 2009-08-07
06:37:26 UTC (rev 17005)
+++
workspace/yzhishko/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/TestControl.java 2009-08-07
09:24:09 UTC (rev 17006)
@@ -119,46 +119,6 @@
public static String TYPE_WAR = "WAR";
public static String TYPE_EAR = "EAR";
-/**Checks for independent tests run. Under Construction. */
- protected void creationCheck(Integer mode, Properties serverType,
- Properties runtimeSet, String seamHome, String unitType, String type){
- if (mode > 1) {
- bot.viewByTitle(projectProperties.getProperty("jbossServerView")).setFocus();
- SWTBot innerBot =
bot.viewByTitle(projectProperties.getProperty("jbossServerView")).bot();
- SWTBotTree tree = innerBot.tree();
- try {
- tree.getTreeItem(jbossEAPRuntime.getProperty("serverName")+"
[Stopped]");
- } catch (WidgetNotFoundException e) {
- createServerRuntime(jbossEAPRuntime);
- }
- }
- if (mode > 2) {
-
- try {
-
- } catch (WidgetNotFoundException e) {
- createSeamRuntime(runtimeSet, seamHome);
- }
- }
- if (mode > 3) {
-
- try {
-
- } catch (WidgetNotFoundException e) {
- createSeamProject(runtimeSet, serverType, type);
- }
- }
- if (mode > 4) {
-
- try {
-
- } catch (WidgetNotFoundException e) {
- createSeamUnit(unitType, runtimeSet, type);
- }
- }
-
- }
-
/**Creates any Server Runtime + Server. */
protected void createServerRuntime(Properties serverType){
bot.menu("File").menu("New").menu("Other...").click();
@@ -182,7 +142,6 @@
tree.expandNode("JBoss
Tools").expandNode("Web").select("Seam");
bot.button("Add").click();
bot.textWithLabel("Home Folder:").setText(homeFolder);
- /*bot.textWithLabel("Home
Folder:").setText(runtimeSet.getProperty("seamRuntimePath"));*/
bot.textWithLabel("Name:").setText(runtimeSet.getProperty("seamRuntimeName"));
bot.button("Finish").click();
bot.button("OK").click();
@@ -247,21 +206,4 @@
}
}
-
-/**Builder job delay. Ugly delay script here right now. */
- protected void timeStop(){
- bot.sleep(38000);
- /*boolean check = true;
- bot.menu("Window").menu("Show
View").menu("Other...").click();
- bot.tree().expandNode("General").expandNode("Progress").select();
- bot.viewByTitle("Progress").setFocus();
- SWTBot progressBot = bot.viewByTitle("Progress").bot();
- while (check = true) {
- bot.sleep(1000);
- bot.viewByTitle("Progress").setFocus();
- SWTBotTree proTree = progressBot.tree();
- check = proTree.hasItems();
- }*/
- }
-
}
Show replies by date