Hi, I have a question - how can I use function in test plan to set variable "in runtime"? Which component type I should use to do that? Especially I'd like to define variable in one place and later redefine this variable value in another. I've experimented with pre-processors, but it's unapplicable, because of scope requirement. I need something like "Runtime User Defined Variables" in my plan, which processed like Controller items - in their order.
I even tried to write my own Controller plugin, which will do this, but stuck with variables and function evaluation approach in code. (Maybe sebb can help me with this ;) Best regards, Andrey Pohilko С уважением, Андрей Похилько -----Original Message----- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, January 13, 2010 1:11 PM To: JMeter Users List Subject: Re: HTTP Header Manager uses old variable values? On 13/01/2010, Heiko Robert <heiko.rob...@ecm4u.de> wrote: > Hi, > > when I use HTTP Header Manager to set HTTP header variables old values are > used. Has anybody an idea what I'm doing wrong? Header Manager is a Configuration element, and is processed before the thread starts. You can use functions on the Test Plan to define variables. > My Testplan: user defined variables: GUID = not set > BSF PreProcessor: setting values to variable GUID > Simple Controller > HTTP Request ${GUID} > HTTP Header Manager: setting X-GUID = ${GUID} > HTTP Request ${GUID} > HTTP Header Manager: setting X-GUID = ${GUID} > View Results Tree > > The results: > > HTTP Request 472c63c2-63d5-44c4-a717-9252e2a7f8bf > GET > http://www.apache.org/?X-GUID=472c63c2-63d5-44c4-a717-9252e2a7f8bf > Request Headers: > X-GUID: not set > > HTTP Request 472c63c2-63d5-44c4-a717-9252e2a7f8bf > GET > http://www.apache.org/?X-GUID=e6df3a7d-e054-444b-9ef8-7c9c2803821e > Request Headers: > X-GUID: 472c63c2-63d5-44c4-a717-9252e2a7f8bf > > I tried with latest jmeter versions and also with the nightly build > > Thanks > Heiko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: > jmeter-user-h...@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org