Package org.apache.tapestry5.test
Class TapestryTestConstants
- java.lang.Object
-
- org.apache.tapestry5.test.TapestryTestConstants
-
public class TapestryTestConstants extends Object
DefinsITestContextattributes meaninful to Tapestry for controlling application startup and shutdown.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_URL_ATTRIBUTEITestContextattribute holding the application's base URL.static StringBROWSER_START_COMMAND_PARAMETERXmlTestparameter holding the browser command to pass to Selenium.static StringCOMMAND_PROCESSOR_ATTRIBUTETheITestContextattribute holding an instance ofCommandProcessor, with enhanced exception reporting control.static StringCONTEXT_PATH_PARAMETERXmlTestparameter holding the context path.static StringCURRENT_TEST_METHOD_ATTRIBUTEITestContextattribute updated to store the current test method (as aMethodinstance).static StringERROR_REPORTER_ATTRIBUTEITestContextattribute holding an instance ofErrorReporter.static StringPORT_PARAMETERXmlTestparameter holding the web server port.static StringSELENIUM_ATTRIBUTEITestContextattribute holding an instance ofSelenium.static StringSERVLET_CONTAINER_PARAMETERXmlTestparameter holding the servlet container to run for the integration tests.static StringSHUTDOWN_ATTRIBUTEITestContextattribute holding an instance ofErrorReporter, used to shutdown Selenium and the Web Server at the end of the test.static StringSSL_PORT_PARAMETERXmlTestparameter holding the web server ssl port.static StringWEB_APP_FOLDER_PARAMETERXmlTestparameter holding an absolute or relative path to a web app folder.
-
Constructor Summary
Constructors Constructor Description TapestryTestConstants()
-
-
-
Field Detail
-
SELENIUM_ATTRIBUTE
public static final String SELENIUM_ATTRIBUTE
ITestContextattribute holding an instance ofSelenium.- Since:
- 5.2.0
- See Also:
SeleniumTestCase.testStartup(org.testng.ITestContext, org.testng.xml.XmlTest), Constant Field Values
-
ERROR_REPORTER_ATTRIBUTE
public static final String ERROR_REPORTER_ATTRIBUTE
ITestContextattribute holding an instance ofErrorReporter.- Since:
- 5.2.0
- See Also:
SeleniumTestCase.testStartup(org.testng.ITestContext, org.testng.xml.XmlTest), Constant Field Values
-
SHUTDOWN_ATTRIBUTE
public static final String SHUTDOWN_ATTRIBUTE
ITestContextattribute holding an instance ofErrorReporter, used to shutdown Selenium and the Web Server at the end of the test.- Since:
- 5.2.2
- See Also:
- Constant Field Values
-
COMMAND_PROCESSOR_ATTRIBUTE
public static final String COMMAND_PROCESSOR_ATTRIBUTE
TheITestContextattribute holding an instance ofCommandProcessor, with enhanced exception reporting control. This allows tests that wish to, to bypass theSeleniuminterface and execute commands directly on the Selenium RC server.- Since:
- 5.2.0
- See Also:
- Constant Field Values
-
BASE_URL_ATTRIBUTE
public static final String BASE_URL_ATTRIBUTE
ITestContextattribute holding the application's base URL.- Since:
- 5.2.0
- See Also:
- Constant Field Values
-
CURRENT_TEST_METHOD_ATTRIBUTE
public static final String CURRENT_TEST_METHOD_ATTRIBUTE
ITestContextattribute updated to store the current test method (as aMethodinstance).- See Also:
- Constant Field Values
-
WEB_APP_FOLDER_PARAMETER
public static final String WEB_APP_FOLDER_PARAMETER
XmlTestparameter holding an absolute or relative path to a web app folder.- See Also:
- Constant Field Values
-
CONTEXT_PATH_PARAMETER
public static final String CONTEXT_PATH_PARAMETER
XmlTestparameter holding the context path.- See Also:
- Constant Field Values
-
PORT_PARAMETER
public static final String PORT_PARAMETER
XmlTestparameter holding the web server port.- See Also:
- Constant Field Values
-
SSL_PORT_PARAMETER
public static final String SSL_PORT_PARAMETER
XmlTestparameter holding the web server ssl port.- See Also:
- Constant Field Values
-
BROWSER_START_COMMAND_PARAMETER
public static final String BROWSER_START_COMMAND_PARAMETER
XmlTestparameter holding the browser command to pass to Selenium.- See Also:
- Constant Field Values
-
SERVLET_CONTAINER_PARAMETER
public static final String SERVLET_CONTAINER_PARAMETER
XmlTestparameter holding the servlet container to run for the integration tests.- Since:
- 5.3
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TapestryTestConstants
public TapestryTestConstants()
-
-