jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EvilPeanut <Clau...@eai.co.za>
Subject Re: JDBC Request: Select returning values to variables
Date Mon, 19 Jan 2009 10:38:29 GMT

Thank you for replying. I will begin testing it :-)



yaroslav1 wrote:
> 
> the idea is like this:
> 
> 1. do a JDBC request like:
> SELECT ("field=" + field) as field FROM table;
> 
> As result in ResponseData  you will have: 
> 
> field=<data>
> 
> 2. use "Post Beanshell" sample in the JDBC to extract data by template:
> "field=(.+)"
> 
> If you have more then 1 field - then use for all fields the extract
> template as "field1=(.+\r)", 
> "field2=(.+\r)", and etc
> \r - means that the data are "tab" delimited. 
> For the last field use a template like - "fieldN=(.+)"
> 
> I think it will help you.
> Yaroslav
> 
> 

-- 
View this message in context: http://www.nabble.com/JDBC-Request%3A-Select-returning-values-to-variables-tp20931986p21540449.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message