ruby-jmeter icon indicating copy to clipboard operation
ruby-jmeter copied to clipboard

thread_group needs to convert the count param to an integer

Open AndyKriger opened this issue 7 years ago • 0 comments

If you try to use a property ${__P(thread_count)} to set a thread_group count parameter, you will get an errror ruby-jmeter/extend/threads/thread_group.rb:7:in `thread_group': undefined method `/' for "${__javascript(parseInt('${__P(thread_count)}'))}":String (NoMethodError)

extend/threads/thread_group.rb needs to use params[:count].to_i on line 6 so that the division on line 7 will work correctly

AndyKriger avatar Feb 14 '18 19:02 AndyKriger