For different systems, I want to migrate the tests, so I have to change the URL via script.
I want to know in which file this webURL is stored in the filesystem, so that I can change it before running the test, if we take the test to another system.
Best rergards,
Adriane
5 Answers, 1 is accepted
Please clarify: is your Silverlight application running in-browser or out of browser in your test? Are you attempting to change the location of a Silverlight application at runtime or between tests? Will this script be a Test Studio coded step or a separate application or script? Thank you for clarifying your testing scenario, so that we can advice you best.
Regards,Byron
the Telerik team
Test Studio Trainings
we want to achieve ththe following goal with an easy option:
We want to create a test, for example go on a Silverlight website an login.
If we take this test to a customer the webadress is some kind different, the servername, but maybe the silverlight application name.
But the login process is always the same. So we want to change the URL adress and nothing more.
So it's not out of browser, but I have to set the URL in the "Out-of-browser" settings windows, where I also have to set the silverlight access for telerik.
Hope you know now what I want to do.
So we want to set in one external script the different things like URL that is different to the different system and then we could do an external application that changes all testfiles with the new URL. And that for all tests, so that I do not have steps in the test for it.
Best regards,
Adriane
Instead of setting the location of the Silverlight application in the Out-of-Browser settings, I recommend using the BaseURL setting to adapt your test to multiple environments. This will not require you to add or remove steps from your test.
Kind regards,Byron
the Telerik team
Test Studio Trainings
thanks for the possibility, but I don't think this helps me, because then I need to edit every project, if I want to change the baseURL.
I need to have for example 10 Tests created in one system, then take it to another system and change the url, to test the system there.
So I have no advantage of this.
I need to know in which file and where the setting is stored in, so that I can make a script, to run over all tests, that I want to take to the new system and that changes all the URLs. I don't want to do this manually every time for every project.
Hope that helps understanding what we want to achieve.
Best regards,
Adriane
If all of your tests are in the same project, you can alter the BaseURL in the Project Settings under Recording Options, which will change the BaseURL used for all tests in the project. If you wish to access this value in the configuration files, you can find the project BaseURL setting in the Settings.aiis file in the project folder. This file will contain XML elements like the following:
<
__DataMember_RecorderBaseUrl
IsDataContractSerialized
=
"True"
PropertyName
=
"RecorderBaseUrl"
PropertyType
=
"System.String"
>
<
string
xmlns
=
"http://schemas.microsoft.com/2003/10/Serialization/"
>http://www.google.com<;/
string
>
We do not recommend making direct changes to the settings file for stability reasons.
If you wish to modify the Silverlight application URL from the Silverlight Out-Of-Browser settings for a test, you can find this setting in the .tstest file for the test. The .tstest file will contain XML elements like the following:
<
SilverlightAppRecordLocal
>false</
SilverlightAppRecordLocal
>
<
SilverlightAppWebUrl
>http://demos.telerik.com/silverlight/#GridView/FirstLook</
SilverlightAppWebUrl
>
<
SilverlightEnabled
>true</
SilverlightEnabled
>
We do not recommend making direct changes to the .tstest file for stability reasons.
Please let us know if we can assist you further.
All the best,
Byron
the Telerik team
Test Studio Trainings