This is a migrated thread and some comments may be shown as answers.

Where are out-of-browser stored in file?

5 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adriane
Top achievements
Rank 1
Adriane asked on 31 Jul 2012, 03:00 PM
I have a Silverlight Application and set a SilverlightApplication WebURL in the Out-of-browser Options, but use it in browser.
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

Sort by
0
Byron
Telerik team
answered on 01 Aug 2012, 03:14 PM
Hi Adriane,

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
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Adriane
Top achievements
Rank 1
answered on 02 Aug 2012, 07:42 AM
Hi Byron,

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

0
Byron
Telerik team
answered on 06 Aug 2012, 10:13 PM
Hello 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
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Adriane
Top achievements
Rank 1
answered on 07 Aug 2012, 10:58 AM
Hi Byron, 

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

0
Byron
Telerik team
answered on 09 Aug 2012, 07:11 PM
Hi 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">

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
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Adriane
Top achievements
Rank 1
Answers by
Byron
Telerik team
Adriane
Top achievements
Rank 1
Share this question
or