xml - How to call property we just defined from the first request to use in the next request jmeter? -


i use config element "property file reader" store variables, can accessed requests. named file variables.txt, can see first variable defined "name":

enter image description here

and second , third variable defined after first request executed:

enter image description here

i call first variable:

${__p(name)} 

but failed call second , third variable:

${__p(npwp1)}  ${__p(npwp2)} 

it has value 00:

enter image description here

and jmx:

enter image description here

actually how call second , third variable in soap/xml-rpc request?

please help.

thank you.

you can't expect property file reader return latest/updated file,

it's config element loaded once:

propertyreader extends configtestelement , according java docs:

expectsmodification() if config element expects modified in process of test run, , want modifications carry on sample sample (as in cookie manager - want save cookies set throughout test), return true method.

propertyreader doesn't define expectsmodification() , therefore properties loaded once on startup , aren't refreshed after.

you can use __setproperty set new properties inside test

finally ensure understand differences between properties , variables mixing:


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -