On 27/01/06, ken sogomonov <[EMAIL PROTECTED]> wrote:
> Hello All,
> I am having problems passing in the db ip value as an arg through
> command line. I am using jmeter 2.1.1
>
> The JDBC Connection Config has the following (and works fine if the
> ip address is hardcoded in the "user defined variables" config element
> placed above this jdbc connection)
>
> URL: jdbc:microsoft:sqlserver://${db_ip}:1433;
> Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
> Username: xxx
> Pswd: xxx
>
> If I call jmeter through command line
> jmeter -n -Jdb_ip=<db ip value> -tTestScript.jmx
${db_ip} is a JMeter variable, not a property. To access properties,
you need to use the __property() function, or for short the __P()
function:
${__P(db_ip)}
You can add a default:
${__P(db_ip,db ip value)}
See:
http://jakarta.apache.org/jmeter/usermanual/functions.html#__P
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]