Macro variable %HttpContent% for URL and HTTP tests

Need new test, action, option? Post request here.
Post Reply
HakanH
Posts: 19
Joined: Tue Feb 06, 2007 3:47 am

Macro variable %HttpContent% for URL and HTTP tests

Post by HakanH »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
HakanH
Posts: 19
Joined: Tue Feb 06, 2007 3:47 am

Post by HakanH »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, I have added task into "to do" list

Regards
Alex
Post Reply