jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: How to cast String to Integer in JMeter?
Date Sat, 29 Dec 2012 06:18:55 GMT
print out the value in a debug sampler - you seem to be getting a literal
value as the return of ${__property(port)} instead of your actual port
value -


On Fri, Dec 28, 2012 at 10:04 PM, Dzmitry_Kashlach <
dzmitrykashlach@gmail.com> wrote:

>    Hello to everyone!
>
> I've created test-plan for performance testing of MySQL database. I read
> parameters via CSV DatasetConfig, after that I pass them to JDBC Connection
> Configuration.
>    My problem is that CSV DatasetConfig returns String parameters. There is
> database "port" among them.
> When I use this parameter in JDBC Connection Configuration, I get the
> following exception in JDBC Sampler:
>
>    Response message:
> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
> Cannot
> load connection class because of underlying exception:
> 'java.lang.NumberFormatException: For input string: "port"'.
>
> <http://jmeter.512774.n5.nabble.com/file/n5715669/8.jpg>
>
> Do you know good way of casting String to Integer before using it in JDBC
> Connection Configuration?
>
> Thank you in advance.
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/How-to-cast-String-to-Integer-in-JMeter-tp5715669.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

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