Hi Nishit, I think you might not be running Cactus tests the correct way. Could you give us more information as to how you start a cactus test?
Thanks -Vincent > -----Original Message----- > From: Nishit Kumar [mailto:[EMAIL PROTECTED] > Sent: 13 November 2003 07:15 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: ~script : > > > 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.TestControllerS er > vle > 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. > > ************************************************************************ ** > * --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
