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

Setting BaseURL

3 Answers 210 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
pratheef raghavan
Top achievements
Rank 1
pratheef raghavan asked on 22 Jun 2010, 05:20 PM
Hi,

I need to run my test application on different machines/servers for example(dev machine/testing server)

URL for the each will get changed based on machine,

to configure the base url i try to set the BaseURL in "LocalTestRun.testrunconfig"

and set the navigate URL  in each test by relative path.

But it could not able to get the BaseURL.

Do i miss anything.

Even i tried adding the base url to app.config file under "

<

 

WebAii.Settings>

i attached reference screen shots as well.

Thanks and Regards

Pratheef Raghavan.

 

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 22 Jun 2010, 11:32 PM
Hi pratheef raghavan,

Is this the Dev Edition or the QA Edition? The screen shots look like Dev Edition but you posted in the QA Edition forum?

The setting in your screen shots appear correct to me. Did you run your test via Test View or Quick Execute? The BaseURL only works when run via Test View.

Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
pratheef raghavan
Top achievements
Rank 1
answered on 23 Jun 2010, 02:51 PM
Hi Cody,

Thanks for your help, its starts working .

Can you tell me how to have mutilple config files for different machines/servers to set BaseURL,

Also how to refer this config files from the application test list.


Thanks and Regards

Pratheef Raghavan.
0
Accepted
Cody
Telerik team
answered on 23 Jun 2010, 04:20 PM
Hello pratheef raghavan,

Good question. Thanks for asking.

VS2008

The BaseURL setting is stored in a .testrunconfig file. You can have multiple .testrunconfig files per solution as shown in the vs2008-multiple-testrunconfigs.png screenshot. You can give them any name you like but they must end in ".testrunconfig".

Only one .testrunconfig file is "active" at a time. When you run a test from Test View it will use whichever one is currently active. You select which one is active from the Test menu as shown in the vs2008-selecting-testrunconfig.png screenshot.

VS2008 & MSTEST

If you want to run the test from the command line you'll use MSTest. You use the /runconfig: command line parameter to specify which .testrunconfig file to use. For example:

mstest /runconfig:TestRunConfig2.testrunconfig /testcontainer:.\webaiitest1.aii

VS2010

The approach is exactly the same as VS2008. The only difference is that the .testrunconfig file has been renamed to a .testsettings file.

VS2010 & MSTEST

The only difference is you use a /testsettings: command line parameter instead of the /runconfig: command line parameter. For example

mstest /testsettings:TestSettings1.testsettings /testcontainer:.\webaiitest1.aii

Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
pratheef raghavan
Top achievements
Rank 1
Answers by
Cody
Telerik team
pratheef raghavan
Top achievements
Rank 1
Share this question
or