Thank Sebb, it works.

Since I was using CSV Data Set Config for my parameter, I had to define
the parameter :@${ipAddressParameter} in the test plan level and use the
${__StringFromFile(Server.dat,pServerParam,,)} function to read from a
text file with just the server IP address in it.

Is there a way to use this function to read from a CSV with multiple
columns using delimiters?

Thanks and kind regards
Benedict Nkosi 
Performance Tester


-----Original Message-----
From: sebb [mailto:[email protected]] 
Sent: 26 May 2011 12:16 PM
To: JMeter Users List
Subject: Re: User Parameter variable in JDBC Connection Configuration

On 26 May 2011 10:37,  <[email protected]> wrote:
> I want to use User Parameter variable within Database URL under JDBC
> Connection Configuration. The connection work fine without parameters
> but as soon as I parametize the Server IP address I get an error. Does
> the JDBC Connection Configuration support parameters.
>
> Works.
> jdbc:oracle:thin:@ipAddress:1521:EMS102VM
>
> doesn't work.
> jdbc:oracle:thin:@${ipAddressParameter}:1521:EMS102VM
>

If the variable is not being replaced, then it is not defined *at the
point of use*.

Note that the JDBC Connection config is used very early on in a test.

Try defining the variable on the test plan.

> please help
>
>
> Thanks and kind regards
> Benedict Nkosi
> Performance Tester
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to