Copy ant-junit.jar from Apache ant 1.6.5 to your $WSHOME/WEB-INF/lib directory.
Enable the com.sun.idm.testing.adapter.compatibility.CTServlet by uncommenting the following in the web.xml file:
Uncomment servlet definition:
<servlet> <servlet-name>CompatibilityTests</servlet-name> <servlet-class>com.sun.idm.testing.adapter.compatibility.CTServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> |
Uncomment servlet mapping:
<servlet-mapping> <servlet-name>CompatibilityTests</servlet-name> <url-pattern>/servlet/CTServlet</url-pattern> </servlet-mapping> |
You might have to restart your computer to use the new servlet.
The servlet accepts POST requests with certain parameters. Some parameters, such as imported files, allow you to specify multiples.
You can specify the following parameters to the Compatibility Suite:
Property |
Description |
---|---|
adapter |
Classname of the adapter to test |
dp |
Name of a custom DataProvider |
excludedTests |
Comma-separated list of tests to exclude |
import |
Comma-separated list of files to import |
importScript |
Comma-separated list of paths to the scripts to execute Note: These scripts return a string of imported XML. |
includedTests |
Comma-separated list of tests to include |
ns |
DataProvider namespace |
pass |
Plain Text password used to log user on Note: This password is sent in plain text, which may influence your decision on whether or not to enable the servlet. |
user |
Name of user who executes test |
Additional, remote-only parameters include:
Property |
Description |
---|---|
importXMLText |
String containing XML to import |
importScriptText |
String containing script to run |
importScriptSuffix |
Specify bsh if the script is a beanshell script Specify js if the script is javascript. Note: If you specify multiple scripts to the servlet, the scripts must all be javascript or all beanshell, you cannot specify one of each. |
You can access the servlet through debug/CompatTests.jsp or the command line Java program, CTContainerTest.java.
To prepare for running the tests remotely, copy the file idmtesting.jar and the example folders under sample/compat to the remote system.