[Webtest] Simplification: making <configuration> optional

Lothar Märkle webtest@lists.canoo.com
Thu, 12 May 2005 11:22:05 +0200


On Thu, May 12, 2005 at 10:27:00AM +0200, Marc Guillemot wrote:
> >Is the webtest web test application online available? If so, you could 
> >hardcode the defaults against this host and there is no setup at all for
> >starters.
> 
> sorry but I don't understand what you mind. Why should default values test 
> again webtest webapp? I think that newcomers are interested in testing they 
> own app not to use webtest to check whether the webtest website is correct 
> or not.

not to see if the webtest website is correct, just to provide a working
example without any setup.

Better would be a simple example like a google search to get started:
  <target name="ask-google" description="asks google for help">
    <testSpec name="ask google">
      <config host="www.google.de" port="80" protocol="http" basepath=""/>
      <steps>
        <invoke stepid="get google page" url="/ncr"/>
        <verifyTitle stepid="check title" text="Google"/>
        <setinputfield stepid="set query" name="q" value="canoo webtest rocks"/>
        <clickButton stepid="submit query" label="Google Search"/>
        <verifyText stepid="check for result" text="the happy old and New Year" regex="true"/>
      </steps>
    </testSpec>
  </target> 
...save summary to xml and xslt is missing of course...

This way, it would be very easy to see how it works, and to adopt for
the own application. 

lothar