Hello,
How does one use the BaseURL when passed in through settings=*.xml? Or more generally - how do you use the settings=*.xml in general? I can't seem to get it to work... instead the BaseURL configured to the test list is ALWAYS used. I understand that the BaseURL in the TestList overrides the one in the settings - but if I set the BaseURL in the Test List to be empty than the tests don't navigate anywhere at all. Here's the details:
Firstly, here is the ArtOfTest.Runner command we are executing, which passes our *.xml file:
"C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Runner.exe" list="C:\repos3\acs_web\ACS\TestLists\ACS_Chrome_Acceptance.aiilist" out=C:\output\ html xml settings="C:\repos3\acs_web\ACS\settingsAutomatedRun.xml"
The *.xml file contains this:
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
configuration
>
<
configSections
>
<
section
type
=
"ArtOfTest.WebAii.Core.SettingsConfigSectionHandler,ArtOfTest.WebAii"
name
=
"WebAii.Settings"
/>
<
section
type
=
"ArtOfTest.WebAii.Core.WebSettingsConfigSectionHandler,ArtOfTest.WebAii"
name
=
"WebAii.Settings.Web"
/>
<
section
type
=
"ArtOfTest.WebAii.Core.WpfSettingsConfigSectionHandler,ArtOfTest.WebAii"
name
=
"WebAii.Settings.Wpf"
/>
</
configSections
>
<
WebAii.Settings.Web
killBrowserProcessOnClose
=
"false"
recycleBrowser
=
"false"
baseUrl
=
"https://auto.us.dev.trustedauthdev.com"
defaultBrowser
=
"InternetExplorer"
elementWaitTimeout
=
"10000"
enableScriptLogging
=
"true"
> </
WebAii.Settings.Web
>
</
configuration
>
Also in the test code we reference the baseURL using the below line:
string
baseUrl = ActiveBrowser.Manager.Settings.Web.BaseUrl.ToString();
And then navigate to that baseURL using:
ActiveBrowser.NavigateTo(baseUrl,
true
);
The ArtOfTest.Runner.exe command will execute without error, and I've verified that the xml file is syntactically correct. But no matter what the defaultBrowser and BaseURL are set to, they are ignored, and instead the values are always being read from the Test List. There doesn't seem to be any way to remove the Test List override. Is this a bug or am I missing something here?