jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Accessing JDBC Connection Configuration in BeanShell Post-Processor
Date Fri, 19 Feb 2010 07:17:09 GMT
download the source code and check how the JDBCSampler does it.

DataSourceElement.getConnection("datasourcename");

(Not sure whether it will work)
Why cant you use the JDBC sampler directly?
regards
deepak

On Thu, Feb 18, 2010 at 10:59 PM, Peter <peterg1629@gmail.com> wrote:

> Hi!
>
> In my testplan I am using the JDBC Connection Configuration Element. In a
> BeanShell Post-Processor I am doing database-checks using a
> beanshell-script.
> How can I access in the script the JDBC Connection Configuration element
> from the testplan so that I do not have to manage the JDBC-config on
> multiple locations.
>
> Thanks for any advice
> Peter
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message