Hi David,

I've tried to reproduce your problem but without success. Could you
please try again with dummy tests? Also, I don't understand why you
create test suites for the individual tests. This is really not needed
as JUnit creates a default tests suite automatically. Here's how I would
write the tests:

public class AllTestApplications{
 
        public static Test suite()
        {
                TestSuite mysuite = new TestSuite();
                mysuite.addTestSuite(TestHello.class);
                mysuite.addTestSuite(TestHelloServlet.class);
                mysuite.addTestSuite(TestHelloService.class);
                return mysuite;
        }
}

(unless TestHello is really a suite itself)

same for AllTestFramework.

Also the log you've shown us does not correspond to the test listed in
your suites... (unless TestHello and the others are really test suites
themselves; i.e. they're not TestCase objects).

-Vincent

> -----Original Message-----
> From: David Lemieux (QC/EMC) [mailto:[EMAIL PROTECTED]
> Sent: 28 November 2003 17:47
> To: 'Cactus Users List'
> Subject: cactus.contextURL disapeared....
> 
> Anybody have an idea of where to start looking to solve this puzzle?
> 
> The test are grouped like this
>                                 AllTest(suite)
>                 ---------------------------------------
>         AllFrameworkTest (suite)
AllApplicationTest(suite)
> ---------------------------------       ------------------------------
> 6 Test (All failed)                     4 Test (All success)
> 
> 
> public class AllTest{
> 
>       public static Test suite()
>       {
>               String cactusURL =
> System.getProperty("cactus.contextURL")!=null?System.getProperty
> 
>       ("cactus.contextURL"):"cactus.contextURL not initiated";
>               LoggerFactory.getInstance().logInfo("All YYY
> Test","cactus.contextURL : " + cactusURL);
>               TestSuite mysuite = new TestSuite();
>               mysuite.addTest(AllTestApplications.suite());
>               mysuite.addTest(AllTestFramework.suite());
>               return mysuite;
>       }
> }
> 
> public class AllTestApplications{
> 
>       public static Test suite()
>       {
>               TestSuite mysuite = new TestSuite();
>               mysuite.addTest(TestHello.suite());
>               mysuite.addTest(TestHelloServlet.suite());
>               mysuite.addTest(TestHelloService.suite());
>               return mysuite;
>       }
> }
> 
> public class AllTestFramework{
> 
>       public static Test suite()
>       {
>               TestSuite mysuite = new TestSuite();
>               mysuite.addTest(TestConfigurationHandler.suite());
>               mysuite.addTest(TestNameValueList.suite());
>               return mysuite;
>       }
> }
> 
> 
> test:
>     [junit] Running XXX.AllTest
>     [junit] >>INFO LOGGED, ORIGIN: All YYY Test DESCRIPTION:
> cactus.contextURL : http://XXX:7001/YYY
>     [junit] >>INFO LOGGED, ORIGIN: TestHello DESCRIPTION: suite()
>     [junit] >>INFO LOGGED, ORIGIN: TestHelloServlet DESCRIPTION:
suite()
>     [junit] >>INFO LOGGED, ORIGIN: TestHelloService DESCRIPTION:
suite()
>     [junit] >>TIMER TestConfigurationHandler - suite started at :
> 1070036023017
>     [junit] >>TIMER TestNameValueList - suite started at :
1070036023382
>     [junit] Tests run: 10, Failures: 0, Errors: 6, Time elapsed: 6.636
sec
>     [junit] Testsuite: XXX.AllTest
>     [junit] Tests run: 10, Failures: 0, Errors: 6, Time elapsed: 6.636
sec
> 
>     [junit] Testcase: testXXX took 4.064 sec
>     [junit] Testcase: testResultSessionBean took 0.677 sec
>     [junit] Testcase: testResponseHelloServlet took 0.307 sec
>     [junit] Testcase: testGetMessageHelloEJBService took 0.089 sec
>     [junit] Testcase: testGetParameterCount took 0.193 sec
>     [junit]     Caused an ERROR
>     [junit] Missing Cactus property [cactus.contextURL]
>       <--------------------------------
>     [junit] org.apache.cactus.util.ChainedRuntimeException: Missing
Cactus
> property [cactus.contextURL]
>     [junit]     at
>
org.apache.cactus.configuration.BaseConfiguration.getContextURL(BaseConf
ig
> uration.java:114)
>     [junit]     at
>
org.apache.cactus.configuration.AbstractWebConfiguration.getRedirectorUR
L_
> aroundBody0(AbstractWebConfiguration.java:85)
>     [junit]     at
>
org.apache.cactus.configuration.AbstractWebConfiguration.getRedirectorUR
L_
> aroundBody1$advice(AbstractWebConfiguration.java:240)
>     [junit]     at
>
org.apache.cactus.configuration.AbstractWebConfiguration.getRedirectorUR
L(
> AbstractWebConfiguration.java)
>     [junit]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.callRunTest(De
fa
> ultHttpClient.java:197)
>     [junit]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundB
od
> y0(DefaultHttpClient.java:119)
>     [junit]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundB
od
> y1$advice(DefaultHttpClient.java:240)
>     [junit]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(Default
Ht
> tpClient.java)
>     [junit]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(W
eb
> ClientTestCaseDelegate.java:333)
>     [junit]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTe
st
> (WebClientTestCaseDelegate.java:281)
>     [junit]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebC
li
> entTestCaseDelegate.java:257)
>     [junit]     at
>
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:300
)
>     [junit]     at
> org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
>     [junit]     at
>
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291
)
>     [junit]     at
> org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
>     [junit]     at
>
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal
le
> r.java:156)
>     [junit]     at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB
od
> y0(AbstractWebTestController.java:130)
>     [junit]     at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB
od
> y1$advice(AbstractWebTestController.java:158)
>     [junit]     at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac
tW
> ebTestController.java)
>     [junit]     at
>
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle
tT
> estRedirector.java:138)
>     [junit]     at
>
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice
(S
> ervletTestRedirector.java:158)
>     [junit]     at
>
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec
to
> r.java)
>     [junit]     at
>
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet
Te
> stRedirector.java:109)
>     [junit]     at
>
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(
Se
> rvletTestRedirector.java:158)
>     [junit]     at
>
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect
or
> .java)
>     [junit]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>     [junit]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>     [junit]     at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rv
> letStubImpl.java:1053)
>     [junit]     at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
ja
> va:387)
>     [junit]     at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>     [junit]     at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27
> )
>     [junit]     at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un
> (WebAppServletContext.java:6316)
>     [junit]     at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bj
> ect.java:317)
>     [junit]     at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
>     [junit]     at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
et
> Context.java:3622)
>     [junit]     at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
ja
> va:2569)
>     [junit]     at
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>     [junit]     at
> weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>       ...
>       Every error are the same
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to