KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Macro variable %HttpContent% for URL and HTTP tests

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list
View previous topic :: View next topic  
Author Message
HakanH



Joined: 06 Feb 2007
Posts: 19

PostPosted: Wed Sep 05, 2012 8:18 am    Post subject: Macro variable %HttpContent% for URL and HTTP tests Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12063
Location: USA

PostPosted: Wed Sep 05, 2012 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
HakanH



Joined: 06 Feb 2007
Posts: 19

PostPosted: Wed Sep 05, 2012 10:29 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12063
Location: USA

PostPosted: Wed Sep 05, 2012 12:23 pm    Post subject: Reply with quote

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

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index