Package com.sun.ts.tests.common.web
Class WebUtil
java.lang.Object
com.sun.ts.tests.common.web.WebUtil
Factorize code used by JSP and Servlets.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
executeTest
(Object testDriver, jakarta.servlet.http.HttpServletRequest req) Use information provided in a HTTPRequest to execute a test method on a testDriver object.static void
static void
static void
static void
static String
propsToString
(Properties props) Convert Java Properties to a String, as expected by on the client side (WebServer)
-
Field Details
-
RESULT_PROP
Name of property used to send back test result to client- See Also:
-
TEST_NAME_PROP
Name of the property used to get the test method name- See Also:
-
-
Constructor Details
-
WebUtil
public WebUtil()
-
-
Method Details
-
logMsg
-
logTrace
-
logErr
-
logErr
-
executeTest
public static Properties executeTest(Object testDriver, jakarta.servlet.http.HttpServletRequest req) throws jakarta.servlet.ServletException Use information provided in a HTTPRequest to execute a test method on a testDriver object. The test method is "discovered" at runtime using the reflection API. The testDriver could be any java object.- Throws:
jakarta.servlet.ServletException
-
propsToString
Convert Java Properties to a String, as expected by on the client side (WebServer)
-