Wish to create own Test Generator [message #44264] |
Thu, 01 December 2005 14:07 |
Eclipse User |
|
|
|
Originally posted by: anthony.marsden.ac.com
Hi,
I would like to create my own 'Test Generator..' plugin which is available
off the *.recmodel menu list.
Can anyone advise me of how to add my own generator? I've looked around
and found the HTTPRecorder class. But unsure what actually generates the
Java test code.
Any help appreciated.
Kind Regards
Anthony
|
|
|
|
Re: Wish to create own Test Generator [message #44893 is a reply to message #44865] |
Mon, 05 December 2005 17:29 |
Eclipse User |
|
|
|
Originally posted by: akuhn.arcor.de
Hi Anthony,
also check this news post, that i wrote some months ago...
news://news.eclipse.org:119/d319d5$gll$1@news.eclipse.org
Andi
Jeff Nevicosi wrote:
> Hi Anthony,
>
> "Test Generation" consists of two steps:
>
> 1) converting from the recording file (.recmodel) to a testsuite
> 2) converting from the testsuite to generated Java code
>
> For #1:
>
> You want to extend the TestGenerator extension point. There is some doc for
> this schema in the "org.eclipse.hyades.test.core" plugin, in TPTP 4.0 and
> later.
>
> An example of a class which extends TestGenerator is
> org.eclipse.hyades.execution.testgen.http.Testgen. This is located (again
> in TPTP 4.0 & later) in the org.eclipse.hyades.test.tools.core plugin.
>
> If you wish to create a new testsuite type, also of interest will be the
> org.eclipse.hyades.ui.typeDescriptions extension point.
>
> For #2:
>
> Look at the abstract class Generator (in o.e.h.test.tools.core) and the
> examples HttpGenerator (in o.e.h.test.ui.core).and PluginJUnitGenerator (in
> o.e.h.test.tools.core)
>
> Note the the Java code is generated through JET templates. The eclipse.org
> site has some useful docs & tutorials describing JET.
>
> Hope this helps.
>
> "Anthony Marsden" <anthony.marsden@ac.com> wrote in message
> news:6192e4fdacda78f0192832beb37e00ee$1@www.eclipse.org...
>
>>Hi,
>>I would like to create my own 'Test Generator..' plugin which is available
>>off the *.recmodel menu list.
>>
>>Can anyone advise me of how to add my own generator? I've looked around
>>and found the HTTPRecorder class. But unsure what actually generates the
>>Java test code.
>>
>>Any help appreciated.
>>
>>Kind Regards
>>Anthony
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03848 seconds