It would be very handy to have a macro variable for the the check string in "Content Check" in URL and HTTP tests.
I want to use the variable in the testname and in the action profile.
Or does this variable exist already?
Regards
Håkan Haskel
Macro variable %HttpContent% for URL and HTTP tests
Yes, the variable should represent the parameter of the test, the variable I am looking for show up as "Expression" if I export the URL request test. Maybe the variable name %HttpContent% isn't the best, maybe it should be called %Expression% like in the exportfile.
If my test for example checks if www.ibm.com contains IBM.
I could use:
NamePattern = %Path% URL contains %Expression%
And the Title automatically should be:
Title = http://www.ibm.com:80/ URL contains IBM
My E-Mail body in my mail profiles could be like this when i use send SMS:
HM: %DateTime% - %Path% doesn't contain %Expression%
And the SMS would look like this:
HM: 12/09/05 12:25:30 - http://www.ibm.com:80/ doesn't contain IBM
This would save me a lot of work when I copy or change my URL request tests.
Regards
Håkan
If my test for example checks if www.ibm.com contains IBM.
I could use:
NamePattern = %Path% URL contains %Expression%
And the Title automatically should be:
Title = http://www.ibm.com:80/ URL contains IBM
My E-Mail body in my mail profiles could be like this when i use send SMS:
HM: %DateTime% - %Path% doesn't contain %Expression%
And the SMS would look like this:
HM: 12/09/05 12:25:30 - http://www.ibm.com:80/ doesn't contain IBM
This would save me a lot of work when I copy or change my URL request tests.
Regards
Håkan