Update Jmeter variables with beanshell

前端 未结 2 921
花落未央
花落未央 2021-01-07 14:02

I\'ve encountered a problem when trying to update a Jmeter variable with a beanshell script. I\'ve followed this manual and i have seen this topic and both say the same:

2条回答
  •  时光说笑
    2021-01-07 14:25

    Put the cookie manager in your script and you will be fine.

    Now you have a global variable counter = 1, in one request you use a local variable counter ant set it to 2. When another request tries to pick up the value of counter it gets the global value 1, because the local one is trashed.

提交回复
热议问题