You can use Ant's filterset capability to make this happen:

        http://ant.apache.org/manual/CoreTypes/filterset.html


--
Jonathan Rosenberg
Founder & Executive Director, Tabby's Place
http://www.tabbysplace.org/



-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Mark Lybarger
Sent: Tuesday, March 02, 2010 9:24 AM
To: [email protected]
Subject: [Webtest] replace markers in a contentFile

i just got started using canoo recently.  i'm using it to test an xml
over http web service.  Here's a sample of what I'm doing.

                <webtest name="give a description here">
                        <invoke url="http://localhost:8080/foo";
description="Send input "
                                contentFile="testData/inputdata.xml"
                                method="POST"
                                username="USER1"
                                password="PASSWORD"
                                save="yes"
                                />
                        <verifyXPath description="Verify Response"
xpath="//ResponseVerification"/>
                </webtest>

What I'd like is for the inpudata.xml file to be able to contain
markers that can be substituted at runtime.  For instance, the file
currently contains something like:

<node><username>USER1</username><password>PASSWORD</password></node>

Can I do something like:
<node><username>${USER_NAME}</username><password>${PASSWORD}<password></node
>

and set ant properties or other?

thanks!
-mark-
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to