Re: problem getting test results
Paulo R C Siqueira <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Kazuhito, I'm using NetBeans 5.0 to run the tests. I have a simple test extending ServletTestCase with a simple test method that only calls 'assertTrue', just to be sure when the tests are running correctly. Since I don't know how exactly NetBeans handle the tests internally, and I'm using the default configurations for JBoss, it seens more likely that (2) is what is happening. What should I do? Thank you very much for the help! =) Kazuhito SUGURI <[email protected]> escreveu: Hi Paulo, In article <[email protected]>, Mon, 20 Feb 2006 16:58:25 -0300 (ART), Paulo R C Siqueira wrote: gangrelbr1> I'm having problems getting the Cactus test results. When I run my tests I always get this exception: gangrelbr1> gangrelbr1> 15:53:51,882 ERROR [AbstractWebTestCaller] Error getting test result. This could happen for example if you're using a load-balancer. Please disable it before running Cactus tests. How are you runnning the test? By using ServletTestRunner, for example? The client side of Cactus sends requests to server side twice for each testXXX() method. The first request is to execute the test. The test result will be saved as a context scope attribute. The second request is to retrieve test result from the context scope. The error you have encountered happens on the second request and it can happen if the context scope attribute for the test result does not exist. Possible causes are (1) the server-side context receiving the second request from the client-side is not the one that received the first request. (2) the client-side is making the second request before the first request fully finished. So, we must see test execution sequence including the client-side to know what is really happening in your case. Regards, ---- Kazuhito SUGURI --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] _________________________________ Paulo "gangrel-br" R C Siqueira Sun Certified Programmer for the Java 2 Platform 1.4 Mogi das Cruzes - SP - Brazil Contact: (11) 8149-5046 --------------------------------- Yahoo! Acesso Grátis Internet rápida e grátis. Instale o discador agora!