> -----Original Message-----
> From: Peter Donald [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 2:04 PM
> To: Avalon Development
> Subject: RE: Extending Testlet....
>
>
> At 05:20 AM 6/13/01 +0900, Eung-ju Park wrote:
> >Attached file is TestCase decorators.
> >TimeBombTestCase, RepeatDecorator and patch for AbstractTestlet
>
> Could you explain the use of RepeatDecorator? Other than that look sgood.
oh. sorry. not RepeatDecorator. RepeatTestCase.
I think better names for [Repeat|TimeBomb]TestCases... :-|. current name is
suck.
first reason is it' very easy to implement. :-)
I write string subsitude function. I want to test performace of subsitude
algorithms.
measuring one time execution of functions is not accurate.
therefore I need repeated testcase.
see below codes.
public void testReplace()
{
String str = "AAA BBB CCC";
assertEquality( "AAA DDD CCC", StringUtil.replace( str, "BBB", "DDD" ) );
}
...
public TestSuite getTestSuite()
{
...
...
// execute replace func 100 times. must be completed in 1000ms.
TestCase testCase = new TimeBombTestCase( "BenchReplace", new
RepeatTestCase( createTestCase( "Replace" ), 100 ), 1000 );
...
}
>
> >-----Original Message-----
> >From: Eung-ju Park [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, June 13, 2001 1:43 AM
> >To: [EMAIL PROTECTED]
> >Subject: Extending Testlet....
> >
> >
> >Hi.
> >
> >I write simple TestCase decorator.
> >RepeatTestCase is TestCase for need repeating.
> >My implementation is right?
> >I think RepeatTestCase is looks good.
> >but SampleRepeatTestlet is so dirty...
> >How to improve testlet for easy use of many *TestCase(RepeatTestCase,
> >LoadTestCase...)?
>
> I was eventually going to get around to rewriting parts of it so that you
> could have Benchlets(load testing and performance evaluation)/ XML-Java
> code generated testlet (ie test generated code with generated testlets
> though this may be specific to my use case etc).
testlet need more more extensions.
>
> It never really happenend though. Suggestions welcome.
>
> >PS. testlet is dropped?
>
> Maybe. I have quite a bit of code that depends on teslet for unit testing.
> Easily in excess of 300 files. So it will be supported for as long as they
> exist. I wanted to wait till Ant2 was developed before moving onto
> something else but I am not sure when/if that will happen.
>
> Cheers,
>
> Pete
>
> *-----------------------------------------------------*
> | "Faced with the choice between changing one's mind, |
> | and proving that there is no need to do so - almost |
> | everyone gets busy on the proof." |
> | - John Kenneth Galbraith |
> *-----------------------------------------------------*
>
>
> ---------------------------------------------------------------------
> 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]