jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nishit Kumar" <nishit.ku...@wipro.com>
Subject ~script :
Date Thu, 13 Nov 2003 06:15:12 GMT

Hi ,
 
I am trying to run the simple test script given below.
 
import org.apache.cactus.*;
import junit.extensions.*;
import junit.framework.*;
public class TestControllerServlet extends ServletTestCase {
 /** test Dispatcher */
 private static Dispatcher servlet;
 /** Constructor of the Testclass */
 public TestControllerServlet(String theName) {
     super(theName);
 }
 public static Test suite()
 {
     return new TestSuite(TestControllerServlet.class);
 }
 public static void main(String[] theArgs)
 {
     junit.textui.TestRunner.run(suite());
 }

 /** Perform initial test setup */
    public void setUp()
    {
  this.servlet = new Dispatcher();
    }

    public void testHandleRequest()
    {
  try
  {
   System.out.println("Inside the testHandleRequest");
   assertEquals(true,this.servlet.handleRequest(this.request,this.response,0));
  }
  catch (Exception e)
  {
      System.out.println(e.getMessage());
      e.printStackTrace();
      fail("Excpetion caught running ACRMFilter tests");
  }
    }
}
 
 
 
I am getting the following exception:
 
1) On the client side :
 
 testHandleRequest(com.hutchison3g.core.sdf.proxy.servlet.TestControllerServle
t)org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results
 at [http://localhost:7015//ServletRedirector]
 
2) On the server side:
 
6521002,name=sdf,context-path=)] Servlet failed with ServletException
javax.servlet.ServletException: Missing service name parameter [ServletTestRedir
ector_Service] in HTTP request.
 
Can anyone help me with this.
 
Thanks & Regards,
Nishit

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message