Hi all
I am trying to get a web scenario working with a dynamic date. First of all I will explain what does work.
1) Have set up 2 macros - lets call them {$BEGIN} and {$END}. For the values in the macros I add a date 30 days {$BEGIN} from today and in the second 40 days from today {$END}
2) I add a Web scenario to a Host. The step has several pieces of data including the {$BEGIN} and {$END} macros.
This is set to check every 5 mins and what it is giving me is the response time for the website to give a result - this works fine.
The problem is that the dates for this website need to both be in the future - the way it stands at the moment, we are regularly having to change the values in the macros. What we would like is the date in the value field in the macro comes from a macro such as {$__date_add({$DATE},30d,)} and {$__date_add({$DATE},40d,)} in the value fields.
When trying this, the macro name (not the actual result of the macro in the value field) is passed to the {$BEGIN} and {$END} macros. This in turn means that the macro names (e.g. {$__date_add({$DATE},30d,)}) is queried against the website in the request string and not the actual dates.
So my question here is how do I do this? Is this possible?
Any assist would be greatly appreciated
Cheers
Marc​
I am trying to get a web scenario working with a dynamic date. First of all I will explain what does work.
1) Have set up 2 macros - lets call them {$BEGIN} and {$END}. For the values in the macros I add a date 30 days {$BEGIN} from today and in the second 40 days from today {$END}
2) I add a Web scenario to a Host. The step has several pieces of data including the {$BEGIN} and {$END} macros.
This is set to check every 5 mins and what it is giving me is the response time for the website to give a result - this works fine.
The problem is that the dates for this website need to both be in the future - the way it stands at the moment, we are regularly having to change the values in the macros. What we would like is the date in the value field in the macro comes from a macro such as {$__date_add({$DATE},30d,)} and {$__date_add({$DATE},40d,)} in the value fields.
When trying this, the macro name (not the actual result of the macro in the value field) is passed to the {$BEGIN} and {$END} macros. This in turn means that the macro names (e.g. {$__date_add({$DATE},30d,)}) is queried against the website in the request string and not the actual dates.
So my question here is how do I do this? Is this possible?
Any assist would be greatly appreciated
Cheers
Marc​
Comment