0

I am trying to make workload test in Jmeter. This is Postgresql and I would like to combine a random variable with '%'.

Could you help me the way to make sql query?

enter image description here

I have already tried with '?%', but there is an error "The column index is out of range: 1, number of columns: 0.".

Masud Jahan
  • 3,418
  • 2
  • 22
  • 35
hyona kim
  • 3
  • 1

1 Answers1

0

The easiest way is switching to Select Statement and amend your query to look like:

SELECT * FROM scloud_usr.tcus_usr_rgn where UID like '${__RandomString(3,ABD,UID)}%'

If you want to continue with the Prepared Select Statement you need to add this % wildcard to the parameter value itself, not in the query, i.e.

JMeter Prepared Statement Wildcard

More information:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133