...
- bean - defines the name of the test bean
- method - defines the name of the test method to be executed
- connect - if true the test servlet will send the report to the HTTP test runner
The httptestrunner.properties sets the port number of the socket server and the test servlet URL.
As shown above the test runner reads the test beans to be executed from the same Spring configuration file specified byNo Format # The test runner properties port = 10999 servletUrl = http://localhost:8080/uP3/TestServlet contextXmlFile = test_servlet_beans.xml
contextXmlFile property.
HttpTestCase class
It is an extension of JUnit's TestCase with its own initTest() method to initialize a test bean with ServletConfig, HttpServletRequest and HttpServletResponse. Accepts all assertions supported by JUnit. Subclasses need to be registered within the Spring config file of the test servlet.