This question is locked. New answers and comments are not allowed.
Hi All,
I am trying to parameterize the BaseURL of my TestStudio tests. For example, I want to set the BaseURL to an IP Address which may vary depending upon the test configuration. How do I get the TestStudio playback to actually browse to the BaseURL which is defined in my xml file?
Does anyone have an example similar to this that you could share?
For example, take the following XML file:
<TestSettings>
<BaseURL>http://10.1.1.1/</BaseURL>
</TestSettings>
I have bound the Test to <TestSettings>. I tried using the "Data Driven Bindings" to the the BaseURL and I also tried setting the "NavigateURL" to my xml element, but neither seems to work. I've also tried setting the BaseURL to $(BaseURL) in the test step, but this does not work either. I end up getting results similar to the following:
Overall Result: Fail
------------------------------------------------------------
'3/26/2014 2:15:42 PM' - Using 'InternetExplorer' version '11.0' as default browser.
'3/26/2014 2:15:42 PM' - 'Fail' : 1. Navigate to : '' - DataDriven: [$(testurl)]
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Url passed in has invalid format. If you are trying to use relative paths, please make sure your url starts with '/' or '~/'.
I am trying to parameterize the BaseURL of my TestStudio tests. For example, I want to set the BaseURL to an IP Address which may vary depending upon the test configuration. How do I get the TestStudio playback to actually browse to the BaseURL which is defined in my xml file?
Does anyone have an example similar to this that you could share?
For example, take the following XML file:
<TestSettings>
<BaseURL>http://10.1.1.1/</BaseURL>
</TestSettings>
I have bound the Test to <TestSettings>. I tried using the "Data Driven Bindings" to the the BaseURL and I also tried setting the "NavigateURL" to my xml element, but neither seems to work. I've also tried setting the BaseURL to $(BaseURL) in the test step, but this does not work either. I end up getting results similar to the following:
Overall Result: Fail
------------------------------------------------------------
'3/26/2014 2:15:42 PM' - Using 'InternetExplorer' version '11.0' as default browser.
'3/26/2014 2:15:42 PM' - 'Fail' : 1. Navigate to : '' - DataDriven: [$(testurl)]
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Url passed in has invalid format. If you are trying to use relative paths, please make sure your url starts with '/' or '~/'.