BrowserType is obsolete

4 posts, 0 answers
  1. Stuart
    Stuart avatar
    6 posts
    Member since:
    Jun 2011

    Posted 07 Aug 2013 Link to this post

    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.

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 09 Aug 2013 Link to this post

    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
  3. Steve
    Steve avatar
    35 posts
    Member since:
    Jan 2011

    Posted 13 Aug 2013 Link to this post

    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.
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 16 Aug 2013 Link to this post

    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
Back to Top