Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » HTTP Generate Wizard
HTTP Generate Wizard [message #14354] Wed, 06 April 2005 18:19 Go to next message
Eclipse UserFriend
Originally posted by: akuhn.arcor.de

Hi,

using hyades 3.2 i tried to implement my own Arbiter. Of course would be
easy to replace the DefaultTestArbiter in a generate Java Source from
a HTTP URL Test, but i wanted to try to write my own Code Generator.
I searched the source tree for the Files and found
org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
to generate the Java Source of the TestSuite. Looking back in the call
tree, i also found HttpGenerator and HttpGenerateWizard. It seems, that
i hava to implement my own GenerateWizard to be able to generate my own
code, is that right ?
For testing i defined a second entry in
plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
<generateWizard
name="%GEN_WTITLE"
type="org.eclipse.hyades.test.http.junit.testSuite"
icon="icons/full/ctool16/generate_wiz.gif"
description="%GEN_WDESC"

class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard "
extension="testsuite">
</generateWizard>

and just change name and description. I hoped in the
Workbench->Properties->Test->Test Associations i could add the new
generateWizard.
Can someone help me on this ? How can i implement my own HTTP URL Test
Java Code Generator ?

Thanks,
Andi
Re: HTTP Generate Wizard [message #14600 is a reply to message #14354] Fri, 08 April 2005 17:28 Go to previous messageGo to next message
Jeff Nevicosi is currently offline Jeff NevicosiFriend
Messages: 5
Registered: July 2009
Junior Member
Andreas,

As you suspect, to create a new HTTP Generator, you must create an extension
of HttpGenerator and HttpGenerateWizard, as well as create a new extension:

<extension

point="org.eclipse.hyades.test.ui.generateWizards">

<generateWizard

extension="testsuite"

type="org.eclipse.hyades.test.http.junit.testSuite"

icon="icons/full/obj16/http_generate_wiz.gif"

class=" org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard. HttpGener
ateWizard2"

description="Description"

name="Generator Title"/>

</extension>

I have verified that if the new class (in my example, HttpGenerateWizard2)
exists, it WILL show up in the Test Associations preference page. If you
set your new Generator to the default, it will generate using the Generate
menu action.

I believe that when the preference page is populated, the classname is also
checked (and the duplicity of it). This could explain why your test of just
changing the name & description failed.

It may also interest you that GenTestSuite.java is create using the JET
builder. The files in the templates\ directory are used to generate that
java class. These template files should be much easier to read &
reverse-engineer. It's not required to use JET for a new generator,
however. For more information, start here:
http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml

Of course, you could always just edit the generated code.

Hope this helps,
Jeff Nevicosi
IBM
"Andreas Kuhn" <akuhn@arcor.de> wrote in message
news:d319d5$gll$1@news.eclipse.org...
> Hi,
>
> using hyades 3.2 i tried to implement my own Arbiter. Of course would be
> easy to replace the DefaultTestArbiter in a generate Java Source from
> a HTTP URL Test, but i wanted to try to write my own Code Generator.
> I searched the source tree for the Files and found
> org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
> to generate the Java Source of the TestSuite. Looking back in the call
> tree, i also found HttpGenerator and HttpGenerateWizard. It seems, that
> i hava to implement my own GenerateWizard to be able to generate my own
> code, is that right ?
> For testing i defined a second entry in
> plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
> <generateWizard
> name="%GEN_WTITLE"
> type="org.eclipse.hyades.test.http.junit.testSuite"
> icon="icons/full/ctool16/generate_wiz.gif"
> description="%GEN_WDESC"
>
>
class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard
"
> extension="testsuite">
> </generateWizard>
>
> and just change name and description. I hoped in the
> Workbench->Properties->Test->Test Associations i could add the new
> generateWizard.
> Can someone help me on this ? How can i implement my own HTTP URL Test
> Java Code Generator ?
>
> Thanks,
> Andi
Re: HTTP Generate Wizard [message #14692 is a reply to message #14600] Sat, 09 April 2005 13:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akuhn.arcor.de

Hi Jeff,

thanks for the info.
Unfortunatly i cannot find the templates directory you mentioned.
Where is it located ?

Thanks in advance,
Andi

Jeff Nevicosi wrote:
> Andreas,
>
> As you suspect, to create a new HTTP Generator, you must create an extension
> of HttpGenerator and HttpGenerateWizard, as well as create a new extension:
>
> <extension
>
> point="org.eclipse.hyades.test.ui.generateWizards">
>
> <generateWizard
>
> extension="testsuite"
>
> type="org.eclipse.hyades.test.http.junit.testSuite"
>
> icon="icons/full/obj16/http_generate_wiz.gif"
>
> class=" org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard. HttpGener
> ateWizard2"
>
> description="Description"
>
> name="Generator Title"/>
>
> </extension>
>
> I have verified that if the new class (in my example, HttpGenerateWizard2)
> exists, it WILL show up in the Test Associations preference page. If you
> set your new Generator to the default, it will generate using the Generate
> menu action.
>
> I believe that when the preference page is populated, the classname is also
> checked (and the duplicity of it). This could explain why your test of just
> changing the name & description failed.
>
> It may also interest you that GenTestSuite.java is create using the JET
> builder. The files in the templates\ directory are used to generate that
> java class. These template files should be much easier to read &
> reverse-engineer. It's not required to use JET for a new generator,
> however. For more information, start here:
> http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml
>
> Of course, you could always just edit the generated code.
>
> Hope this helps,
> Jeff Nevicosi
> IBM
> "Andreas Kuhn" <akuhn@arcor.de> wrote in message
> news:d319d5$gll$1@news.eclipse.org...
>
>>Hi,
>>
>>using hyades 3.2 i tried to implement my own Arbiter. Of course would be
>> easy to replace the DefaultTestArbiter in a generate Java Source from
>>a HTTP URL Test, but i wanted to try to write my own Code Generator.
>>I searched the source tree for the Files and found
>>org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
>>to generate the Java Source of the TestSuite. Looking back in the call
>>tree, i also found HttpGenerator and HttpGenerateWizard. It seems, that
>>i hava to implement my own GenerateWizard to be able to generate my own
>>code, is that right ?
>>For testing i defined a second entry in
>>plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
>><generateWizard
>> name="%GEN_WTITLE"
>> type="org.eclipse.hyades.test.http.junit.testSuite"
>> icon="icons/full/ctool16/generate_wiz.gif"
>> description="%GEN_WDESC"
>>
>>
>
> class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard
> "
>
>> extension="testsuite">
>> </generateWizard>
>>
>>and just change name and description. I hoped in the
>>Workbench->Properties->Test->Test Associations i could add the new
>>generateWizard.
>>Can someone help me on this ? How can i implement my own HTTP URL Test
>>Java Code Generator ?
>>
>>Thanks,
>>Andi
>
>
>
Re: HTTP Generate Wizard [message #14721 is a reply to message #14692] Mon, 11 April 2005 04:03 Go to previous messageGo to next message
Jeff Nevicosi is currently offline Jeff NevicosiFriend
Messages: 5
Registered: July 2009
Junior Member
Andreas,

In Hyades 3.3 and earlier, the 'templates' directory is located directly off
the org.eclipse.hyades.test.http. There are also dependent files within the
'templates' directory within org.eclipse.hyades.test.java.

In TPTP 4.0, the templates directory has been moved and renamed:

in org.eclipse.hyades.test.tools.ui: "templates_http"

in org.eclipse.hyades.test.tools.core: "templates_java" and
"templates_manual"

JN

"Andreas Kuhn" <akuhn@arcor.de> wrote in message
news:4257DB96.4040604@arcor.de...
> Hi Jeff,
>
> thanks for the info.
> Unfortunatly i cannot find the templates directory you mentioned.
> Where is it located ?
>
> Thanks in advance,
> Andi
>
> Jeff Nevicosi wrote:
> > Andreas,
> >
> > As you suspect, to create a new HTTP Generator, you must create an
extension
> > of HttpGenerator and HttpGenerateWizard, as well as create a new
extension:
> >
> > <extension
> >
> > point="org.eclipse.hyades.test.ui.generateWizards">
> >
> > <generateWizard
> >
> > extension="testsuite"
> >
> > type="org.eclipse.hyades.test.http.junit.testSuite"
> >
> > icon="icons/full/obj16/http_generate_wiz.gif"
> >
> >
class=" org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard. HttpGener
> > ateWizard2"
> >
> > description="Description"
> >
> > name="Generator Title"/>
> >
> > </extension>
> >
> > I have verified that if the new class (in my example,
HttpGenerateWizard2)
> > exists, it WILL show up in the Test Associations preference page. If
you
> > set your new Generator to the default, it will generate using the
Generate
> > menu action.
> >
> > I believe that when the preference page is populated, the classname is
also
> > checked (and the duplicity of it). This could explain why your test of
just
> > changing the name & description failed.
> >
> > It may also interest you that GenTestSuite.java is create using the JET
> > builder. The files in the templates\ directory are used to generate
that
> > java class. These template files should be much easier to read &
> > reverse-engineer. It's not required to use JET for a new generator,
> > however. For more information, start here:
> > http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml
> >
> > Of course, you could always just edit the generated code.
> >
> > Hope this helps,
> > Jeff Nevicosi
> > IBM
> > "Andreas Kuhn" <akuhn@arcor.de> wrote in message
> > news:d319d5$gll$1@news.eclipse.org...
> >
> >>Hi,
> >>
> >>using hyades 3.2 i tried to implement my own Arbiter. Of course would be
> >> easy to replace the DefaultTestArbiter in a generate Java Source from
> >>a HTTP URL Test, but i wanted to try to write my own Code Generator.
> >>I searched the source tree for the Files and found
> >>org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
> >>to generate the Java Source of the TestSuite. Looking back in the call
> >>tree, i also found HttpGenerator and HttpGenerateWizard. It seems, that
> >>i hava to implement my own GenerateWizard to be able to generate my own
> >>code, is that right ?
> >>For testing i defined a second entry in
> >>plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
> >><generateWizard
> >> name="%GEN_WTITLE"
> >> type="org.eclipse.hyades.test.http.junit.testSuite"
> >> icon="icons/full/ctool16/generate_wiz.gif"
> >> description="%GEN_WDESC"
> >>
> >>
> >
> >
class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard
> > "
> >
> >> extension="testsuite">
> >> </generateWizard>
> >>
> >>and just change name and description. I hoped in the
> >>Workbench->Properties->Test->Test Associations i could add the new
> >>generateWizard.
> >>Can someone help me on this ? How can i implement my own HTTP URL Test
> >>Java Code Generator ?
> >>
> >>Thanks,
> >>Andi
> >
> >
> >
Re: HTTP Generate Wizard [message #14779 is a reply to message #14721] Mon, 11 April 2005 13:43 Go to previous messageGo to next message
Jeff Nevicosi is currently offline Jeff NevicosiFriend
Messages: 5
Registered: July 2009
Junior Member
One additional point, which I may not have been clear on:

The templates directory is available only in the source code. If you
install the TPTP runtime binaries only, you will not find these JET
templates.

Jeff Nevicosi
IBM Rational

"Jeff Nevicosi" <nevicosi@us.ibm.com> wrote in message
news:d3ctbl$ded$1@news.eclipse.org...
> Andreas,
>
> In Hyades 3.3 and earlier, the 'templates' directory is located directly
off
> the org.eclipse.hyades.test.http. There are also dependent files within
the
> 'templates' directory within org.eclipse.hyades.test.java.
>
> In TPTP 4.0, the templates directory has been moved and renamed:
>
> in org.eclipse.hyades.test.tools.ui: "templates_http"
>
> in org.eclipse.hyades.test.tools.core: "templates_java" and
> "templates_manual"
>
> JN
>
Re: HTTP Generate Wizard [message #49488 is a reply to message #14600] Sat, 07 January 2006 14:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akuhn.arcor.de

Hi Jeff,

there seems to be a change since TPTP 4.1. The GenerateWizard Class is
deprecated and the JavaDoc says, it is replaced by the auto-sync feature.
What exactly is this auto-sync, and how can i use it to generate my own
TestSourceCode based on a TestCase ?

Thanks,
Andi

Jeff Nevicosi wrote:
> Andreas,
>
> As you suspect, to create a new HTTP Generator, you must create an extension
> of HttpGenerator and HttpGenerateWizard, as well as create a new extension:
>
> <extension
>
> point="org.eclipse.hyades.test.ui.generateWizards">
>
> <generateWizard
>
> extension="testsuite"
>
> type="org.eclipse.hyades.test.http.junit.testSuite"
>
> icon="icons/full/obj16/http_generate_wiz.gif"
>
> class=" org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard. HttpGener
> ateWizard2"
>
> description="Description"
>
> name="Generator Title"/>
>
> </extension>
>
> I have verified that if the new class (in my example, HttpGenerateWizard2)
> exists, it WILL show up in the Test Associations preference page. If you
> set your new Generator to the default, it will generate using the Generate
> menu action.
>
> I believe that when the preference page is populated, the classname is also
> checked (and the duplicity of it). This could explain why your test of just
> changing the name & description failed.
>
> It may also interest you that GenTestSuite.java is create using the JET
> builder. The files in the templates\ directory are used to generate that
> java class. These template files should be much easier to read &
> reverse-engineer. It's not required to use JET for a new generator,
> however. For more information, start here:
> http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml
>
> Of course, you could always just edit the generated code.
>
> Hope this helps,
> Jeff Nevicosi
> IBM
> "Andreas Kuhn" <akuhn@arcor.de> wrote in message
> news:d319d5$gll$1@news.eclipse.org...
>
>>Hi,
>>
>>using hyades 3.2 i tried to implement my own Arbiter. Of course would be
>> easy to replace the DefaultTestArbiter in a generate Java Source from
>>a HTTP URL Test, but i wanted to try to write my own Code Generator.
>>I searched the source tree for the Files and found
>>org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
>>to generate the Java Source of the TestSuite. Looking back in the call
>>tree, i also found HttpGenerator and HttpGenerateWizard. It seems, that
>>i hava to implement my own GenerateWizard to be able to generate my own
>>code, is that right ?
>>For testing i defined a second entry in
>>plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
>><generateWizard
>> name="%GEN_WTITLE"
>> type="org.eclipse.hyades.test.http.junit.testSuite"
>> icon="icons/full/ctool16/generate_wiz.gif"
>> description="%GEN_WDESC"
>>
>>
>
> class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard
> "
>
>> extension="testsuite">
>> </generateWizard>
>>
>>and just change name and description. I hoped in the
>>Workbench->Properties->Test->Test Associations i could add the new
>>generateWizard.
>>Can someone help me on this ? How can i implement my own HTTP URL Test
>>Java Code Generator ?
>>
>>Thanks,
>>Andi
>
>
>
Re: HTTP Generate Wizard [message #67017 is a reply to message #49488] Tue, 18 April 2006 18:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akuhn.arcor.de

Hi all,

anyone has a hint on how to create own GenerateWizard using the new
auto-sync feature ?

Andi

Andreas Kuhn wrote:
> Hi Jeff,
>
> there seems to be a change since TPTP 4.1. The GenerateWizard Class is
> deprecated and the JavaDoc says, it is replaced by the auto-sync feature.
> What exactly is this auto-sync, and how can i use it to generate my own
> TestSourceCode based on a TestCase ?
>
> Thanks,
> Andi
>
> Jeff Nevicosi wrote:
>
>>Andreas,
>>
>>As you suspect, to create a new HTTP Generator, you must create an extension
>>of HttpGenerator and HttpGenerateWizard, as well as create a new extension:
>>
>><extension
>>
>>point="org.eclipse.hyades.test.ui.generateWizards">
>>
>><generateWizard
>>
>>extension="testsuite"
>>
>>type="org.eclipse.hyades.test.http.junit.testSuite"
>>
>>icon="icons/full/obj16/http_generate_wiz.gif"
>>
>>class=" org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard. HttpGener
>>ateWizard2"
>>
>>description="Description"
>>
>>name="Generator Title"/>
>>
>></extension>
>>
>>I have verified that if the new class (in my example, HttpGenerateWizard2)
>>exists, it WILL show up in the Test Associations preference page. If you
>>set your new Generator to the default, it will generate using the Generate
>>menu action.
>>
>>I believe that when the preference page is populated, the classname is also
>>checked (and the duplicity of it). This could explain why your test of just
>>changing the name & description failed.
>>
>>It may also interest you that GenTestSuite.java is create using the JET
>>builder. The files in the templates\ directory are used to generate that
>>java class. These template files should be much easier to read &
>>reverse-engineer. It's not required to use JET for a new generator,
>>however. For more information, start here:
>> http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml
>>
>>Of course, you could always just edit the generated code.
>>
>>Hope this helps,
>>Jeff Nevicosi
>>IBM
>>"Andreas Kuhn" <akuhn@arcor.de> wrote in message
>>news:d319d5$gll$1@news.eclipse.org...
>>
>>
>>>Hi,
>>>
>>>using hyades 3.2 i tried to implement my own Arbiter. Of course would be
>>> easy to replace the DefaultTestArbiter in a generate Java Source from
>>>a HTTP URL Test, but i wanted to try to write my own Code Generator.
>>>I searched the source tree for the Files and found
>>>org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
>>>to generate the Java Source of the TestSuite. Looking back in the call
>>>tree, i also found HttpGenerator and HttpGenerateWizard. It seems, that
>>>i hava to implement my own GenerateWizard to be able to generate my own
>>>code, is that right ?
>>>For testing i defined a second entry in
>>>plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
>>><generateWizard
>>> name="%GEN_WTITLE"
>>> type="org.eclipse.hyades.test.http.junit.testSuite"
>>> icon="icons/full/ctool16/generate_wiz.gif"
>>> description="%GEN_WDESC"
>>>
>>>
>>
>>class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard
>>"
>>
>>
>>> extension="testsuite">
>>> </generateWizard>
>>>
>>>and just change name and description. I hoped in the
>>>Workbench->Properties->Test->Test Associations i could add the new
>>>generateWizard.
>>>Can someone help me on this ? How can i implement my own HTTP URL Test
>>>Java Code Generator ?
>>>
>>>Thanks,
>>>Andi
>>
>>
>>
Re: HTTP Generate Wizard [message #86622 is a reply to message #67017] Tue, 07 November 2006 12:58 Go to previous messageGo to next message
Holger Machens is currently offline Holger MachensFriend
Messages: 57
Registered: July 2009
Member
Hi,


I'm interested too.

Another question: Who long will the deprecated interface be available in the framework?


Greetings
Holger

Andreas Kuhn schrieb:
> Hi all,
>
> anyone has a hint on how to create own GenerateWizard using the new
> auto-sync feature ?
>
> Andi
>
> Andreas Kuhn wrote:
>> Hi Jeff,
>>
>> there seems to be a change since TPTP 4.1. The GenerateWizard Class is
>> deprecated and the JavaDoc says, it is replaced by the auto-sync feature.
>> What exactly is this auto-sync, and how can i use it to generate my own
>> TestSourceCode based on a TestCase ?
>>
>> Thanks,
>> Andi
>>
>> Jeff Nevicosi wrote:
>>
>>> Andreas,
>>>
>>> As you suspect, to create a new HTTP Generator, you must create an extension
>>> of HttpGenerator and HttpGenerateWizard, as well as create a new extension:
>>>
>>> <extension
>>>
>>> point="org.eclipse.hyades.test.ui.generateWizards">
>>>
>>> <generateWizard
>>>
>>> extension="testsuite"
>>>
>>> type="org.eclipse.hyades.test.http.junit.testSuite"
>>>
>>> icon="icons/full/obj16/http_generate_wiz.gif"
>>>
>>> class=" org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard. HttpGener
>>> ateWizard2"
>>>
>>> description="Description"
>>>
>>> name="Generator Title"/>
>>>
>>> </extension>
>>>
>>> I have verified that if the new class (in my example, HttpGenerateWizard2)
>>> exists, it WILL show up in the Test Associations preference page. If you
>>> set your new Generator to the default, it will generate using the Generate
>>> menu action.
>>>
>>> I believe that when the preference page is populated, the classname is also
>>> checked (and the duplicity of it). This could explain why your test of just
>>> changing the name & description failed.
>>>
>>> It may also interest you that GenTestSuite.java is create using the JET
>>> builder. The files in the templates\ directory are used to generate that
>>> java class. These template files should be much easier to read &
>>> reverse-engineer. It's not required to use JET for a new generator,
>>> however. For more information, start here:
>>> http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml
>>>
>>> Of course, you could always just edit the generated code.
>>>
>>> Hope this helps,
>>> Jeff Nevicosi
>>> IBM
>>> "Andreas Kuhn" <akuhn@arcor.de> wrote in message
>>> news:d319d5$gll$1@news.eclipse.org...
>>>
>>>
>>>> Hi,
>>>>
>>>> using hyades 3.2 i tried to implement my own Arbiter. Of course would be
>>>> easy to replace the DefaultTestArbiter in a generate Java Source from
>>>> a HTTP URL Test, but i wanted to try to write my own Code Generator.
>>>> I searched the source tree for the Files and found
>>>> org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
>>>> to generate the Java Source of the TestSuite. Looking back in the call
>>>> tree, i also found HttpGenerator and HttpGenerateWizard. It seems, that
>>>> i hava to implement my own GenerateWizard to be able to generate my own
>>>> code, is that right ?
>>>> For testing i defined a second entry in
>>>> plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
>>>> <generateWizard
>>>> name="%GEN_WTITLE"
>>>> type="org.eclipse.hyades.test.http.junit.testSuite"
>>>> icon="icons/full/ctool16/generate_wiz.gif"
>>>> description="%GEN_WDESC"
>>>>
>>>>
>>> class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard
>>> "
>>>
>>>
>>>> extension="testsuite">
>>>> </generateWizard>
>>>>
>>>> and just change name and description. I hoped in the
>>>> Workbench->Properties->Test->Test Associations i could add the new
>>>> generateWizard.
>>>> Can someone help me on this ? How can i implement my own HTTP URL Test
>>>> Java Code Generator ?
>>>>
>>>> Thanks,
>>>> Andi
>>>
>>>
Re: HTTP Generate Wizard [message #89292 is a reply to message #86622] Mon, 04 December 2006 12:00 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Holger,
TPTP supports deprecated API for a minimum of two full releases.

PS
"Holger Machens" <machens@informatik.fh-wiesbaden.de> wrote in message
news:eipvu2$gi4$1@utils.eclipse.org...
> Hi,
>
>
> I'm interested too.
>
> Another question: Who long will the deprecated interface be available in
> the framework?
>
>
> Greetings
> Holger
>
> Andreas Kuhn schrieb:
>> Hi all,
>>
>> anyone has a hint on how to create own GenerateWizard using the new
>> auto-sync feature ?
>>
>> Andi
>>
>> Andreas Kuhn wrote:
>>> Hi Jeff,
>>>
>>> there seems to be a change since TPTP 4.1. The GenerateWizard Class is
>>> deprecated and the JavaDoc says, it is replaced by the auto-sync
>>> feature.
>>> What exactly is this auto-sync, and how can i use it to generate my own
>>> TestSourceCode based on a TestCase ?
>>>
>>> Thanks,
>>> Andi
>>>
>>> Jeff Nevicosi wrote:
>>>
>>>> Andreas,
>>>>
>>>> As you suspect, to create a new HTTP Generator, you must create an
>>>> extension
>>>> of HttpGenerator and HttpGenerateWizard, as well as create a new
>>>> extension:
>>>>
>>>> <extension
>>>>
>>>> point="org.eclipse.hyades.test.ui.generateWizards">
>>>>
>>>> <generateWizard
>>>>
>>>> extension="testsuite"
>>>>
>>>> type="org.eclipse.hyades.test.http.junit.testSuite"
>>>>
>>>> icon="icons/full/obj16/http_generate_wiz.gif"
>>>>
>>>> class=" org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard. HttpGener
>>>> ateWizard2"
>>>>
>>>> description="Description"
>>>>
>>>> name="Generator Title"/>
>>>>
>>>> </extension>
>>>>
>>>> I have verified that if the new class (in my example,
>>>> HttpGenerateWizard2)
>>>> exists, it WILL show up in the Test Associations preference page. If
>>>> you
>>>> set your new Generator to the default, it will generate using the
>>>> Generate
>>>> menu action.
>>>>
>>>> I believe that when the preference page is populated, the classname is
>>>> also
>>>> checked (and the duplicity of it). This could explain why your test of
>>>> just
>>>> changing the name & description failed.
>>>>
>>>> It may also interest you that GenTestSuite.java is create using the JET
>>>> builder. The files in the templates\ directory are used to generate
>>>> that
>>>> java class. These template files should be much easier to read &
>>>> reverse-engineer. It's not required to use JET for a new generator,
>>>> however. For more information, start here:
>>>> http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml
>>>>
>>>> Of course, you could always just edit the generated code.
>>>>
>>>> Hope this helps,
>>>> Jeff Nevicosi
>>>> IBM
>>>> "Andreas Kuhn" <akuhn@arcor.de> wrote in message
>>>> news:d319d5$gll$1@news.eclipse.org...
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> using hyades 3.2 i tried to implement my own Arbiter. Of course would
>>>>> be
>>>>> easy to replace the DefaultTestArbiter in a generate Java Source from
>>>>> a HTTP URL Test, but i wanted to try to write my own Code Generator.
>>>>> I searched the source tree for the Files and found
>>>>> org.eclipse.hyades.test.http.internal.codegen.GenTestSuite which seems
>>>>> to generate the Java Source of the TestSuite. Looking back in the call
>>>>> tree, i also found HttpGenerator and HttpGenerateWizard. It seems,
>>>>> that
>>>>> i hava to implement my own GenerateWizard to be able to generate my
>>>>> own
>>>>> code, is that right ?
>>>>> For testing i defined a second entry in
>>>>> plugins/org.eclipse.hyades.test.http_3.2.0/plugin.xml of
>>>>> <generateWizard
>>>>> name="%GEN_WTITLE"
>>>>> type="org.eclipse.hyades.test.http.junit.testSuite"
>>>>> icon="icons/full/ctool16/generate_wiz.gif"
>>>>> description="%GEN_WDESC"
>>>>>
>>>>>
>>>> class=" org.eclipse.hyades.test.http.internal.junit.wizard.HttpGener ateWizard
>>>> "
>>>>
>>>>
>>>>> extension="testsuite">
>>>>> </generateWizard>
>>>>>
>>>>> and just change name and description. I hoped in the
>>>>> Workbench->Properties->Test->Test Associations i could add the new
>>>>> generateWizard.
>>>>> Can someone help me on this ? How can i implement my own HTTP URL Test
>>>>> Java Code Generator ?
>>>>>
>>>>> Thanks,
>>>>> Andi
>>>>
>>>>
Previous Topic:How can I avoid a time-out in executing an automated GUI test?
Next Topic:HTTP Test: error converting .rec file in .testsuite file
Goto Forum:
  


Current Time: Thu Mar 28 12:55:33 GMT 2024

Powered by FUDForum. Page generated in 0.02353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top