i want create jmeter testplan , need object create object reference. want create object 'owner' 100 times , response create 100 'devices' in 1 of fields 'owner_ref'.
i want create devices corresponding ids like
ownerid1-->device1 ownerid2-->device2 , on.
im using now:
testplan: httprequest json path postprocessor--> extract 'id' variable 'ownerid'
how can create array of ownerids , iterate through 100 create new request these ids?
i thinking in use beanshell should easier , cleaner method do. all!
as json path postprocessor documentation states, can use match numbers
parameter:
-1 means extract results, named variable name_n (where n goes 1 number of results)
so configure json path postprocessor this:
variable names: ownerid ... match numbers: -1
which produce variables: ownerid1,...,owneridn
and have few options, obvious of them use foreach controller describes
foreach controller input variable prefix: ownerid output variable: currentid
so sampler under controller can use ${currentid}
Comments
Post a Comment