No the result of each test is independent, however the methods
called to get the actualResult are the same, the only thing that is
different is the input data to those methods which I have in an XML
file. So I just want to have some kind of a loop that loops through
and checks for the results using the assert. I could not figure this
out.
Zoran
p.s. Thanks for the reply.
p.s. If there is a link to a simple code sample, that would be great.
--- In [EMAIL PROTECTED], "Jonathan Oddy" <[EMAIL PROTECTED]> wrote:
> Is the result of each test run dependent on the previous? If not
you could hoist your repeating logic into a suite, that way you'd
get a report of all successes and failures. Might not be applicable
in your case as you've not provided any hint of what your test does.
>
> Jonathan
>
> On Tue, 26 Oct 2004 21:54:37 -0000, zoran_101 <[EMAIL PROTECTED]>
wrote:
> >
> > Hi,
> >
> > Hopefully this is an easy question fro somebody
> >
> > Lets say I have a test that I have to run for 100 times
> >
> > public void testABC()
> > {
> >�������� for(int i=0;i<100;i++)
> >�������� {
> >���������������� assertEquals(someMessage, expectedResult,
> > actualResult)
> >�������� }
> > }
> >
> > expectedResult and actualResult are different values in every
run,
> > so if the assert fails after lets say 50 runs the loop will not
> > continue.
> >
> > My question is how can I achieve the run of all the 100 test
even if
> > some of them fail.
> >
> > Thanks
> > Zoran
> >
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/junit/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
