You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Eung-ju Park <co...@isoft.co.kr> on 2001/06/12 18:43:22 UTC

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...)?

PS. testlet is dropped?

*---------------------------------------------------*
 LUKE: Vader. Is the dark side stronger?
 YODA: No...no...no. Quicker, easier, more seductive.
*---------------------------------------------------*


RE: Extending Testlet....

Posted by Eung-ju Park <co...@isoft.co.kr>.

> -----Original Message-----
> From: Peter Donald [mailto:donaldp@apache.org]
> 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:colus@isoft.co.kr]
> >Sent: Wednesday, June 13, 2001 1:43 AM
> >To: avalon-dev@jakarta.apache.org
> >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: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


RE: Extending Testlet....

Posted by Peter Donald <do...@apache.org>.
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.

>-----Original Message-----
>From: Eung-ju Park [mailto:colus@isoft.co.kr]
>Sent: Wednesday, June 13, 2001 1:43 AM
>To: avalon-dev@jakarta.apache.org
>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). 

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: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


RE: Extending Testlet....

Posted by Eung-ju Park <co...@isoft.co.kr>.
Attached file is TestCase decorators.
TimeBombTestCase, RepeatDecorator and patch for AbstractTestlet

-----Original Message-----
From: Eung-ju Park [mailto:colus@isoft.co.kr]
Sent: Wednesday, June 13, 2001 1:43 AM
To: avalon-dev@jakarta.apache.org
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...)?

PS. testlet is dropped?

*---------------------------------------------------*
 LUKE: Vader. Is the dark side stronger?
 YODA: No...no...no. Quicker, easier, more seductive.
*---------------------------------------------------*