Hi Kim, > -----Original Message----- > From: Kim N. Jensen [mailto:[EMAIL PROTECTED] > Sent: 02 April 2004 13:28 > To: [EMAIL PROTECTED] > Subject: No class name in result? > > > > > > Hi > If you are having more Tests that each have similar names, like > - ClassA.testMethod123 > - ClassB.testMethod123 > > Then you cannot tell from the result in which class the testMethod123 was > run. > > The result looks like this: > <testsuites> > <testsuite name="MyServiceTestWrapperServlet" tests="2" failures="0" > errors="0" time="2.000"> > <testcase name="testMethod123" time="1.000"/> > <testcase name="testMethod123" time="1.000"/> > > > But what you would like to know is the class name. > Perhaps something like: > > <testsuites> > <testsuite name="MyServiceTestWrapperServlet" tests="2" failures="0" > errors="0" time="2.000"> > <testsuite name="ClassA" tests="1" failures="0" errors="0" > time="1.000"> > <testcase name="testMethod123" time="1.000"/> > <testsuite name="ClassB" tests="1" failures="0" errors="0" > time="1.000"> > <testcase name="testMethod123" time="1.000"/> > > > Am I missing something here or is this an error in cactus?
Yes, you're missing something... ;-) See the image in http://jakarta.apache.org/cactus/integration/integration_browser.html The name attribute in <testsuite> is the name of the test class and the name attribute in testcase is the name of the test method. Note that you cannot have 2 tests with the same name in a testcase. -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
