Can I use a variable in URL of HTTP test's URL?
thanks!
about HTTP test
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Sorry, "HTTP" test method does not recognize macro variables in URL string. However, you may use "URL" test method instead. "URL" test method allowsto use date macro variables in the "URL" and "Post data" fields with "Translate date macro variables" option enabled. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#url
==============================
Translate date macro variables
This option allows you to use date & time variables in the "URL" and "Post data" fields. It is useful when you have to monitor web pages that are created on regular basis. E.g. such URL may look like " http://www.sql.company.com/logs/%mm%-%dd%-%yyyy%.html".
==============================
Regards,
Max
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#url
==============================
Translate date macro variables
This option allows you to use date & time variables in the "URL" and "Post data" fields. It is useful when you have to monitor web pages that are created on regular basis. E.g. such URL may look like " http://www.sql.company.com/logs/%mm%-%dd%-%yyyy%.html".
==============================
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
On the other hand, in version 7.70 were introduced folder-related macro variables, that can be used as parameters of tests (templates). E.g. you may specify %fvar_IPaddress% as target address for Ping and Trace tests, use string like http://%fvar_IPaddress%/database/index.cgi as URL specified for HTTP test, check drive free space using \\%fvar_IPaddress%\driveC and \\%fvar_IPaddress%\driveD paths for UNC tests, etc.
Please, read the following article for details: http://www.ks-soft.net/hostmon.eng/mfra ... #templates
Regards,
Max
Please, read the following article for details: http://www.ks-soft.net/hostmon.eng/mfra ... #templates
Regards,
Max