Author: nbelaevski
Date: 2008-05-23 20:35:04 -0400 (Fri, 23 May 2008)
New Revision: 8741
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxPollTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/CalendarTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ComboBoxTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ContextMenuTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DataTableTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DropDownMenuTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InplaceSelectTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InputNumberSpinnerTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/JSFunctionTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadScriptTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadStyleTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/OrderingListTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelBarTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelMenuTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PickListTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ProgressBarTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SimpleTogglePanelTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SpacerTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TabPanelTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TogglePanelTest.java
Log:
Server port externalized as constant
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -40,6 +40,8 @@
/** Specifies the time to wait for ajax processing */
protected static final int ajaxCompletionTime = 3000;
+ protected static final String serverPort = "8080";
+
private static final String WINDOW_JS_RESOLVER =
"selenium.browserbot.getCurrentWindow().";
/** Parent component id */
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandButtonTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -12,7 +12,7 @@
public class AjaxCommandButtonTest extends SeleniumTestBase implements RichSeleniumTest
{
public AjaxCommandButtonTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxCommandLinkTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -11,7 +11,7 @@
public class AjaxCommandLinkTest extends SeleniumTestBase implements RichSeleniumTest {
public AjaxCommandLinkTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxPollTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxPollTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxPollTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -18,7 +18,7 @@
public class AjaxPollTest extends SeleniumTestBase implements RichSeleniumTest {
public AjaxPollTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -11,7 +11,7 @@
public class AjaxRegionTest extends SeleniumTestBase implements RichSeleniumTest {
public AjaxRegionTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -12,7 +12,7 @@
public class AjaxStatusTest extends SeleniumTestBase implements RichSeleniumTest {
public AjaxStatusTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/CalendarTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/CalendarTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/CalendarTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -40,7 +40,7 @@
* Default constructor
*/
public CalendarTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ComboBoxTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ComboBoxTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ComboBoxTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -12,7 +12,7 @@
public class ComboBoxTest extends SeleniumTestBase implements RichSeleniumTest {
public ComboBoxTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ContextMenuTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ContextMenuTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ContextMenuTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -33,7 +33,7 @@
public class ContextMenuTest extends SeleniumTestBase implements RichSeleniumTest {
public ContextMenuTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DataTableTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DataTableTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DataTableTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -12,7 +12,7 @@
public class DataTableTest extends SeleniumTestBase implements RichSeleniumTest {
public DataTableTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DropDownMenuTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DropDownMenuTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/DropDownMenuTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -11,7 +11,7 @@
public class DropDownMenuTest extends SeleniumTestBase implements RichSeleniumTest {
public DropDownMenuTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InplaceSelectTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InplaceSelectTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InplaceSelectTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -12,7 +12,7 @@
public class InplaceSelectTest extends SeleniumTestBase implements RichSeleniumTest {
public InplaceSelectTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InputNumberSpinnerTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InputNumberSpinnerTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/InputNumberSpinnerTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -13,7 +13,7 @@
public class InputNumberSpinnerTest extends SeleniumTestBase implements RichSeleniumTest
{
public InputNumberSpinnerTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/JSFunctionTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/JSFunctionTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/JSFunctionTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -14,7 +14,7 @@
public class JSFunctionTest extends SeleniumTestBase implements RichSeleniumTest {
public JSFunctionTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -11,7 +11,7 @@
public class KeepAliveTest extends SeleniumTestBase implements RichSeleniumTest {
public KeepAliveTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadScriptTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadScriptTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadScriptTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -13,7 +13,7 @@
public class LoadScriptTest extends SeleniumTestBase implements RichSeleniumTest {
public LoadScriptTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadStyleTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadStyleTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/LoadStyleTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -13,7 +13,7 @@
public class LoadStyleTest extends SeleniumTestBase implements RichSeleniumTest {
public LoadStyleTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/OrderingListTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/OrderingListTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/OrderingListTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -53,7 +53,7 @@
private String activeItemText;
public OrderingListTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
public OrderingListTest(String protocol, String host, String port) {
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelBarTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelBarTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelBarTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -34,7 +34,7 @@
public PanelBarTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelMenuTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelMenuTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PanelMenuTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -12,7 +12,7 @@
public class PanelMenuTest extends SeleniumTestBase implements RichSeleniumTest {
public PanelMenuTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PickListTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PickListTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/PickListTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -12,7 +12,7 @@
public class PickListTest extends SeleniumTestBase implements RichSeleniumTest {
public PickListTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ProgressBarTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ProgressBarTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/ProgressBarTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -13,7 +13,7 @@
RichSeleniumTest {
public ProgressBarTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SimpleTogglePanelTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SimpleTogglePanelTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SimpleTogglePanelTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -33,7 +33,7 @@
public class SimpleTogglePanelTest extends SeleniumTestBase implements RichSeleniumTest
{
public SimpleTogglePanelTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SpacerTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SpacerTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SpacerTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -33,7 +33,7 @@
public class SpacerTest extends SeleniumTestBase implements RichSeleniumTest {
public SpacerTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TabPanelTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TabPanelTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TabPanelTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -35,7 +35,7 @@
public class TabPanelTest extends SeleniumTestBase implements RichSeleniumTest {
public TabPanelTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TogglePanelTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TogglePanelTest.java 2008-05-24
00:25:22 UTC (rev 8740)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/TogglePanelTest.java 2008-05-24
00:35:04 UTC (rev 8741)
@@ -36,7 +36,7 @@
RichSeleniumTest {
public TogglePanelTest() {
- super("http", "localhost", "8080");
+ super("http", "localhost", serverPort);
}
/**