Reputation: 89
I am running below jmeter command using power shell
$runid =$build_number
jmeter -Jsample_variables=$runid -n -t test.jmx -l result.jtl
In the .Jtl result , I could see column added with build_number value as column name and column values are empty.
Upvotes: 1
Views: 569
Reputation: 167992
You declare the Sample Variable but not assigning any value to it
Add User Defined Variables configuration element to your test plan and define runid
variable there using ${__P(runid,)}
function as the value:
Amend your JMeter startup command as:
jmeter -Jsample_variables=runid -Jrunid=123456 -n -t test.jmx -l result.jtl
That's it, once test finishes you should be able to see the runid
column with the appropriate value:
Upvotes: 1