org.apache.tapestry5.test
Class TapestryTestConstants

java.lang.Object
  extended by org.apache.tapestry5.test.TapestryTestConstants

public class TapestryTestConstants
extends java.lang.Object


Field Summary
static java.lang.String BASE_URL_ATTRIBUTE
          ITestContext attribute holding the application's base URL.
static java.lang.String BROWSER_START_COMMAND_PARAMETER
          XmlTest parameter holding the browser command to pass to Selenium.
static java.lang.String COMMAND_PROCESSOR_ATTRIBUTE
          The ITestContext attribute holding an instance of CommandProcessor, with enhanced exception reporting control.
static java.lang.String CONTEXT_PATH_PARAMETER
          XmlTest parameter holding the context path.
static java.lang.String CURRENT_DIR_PATH
          The current working directory (i.e., property "user.dir").
static java.lang.String CURRENT_TEST_METHOD_ATTRIBUTE
          ITestContext attribute updated to store the current test method (as a Method instance).
static java.lang.String ERROR_REPORTER_ATTRIBUTE
          ITestContext attribute holding an instance of ErrorReporter.
static java.io.File MODULE_BASE_DIR
          MODULE_BASE_DIR_PATH as a file.
static java.lang.String MODULE_BASE_DIR_PATH
          The Surefire plugin sets basedir but DOES NOT change the current working directory.
static java.lang.String PORT_PARAMETER
          XmlTest parameter holding the web server port.
static java.lang.String SELENIUM_ATTRIBUTE
          ITestContext attribute holding an instance of Selenium.
static java.lang.String SERVLET_CONTAINER_PARAMETER
          XmlTest parameter holding the servlet container to run for the integration tests.
static java.lang.String SHUTDOWN_ATTRIBUTE
          ITestContext attribute holding an instance of ErrorReporter, used to shutdown Selenium and the Web Server at the end of the test.
static java.lang.String SSL_PORT_PARAMETER
          XmlTest parameter holding the web server ssl port.
static java.lang.String WEB_APP_FOLDER_PARAMETER
          XmlTest parameter holding an absolute or relative path to a web app folder.
 
Constructor Summary
TapestryTestConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_DIR_PATH

public static final java.lang.String CURRENT_DIR_PATH
The current working directory (i.e., property "user.dir").


MODULE_BASE_DIR_PATH

public static final java.lang.String MODULE_BASE_DIR_PATH
The Surefire plugin sets basedir but DOES NOT change the current working directory. When building across modules, basedir changes for each module, but user.dir does not. This value should be used when referencing local files. Outside of surefire, the "basedir" property will not be set, and the current working directory will be the default.


MODULE_BASE_DIR

public static final java.io.File MODULE_BASE_DIR
MODULE_BASE_DIR_PATH as a file.


SELENIUM_ATTRIBUTE

public static final java.lang.String SELENIUM_ATTRIBUTE
ITestContext attribute holding an instance of Selenium.

Since:
5.2.0
See Also:
SeleniumTestCase.testStartup(org.testng.ITestContext, org.testng.xml.XmlTest), Constant Field Values

ERROR_REPORTER_ATTRIBUTE

public static final java.lang.String ERROR_REPORTER_ATTRIBUTE
ITestContext attribute holding an instance of ErrorReporter.

Since:
5.2.0
See Also:
SeleniumTestCase.testStartup(org.testng.ITestContext, org.testng.xml.XmlTest), Constant Field Values

SHUTDOWN_ATTRIBUTE

public static final java.lang.String SHUTDOWN_ATTRIBUTE
ITestContext attribute holding an instance of ErrorReporter, 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 java.lang.String COMMAND_PROCESSOR_ATTRIBUTE
The ITestContext attribute holding an instance of CommandProcessor, with enhanced exception reporting control. This allows tests that wish to, to bypass the Selenium interface and execute commands directly on the Selenium RC server.

Since:
5.2.0
See Also:
Constant Field Values

BASE_URL_ATTRIBUTE

public static final java.lang.String BASE_URL_ATTRIBUTE
ITestContext attribute holding the application's base URL.

Since:
5.2.0
See Also:
Constant Field Values

CURRENT_TEST_METHOD_ATTRIBUTE

public static final java.lang.String CURRENT_TEST_METHOD_ATTRIBUTE
ITestContext attribute updated to store the current test method (as a Method instance).

See Also:
Constant Field Values

WEB_APP_FOLDER_PARAMETER

public static final java.lang.String WEB_APP_FOLDER_PARAMETER
XmlTest parameter holding an absolute or relative path to a web app folder.

See Also:
Constant Field Values

CONTEXT_PATH_PARAMETER

public static final java.lang.String CONTEXT_PATH_PARAMETER
XmlTest parameter holding the context path.

See Also:
Constant Field Values

PORT_PARAMETER

public static final java.lang.String PORT_PARAMETER
XmlTest parameter holding the web server port.

See Also:
Constant Field Values

SSL_PORT_PARAMETER

public static final java.lang.String SSL_PORT_PARAMETER
XmlTest parameter holding the web server ssl port.

See Also:
Constant Field Values

BROWSER_START_COMMAND_PARAMETER

public static final java.lang.String BROWSER_START_COMMAND_PARAMETER
XmlTest parameter holding the browser command to pass to Selenium.

See Also:
Constant Field Values

SERVLET_CONTAINER_PARAMETER

public static final java.lang.String SERVLET_CONTAINER_PARAMETER
XmlTest parameter holding the servlet container to run for the integration tests.

Since:
5.3
See Also:
Constant Field Values
Constructor Detail

TapestryTestConstants

public TapestryTestConstants()


Copyright © 2003-2012 The Apache Software Foundation.