So with 2.2 it's now possible to pull back data from your page and put it in a variable.
See http://blog.zabbix.com/zabbix-2-2-fe...webpages/2256/
In Step 1 I need to login in to a web page, and it contains a randomly generated token that I need to pass with the request, the token is defined like this:
<input type="hidden" name="lt" value="_c128ACABE-1BAB-7FC6-A2DA-F53A6AC21D5D_k93C450DF-E950-E512-3891-C0316EF93D41" />
So I created a variable:
{logintoken}:regex:name="lt" value="([0-9a-zA-Z)"
to capture that value.
My question is, can I use use {logintoken} in Step 2 of my scenario?
What's the scope of that variable?
I know a variable created at the Scenario level is global, and is overridden by one defined at the Step level.
Do I need to define {logintoken} at the Scenario level and then pull it in Step 1 to make it available in Step 2?
See http://blog.zabbix.com/zabbix-2-2-fe...webpages/2256/
In Step 1 I need to login in to a web page, and it contains a randomly generated token that I need to pass with the request, the token is defined like this:
<input type="hidden" name="lt" value="_c128ACABE-1BAB-7FC6-A2DA-F53A6AC21D5D_k93C450DF-E950-E512-3891-C0316EF93D41" />
So I created a variable:
{logintoken}:regex:name="lt" value="([0-9a-zA-Z)"
to capture that value.
My question is, can I use use {logintoken} in Step 2 of my scenario?
What's the scope of that variable?
I know a variable created at the Scenario level is global, and is overridden by one defined at the Step level.
Do I need to define {logintoken} at the Scenario level and then pull it in Step 1 to make it available in Step 2?
Comment