I try to create a scenario that I put a user defined delay in my test.

1. In the start of the test I created JSR sampler and created a variable called 
vertica\_results\_delay and put in it the value of 400000.
Than I crated a timer and put ${vertica\_results\_delay}, since I want the delay will be configured in the start of the test, the problem is that Jmeter ignores my value, and not wait.
If I used Use defined field and put vertica\_results\_delay = 4000 it worked, but than all the tests will get the same delay, I do not want to create hard coded delay. I want to enter all properties of the test in the start of the test using JSR.

String vertica\_results\_delay = "400000"; 
vars.put("vertica\_results\_delay", vertica\_results\_delay);
log.error("vertica\_results\_delay " + vertica\_results\_delay);

[![enter image description here](https://i.stack.imgur.com/doN6p.jpg)](https://i.stack.imgur.com/doN6p.jpg)
[![enter image description here](https://i.stack.imgur.com/RKKFo.jpg)](https://i.stack.imgur.com/RKKFo.jpg)

[![enter image description here](https://i.stack.imgur.com/LZO0y.jpg)](https://i.stack.imgur.com/LZO0y.jpg)

[![enter image description here](https://i.stack.imgur.com/zoGXF.jpg)](https://i.stack.imgur.com/zoGXF.jpg)