Hello Ivan,

I use the <loadFile/> task after a <sql/> task for this.

Another idea is, to use a dbunit(or the like) task to query the db and store
the result as XML, and then use <invoke/>, <storeXPath/> ... to
extract the values.

hth,
  lothar

On Tue, Sep 12, 2006 at 06:09:55AM -0700, Ivan Rancati wrote:
> 
> In the webapp I am testing, I need to enter some values in text fields which
> are coming from a database.
> What is the recommended way to store the result from a sql select statement
> into a property (either dynamic or static)?
> From the documentation for the sql task
> http://ant.apache.org/manual/CoreTasks/sql.html
> I see it's possible to specify an output file, but not an output property
> 
> thank you
> Ivan
> -- 
> View this message in context: 
> http://www.nabble.com/how-to-get-results-from-sql-Ant-task-into-a-property-tf2258806.html#a6265776
> Sent from the WebTest forum at Nabble.com.
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest

-- 
Lothar Märkle - System Architekt
Netpioneer GmbH - Beiertheimer Allee 18a - D-76137 Karlsruhe
Tel: 0721 / 9 20 60 43
Fax: 0721 / 9 20 60 30
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to