Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Wish to create own Test Generator
Wish to create own Test Generator [message #44264] Thu, 01 December 2005 09:07 Go to next message
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 #44865 is a reply to message #44264] Mon, 05 December 2005 10:39 Go to previous messageGo to next message
Jeff Nevicosi is currently offline Jeff Nevicosi
Messages: 5
Registered: July 2009
Junior Member
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
>
Re: Wish to create own Test Generator [message #44893 is a reply to message #44865] Mon, 05 December 2005 12:29 Go to previous message
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
>>
>
>
>
Previous Topic:TPTPExecutionPlugin.zip corrupt
Next Topic:How to write a profiling backend for the TPTP 4.1 AC?
Goto Forum:
  


Current Time: Fri Apr 18 06:36:24 EDT 2014

Powered by FUDForum. Page generated in 0.01742 seconds