Re: In html report how can I display Class names.
senthil kumar <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Kazuhito, You are right. I modified org.apache.cactus.internal.server.runner.XMLFormatter#endTest(Test) this to get a class name. But since these test classes were wrapped into ServletTestCase I am getting the class name as ServletTestCase. From the java doc I was not able to identify exactly from where I can get the original test class name. From testCase or Test object the suite name or class name returned is not the original class name. I noticed getWrappedTestClassName() in AbstractWebTestCaller.java will return the right class name. Is that right? Or could you please advice me where can I get this class name. Thanks, Senthil. --- Kazuhito SUGURI <[email protected]> wrote: > Hi Senthil, > > In article > <[email protected]>, > Thu, 2 Feb 2006 15:23:32 -0800 (PST), > senthil kumar <[email protected]> wrote: > senthil_cbe> 1. I am not using ANT to generate a > report. Right now > senthil_cbe> I am running my test cases from > browser. I created a > senthil_cbe> simple UI to display and run test cases > for my > senthil_cbe> application. > > I see. > > > senthil_cbe> Here I didn't see any class name, I > beleive even if I > senthil_cbe> modify the XLST unless there is an > entry in the XML > senthil_cbe> document it wont display the class > name. So I need to > senthil_cbe> introduce one more attribute class name > while writing > senthil_cbe> XML am I right? > > Yes, you are right. > > You have to customize > org.apache.cactus.internal.server.runner.XMLFormatter > class and XSL stylesheet if you are using > ServletTestRunner. > > org.apache.cactus.internal.server.runner.XMLFormatter#endTest(Test) > method is the first point to modify, I think. > > Hope this helps, > ---- > Kazuhito SUGURI > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [email protected] > For additional commands, e-mail: > [email protected] > >