[Webtest] continuing (tho different) install problems

Jeff Nielsen webtest@lists.canoo.com
Wed, 28 Jan 2004 19:43:00 -0500


Lisa, here is a sample test for you.  Copy it into a file named build.xml,
set "lib.dir" to point to where you have the webtest jars, then run it with
ant.

======================================================================
<project name="GoogleTest" basedir="." default="test">

    <property name="lib.dir" location="webtest-libs"/>
    <property name="logs.dir" location="webtest-logs"/>

    <taskdef name="testSpec"
             classname="com.canoo.webtest.ant.TestSpecificationTask">
        <classpath>
            <fileset dir="${lib.dir}" includes="*.jar"/>
        </classpath>
    </taskdef>

    <target name="test">

        <testSpec name="Search for Lisa">
            <config host="www.google.com"
                    port="80"
                    protocol="http"
                    basepath="/"
                    verbose="true"
                    resultpath="${logs.dir}/google-results"
                    resultfile="result.xml"
                    summary="true"
                    showhtmlparseroutput="false"
                    saveresponse="true"
            />

            <steps>

                <invoke stepid="Go to main Google page" url="index.html"/>

                <verifytext stepid="Make sure we got there"
                            text="&lt;title&gt;Google&lt;/title&gt;"/>

                <setinputfield stepid="Search for Lisa Crispin"
                               name="q" value="Lisa Crispin"/>

                <clickbutton stepid="Click the Google Search Button"
                             name="btnG"/>

                <verifytext stepid="Did we get results back?"
                            text="lisa.crispin.home.att.net"/>

            </steps>
        </testSpec>
    </target>
</project>
======================================================================



----- Original Message -----
From: <lisa.crispin@att.net>
To: <webtest@lists.canoo.com>
Sent: Wednesday, January 28, 2004 2:49 PM
Subject: Re: [Webtest] continuing (tho different) install problems


> OK, is there another sample test I can try to see if my Canoo is correctly
> installed, since the sample that comes with it apparently is no good?
> thanks,
> Lisa