| |
|
| java.lang.Object com.flexive.tests.browser.AbstractSeleniumTest
All known Subclasses: com.flexive.tests.browser.AbstractBackendBrowserTest,
AbstractSeleniumTest | abstract public class AbstractSeleniumTest (Code) | | Base class for selenium browser tests. Note that a selenium server must
be started externally. The server address and port can be set with the
properties
tests.browser.selenium.host and
tests.browser.selenium.port in the browser.properties file.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 181 $ |
Constructor Summary | |
protected | AbstractSeleniumTest(String initialUrl) Create a browser test for the given initial URL.
Parameters: initialUrl - The initial URL of the browser. | protected | AbstractSeleniumTest(String initialUrl, Properties defaultProperties) Creates a browser test for the given URL and default properties.
Parameters: initialUrl - The initial URL of the browser. | protected | AbstractSeleniumTest(String initialUrl, String configName) Creates a browser test for the given URL and the given properties file name.
Parameters: initialUrl - The initial URL of the browser. |
Method Summary | |
public void | afterClass() Selenium shutdown code. | public void | beforeClass() Selenium setup code. |
PROP_BASEURL | final public static String PROP_BASEURL(Code) | | The base URL for all tests
|
PROP_HOST | final public static String PROP_HOST(Code) | | Property for setting the selenium server host IP
|
PROP_PORT | final public static String PROP_PORT(Code) | | Property for setting the selenium server port
|
commandProcessor | protected HttpCommandProcessor commandProcessor(Code) | | |
AbstractSeleniumTest | protected AbstractSeleniumTest(String initialUrl)(Code) | | Create a browser test for the given initial URL.
Parameters: initialUrl - The initial URL of the browser. All subsequent open(..) requests will be appended to this URL. |
AbstractSeleniumTest | protected AbstractSeleniumTest(String initialUrl, Properties defaultProperties)(Code) | | Creates a browser test for the given URL and default properties.
Parameters: initialUrl - The initial URL of the browser. All subsequent open(..) requests will be appended to this URL. Parameters: defaultProperties - Default properties to be used if browser.properties is not available. |
AbstractSeleniumTest | protected AbstractSeleniumTest(String initialUrl, String configName)(Code) | | Creates a browser test for the given URL and the given properties file name.
Parameters: initialUrl - The initial URL of the browser. All subsequent open(..) requests will be appended to this URL.If null, it has to be specified in the properties file specified in the next parameter. Parameters: configName - The properties file name to be used for configuring the run-time parameters (default: browser.properties). |
afterClass | public void afterClass()(Code) | | Selenium shutdown code. Override this method in your actual test class and don't forget
to add the @BeforeClass annotation.
|
beforeClass | public void beforeClass()(Code) | | Selenium setup code. Override this method in your actual test class and don't forget
to add the @BeforeClass annotation.
|
|
|
|