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

VS2010 testsettings Webaii setting is being ignored

5 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ethan Chang
Top achievements
Rank 1
Ethan Chang asked on 18 Aug 2010, 09:25 PM
Hi,

I'm using WebUI Test studio Developer Edition on VS2010. I have a new project and using the local.testsettings but the Webaii settings are being ignored on my coded vs unit test code. I'm trying to access the baseurl using the Manager.Settings.BaseUrl. It's always returning empty string.

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 19 Aug 2010, 07:13 AM
Hi Ethan,

Thank you for your question.

Using the VS (or any other) WebAii test template you need to overwrite the settings via the Settings class. Please follow the instructions from this documentation article. You can also check the samples we deploy with the installation.

Best wishes,
Konstantin Petkov
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
Ethan Chang
Top achievements
Rank 1
answered on 19 Aug 2010, 01:56 PM
Are you implying that I'm not able to use the testsettings file to control the manager settings?
0
Konstantin Petkov
Telerik team
answered on 19 Aug 2010, 04:47 PM
Hi Ethan,

You cannot right now. There's probably a way to expose those settings with our coded tests running over the WebAii base template too. I think it worth's investigating at least for consistency with the recorded tests.

I'm logging a feature request about that. Just for reference the Id in our database is #71898.

Thank you for the feedback and please keep it coming!

Best wishes,
Konstantin Petkov
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
Ethan Chang
Top achievements
Rank 1
answered on 16 Dec 2010, 07:46 PM
Any update in this feature?
0
Cody
Telerik team
answered on 17 Dec 2010, 11:15 PM
Hi Ethan Chang,

We haven't been able to implement feature request 71898 yet. I am sorry don't have an ETA I can provide for when we will be able to address this one.

For coded vs unit tests you really should be using the app.config file as documented here.

All the best,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Ethan Chang
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Ethan Chang
Top achievements
Rank 1
Cody
Telerik team
Share this question
or