Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. bean - defines the name of the test bean
  2. method - defines the name of the test method to be executed
  3. 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.
    No Format
    # The test runner properties
    # Server socket port for communication with the test servlet
    server_socket_port = 10999
    # Tomcat port
    web_app_port = 8080
    # Test servlet URL, must start with "/"
    servletUrl = http://localhost:8080/uP3/TestServlet
    
    The test runner reads the list of test beans from the same Spring configuration file which URL is provided by the test servlet.

    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.