View previous topic :: View next topic |
Author |
Message |
HakanH
Joined: 06 Feb 2007 Posts: 19
|
Posted: Wed Sep 05, 2012 8:18 am Post subject: Macro variable %HttpContent% for URL and HTTP tests |
|
|
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 |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Sep 05, 2012 8:58 am Post subject: |
|
|
Do you mean this variable should represent parameter of the test? Not real HTTP content of web page?
Not sure how it can be very useful. If you need such parameter for some action, you may use Comment field...
Regards
Alex |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
HakanH
Joined: 06 Feb 2007 Posts: 19
|
Posted: Wed Sep 05, 2012 10:29 am Post subject: |
|
|
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 |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Sep 05, 2012 12:23 pm Post subject: |
|
|
Ok, I have added task into "to do" list
Regards
Alex |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|