Hi, I am also using the Cactus1.4.1,Struts 1.0.2 and Strutstest1.8.
But when I test my code through Cactus TestCase it is throwing a same exception .E. Time: 0.921 There was 1 error: 1) testSuccessfulLogin(org.apache.cactus.sample.TestCactusLoginAction) org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results. This is probably due to an error that happened on the server side when trying to execute the tests. Here is what was returned by the server : [ <html lang="en"> <head> <title>Login</title> <base href="http://localhost/strutstest/login.jsp"> </head> <body bgcolor="white"> <form name="loginForm" method="POST" action="/strutstest;jsessionid=6A8FA34E5674 4467758A7F7D39D752BC"> <table border="0" width="100%"> <tr> <th align="right"> Username </th> <td align="left"> <input type="text" name="username" maxlength="16" size="16" value=""> </td> </tr> <tr> <th align="right"> Password </th> <td align="left"> <input type="password" name="password" maxlength="16" size="16" value=""> </td> </tr> <tr> <td align="right"> <input type="submit" name="submit" value="Submit"> </td> <td align="left"> <input type="reset" name="reset" value="Reset"> </td> </tr> </table> </form> <script language="JavaScript" type="text/javascript"> <!-- document.forms["loginForm"].elements["username"].focus() // --> </script> </body> </html> ] at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(Abstract HttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):120) at org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHt tpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient .java;org/apache/cactus/util/log/LogAspect.aj(1k):104) at org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestC ase.java:260) at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195) at org.apache.cactus.sample.TestCactusLoginAction.main(TestCactusLoginAc tion.java:59) org.apache.cactus.client.ParsingException: Not a valid response at org.apache.cactus.client.WebTestResultParser.readRootElement(WebTestR esultParser.java;org/apache/cactus/util/log/LogAspect.aj(1k):140) at org.apache.cactus.client.WebTestResultParser.dispatch29_parse(WebTest ResultParser.java;org/apache/cactus/util/log/LogAspect.aj(1k):101) at org.apache.cactus.client.WebTestResultParser.around29_parse(WebTestRe sultParser.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at org.apache.cactus.client.WebTestResultParser.parse(WebTestResultParse r.java;org/apache/cactus/util/log/LogAspect.aj(1k):96) at org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractHtt pClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):230) at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(Abstract HttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):114) at org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHt tpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218) at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient .java;org/apache/cactus/util/log/LogAspect.aj(1k):104) at org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestC ase.java:260) at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195) at org.apache.cactus.sample.TestCactusLoginAction.main(TestCactusLoginAc tion.java:59) FAILURES!!! Tests run: 2, Failures: 0, Errors: 1 Press any key to continue... Can anybody tell me what wrong thing I am doing Thanks Asit -----Original Message----- From: Qingxian Wang [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 5:25 PM To: [EMAIL PROTECTED] Subject: org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results Hi, I am using Cactus1.4.1, Struts 1.1b2 and Strutstest1.8. In my test cases, if I call either the method verifyForward() or the mthod verifyForwardPath() after actionPerform(), I got the org.apache.cactus.util.ChainedRuntimeException althout the response page is received. Any idear what is wrong? Thanks Qingxian The trace of the exception at the client side is as follows: 1) testViewActivatedComponents(com.systemsunion.framework.tools.web.deploye r.ac tion.CactusTest_DeployActions) org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results. This is probably due to an error that happened on the server side when trying to execute the tests. Here is what was returned by the server : [ <html lang="en"> <head> <title>No Component Found</title> <link rel="stylesheet" href="../stylesheets/deployer_style_ie.css" type="text/css"> <base href="http://localhost:8080/evodeployer/layouts/root_layout.jsp"> </head> <body> <!-- ============================================================ --> <!-- Begin topBanner --> <!-- ============================================================ --> <table background='../images/top.gif' width='700' height='75' border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <pre><h1>Evolution</h1></pre> <div align="right"> <pre><a href="http://rdsspr2k/evoweb/" title="Go to the Evolution Web site">http://evolution.systemsunion.com</a> </pre> </div> </td> </tr> </table> <!-- ============================================================ --> <!-- End topBanner --> <!-- ============================================================ --> <!-- Begin lowerBanner --> <!-- ============================================================ --> <table background='../images/top1.gif' width='700' height='13' border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <img src="/evodeployer/images/pixel.gif;jsessionid=00FFEA3EF798CBE89DCAFFD2CA 70D7 5E" height="1" width="1"> </td> </tr> </table> <!-- ============================================================ --> <!-- End lowerBanner --> <!-- ============================================================ --> <!-- Begin body content --> <br> <br> <br> <br> <CENTER> <b>No component found from the deployer. <a href="/evodeployer/secure/main. jsp;jsessionid=00FFEA3EF798CBE89DCAFFD2CA70D75E" title="Back to deploy tool main page">Back to main page</a>.</b> </CENTER> <br> <br> <br> <!-- End body content --> <!-- ============================================================ --> <!-- Begin footer --> <br> <table width="700" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td rowspan="2" width="65"> <div align="left"> <font size="2" face="Arial, Helvetica, sans-serif" color="#3333FF"> <img src="/evodeployer/images/logo.gif;jsessionid=00FFEA3EF798CBE89DCAFFD2CA7 0D75 E" height="58" width="60" alt="Systems Union"> </font> </div> </td> <td width="635"> <font size="2" face="Arial, Helvetica, sans-serif"> Copyright 2002 Systems Union Plc. All Rights Reserved </font> </td> </tr> <tr> <td width="635"> <font size="2" face="Arial, Helvetica, sans-serif">Browse our <a href="http://rdsspr2k/evoforums/" title="R&D Evolution Developers Forums"><font color="#0000FF">: <font color="#006699">R&D Evolution Developers Forums</font></font></a> with questions or comments. <br> Websites:<a href="http://rdsspr2k/evoweb/" title="Go to the Evolution Web site"><font color="#006699">http://evolution.systemsunion.com</font></a> <font color="#3333FF"><br> </font> </td> </tr> </table> <!-- End footer --> </body> </html> ] at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(AbstractHtt pCli ent.java;org/apache/cactus/util/log/LogAspect.aj(1k):120) at org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHttpC lien t.java;org/apache/cactus/util/log/LogAspect.aj(1k):1236) at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja va;o rg/apache/cactus/util/log/LogAspect.aj(1k):104) at org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestCase .jav a:260) at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195) org.apache.cactus.client.ParsingException: Not a valid response at org.apache.cactus.client.WebTestResultParser.readRootElement(WebTestResu ltPa rser.java;org/apache/cactus/util/log/LogAspect.aj(1k):140) at org.apache.cactus.client.WebTestResultParser.dispatch29_parse(WebTestRes ultP arser.java;org/apache/cactus/util/log/LogAspect.aj(1k):101) at org.apache.cactus.client.WebTestResultParser.around29_parse(WebTestResul tPar ser.java;org/apache/cactus/util/log/LogAspect.aj(1k):1236) at org.apache.cactus.client.WebTestResultParser.parse(WebTestResultParser.j ava; org/apache/cactus/util/log/LogAspect.aj(1k):96) at org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractHttpCl ient .java;org/apache/cactus/util/log/LogAspect.aj(1k):230) at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(AbstractHtt pCli ent.java;org/apache/cactus/util/log/LogAspect.aj(1k):114) at org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHttpC lien t.java;org/apache/cactus/util/log/LogAspect.aj(1k):1236) at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja va;o rg/apache/cactus/util/log/LogAspect.aj(1k):104) at org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestCase .jav a:260) at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195 This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this e-mail in error you must not copy, distribute or take any action in reliance on it. Please notify the sender by e-mail or telephone. We utilise an anti-virus system and therefore any files sent via e-mail will have been checked for known viruses. You are however advised to run your own virus check before opening any attachments received as we will not in any event accept any liability whatsoever once an e-mail and/or any attachment is received. Any views expressed by an individual within this e-mail do not necessarily reflect the views of Systems Union Group plc or any of its subsidiary companies. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
**************************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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
