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

BrowserType is obsolete

3 Answers 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 07 Aug 2013, 03:51 PM
I'm confused. I've just downloaded Telerik Testing Framework 2013 Q1, I create a test project in VS 2012, add a VsUnit test item to the project, and set up the code as per the VS Test documentation:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-visual-studio-team-test.aspx

However, I then see a warning message telling me that BrowserType is obsolete. Indeed ArtOfTest.WebAii.Core.BrowserType has the following attribute:
[Obsolete("Use Telerik.TestStudio.Shared.Communication.Enums.BrowserType instead. Use this enum only for deserializing legacy results.")]
   
What am I doing wrong in that the docs tell me I might do the following, but I'd be using an obsolete enum.

Settings settings = GetSettings();
settings.DefaultBrowser = BrowserType.FireFox;
Initialize(settings, new TestContextWriteLine(this.TestContext.WriteLine));

I am not using the full Test Studio, I just want to use the Testing Framework to automate the browser for a few tests.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 09 Aug 2013, 08:40 AM
Hi Stuart,

Unfortunately Telerik.TestStudio.Shared.dll is not distributed in the GAC. You should add it manually from C:\Program Files (x86)\Telerik\Test Studio\Bin for every project.

If it is not acceptable for you keep using the deprecated enum. We will do something better in a future release, such as adding Telerik.TestStudio.Shared.dll to the GAC.

Please check out also this article.

Let me know if you need further assistance.

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Steve
Top achievements
Rank 1
answered on 13 Aug 2013, 05:23 PM
Hi Boyan,

Also unfortunate is the fact that Telerik.TestStudio.Shared.dll is not distributed in the test framework.... will it be in future relases of the framework?

I vote to NOT put it in the GAC - just reference it like you reference all the other stuff in Visual Studio.
0
Boyan Boev
Telerik team
answered on 16 Aug 2013, 11:11 AM
Hi Stuart,

Thank you for your feedback. I have logged a bug report on this which you can track here.

We appreciate your feedback, which we rely on to improve our product. 
 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Stuart
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Steve
Top achievements
Rank 1
Share this question
or