On 19 Oct 2001 20:30:20 -0000, "Gurdev S Parmar" <[EMAIL PROTECTED]> wrote:
>
> Hi Ovidiu,
> Thanks for replying.
> I had a look at anteater. It doesn't do
> what I want to do. I want the capability to
> resubmit a form which came from a response to
> a request.
You can extract values from the XHTML page that was sent back using
the <xpath> task, and have that assigned to an Ant property. You can
later on pass that property in your request. Something like this:
<httpRequest href="/url1">
<match>
<xpath select="/html/body/p/link" property="newslink"/>
</match>
</httpRequest>
<httpRequest href="/url2">
<parameter name="param" value="${newslink}"/>
</httpRequest>
Regards,
Ovidiu
> On Wed, 17 Oct 2001 Ovidiu Predescu wrote :
> > Hi Gurdev,
> >
> > You may want to check out Anteater, a functional unit
> > testing for HTTP
> > and SOAP applications. The code is still under
> > development, but please
> > feel free to take a look at it:
> >
> > http://www.geocities.com/SiliconValley/Monitor/7464/ante-
> > ater/
> >
> > Regards,
> > --
> > Ovidiu Predescu <[EMAIL PROTECTED]>
> > http://orion.nsr.hp.com/ (inside HP's firewall only)
> > http://sourceforge.net/users/ovidiu/ (my SourceForge
> > page)
> > http://www.geocities.com/SiliconValley/Monitor/7464/
> > (GNU, Emacs, other stuff)
> >
> > On 15 Oct 2001 23:27:55 -0000, "Gurdev S Parmar"
> > <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > > I have made an ant task for a few http
> > > activites like, http request, getting reference
> > > to a form/link in the resultant page, submitting it,
> > etc.
> > > I have used httpunit package
> > (http://httpunit.sourceforge.net) for this task.
> > >
> > > An example usage is as follows:
> > > <target name="http_activity">
> > > <httpresponse>
> > > <httprequest method="get" url="http://www.yahoo.com"/>
> > > <getlink linkid="news_link" withText="news"/>
> > > </httpresponse>
> > > <httpresponse>
> > > <httprequest linkid="news_link"/>
> > > </httpresponse>
> > > </target>
> > >
> > > This was a trivial example showing how to follow a
> > > link. You can follow a form too similarly.
> > > Using httpunit enables to maintain a session
> > > transparently.
> > >
> > > This task would be helpful in a http testing scenario.
> > > You can also automate certain internet transactions
> > > with this task.
> > >
> > > I have attached a zip file with source code and the
> > > build.xml file. The build.xml file + java files
> > > is the only documentation for now. More documentation
> > > if this task is accepted ;-)
> > >
> > > Cheers,
> > > Gurdev.
>
>