Exception Error when running from visual studio

4 posts, 0 answers
  1. Craig
    Craig avatar
    12 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2011 Link to this post

    Good Morning,

    I am evaluating several versions of the Test Studio automation tool, QA Edition, TS Express and also using the testing framework directly from Visual Studio.

    Currently I am receiving an exception error when calling the Manager.LaunchNewBrowser() command from my sample program.

    This only occurs when I launch IE9 as Firefox works fine.

    Here is the log from Visual Studio:

    Uncategorized: DialogMonitor.Start() : Using: ArtOfTest.WebAii, Version=2011.1.712.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c
    Uncategorized: DialogMonitor.Start() : OS: Microsoft Windows NT 6.1.7601 Service Pack 1
    DialogPlayback: DialogMonitor.Start() : Beginning monitoring for dialogs from the set {}.
    UIAutomation: AutomationExtensions.AddAutomationEventHandler() : Added a(n) WindowPatternIdentifiers.WindowOpenedProperty handler on element System.Windows.Automation.AutomationElement scope Descendants.
    Framework: Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
    Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=1328, Path="C:\Program Files\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
    Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=133176)...
    Error: RegistryConstants.GetRegistryRoot() : Unable to open key HKLM\SOFTWARE\Telerik
    A first chance exception of type 'System.ApplicationException' occurred in ArtOfTest.WebAii.dll

    Also, here is a code sample from my simple program..

    Sub Main()
     
        Dim webSettings As Settings.WebSettings = New Settings.WebSettings()
        Dim mySettings As Settings = New Settings(webSettings)
        Dim mgr As Manager = New Manager(mySettings)
     
        mgr.Start()
     
        mgr.LaunchNewBrowser(BrowserType.InternetExplorer)
     
        mgr.ActiveBrowser.NavigateTo("www.google.com") '-- this url is an example and not the one I am using...
     
        Dim mybtn As Element = mgr.ActiveBrowser.Find.ByAttributes("type=submit")
     
        mgr.ActiveBrowser.Actions.Click(mybtn)
     
        mgr.Dispose()
     
    End Sub

    I've tried many variations of this setup including various options in settings and changing how the browser is called.

    Please help!!

    Thank you
    Craig
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 31 Jul 2011 Link to this post

    Hello Craig,

    Can you please make sure there is no conflict with any previous Test Studio version you have tried on the machine in question? The installer should automatically upgrade the files/registry, etc. but just in case please uninstall any version including Test Studio as well as the framework and install the product of your choice from scratch.

    Also, can you share the exact way you're running the tests in VS? Are you using the standard approach from the Test View there is that some third-party test runner you're giving a go?

    Regards,
    Konstantin Petkov
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  3. Craig
    Craig avatar
    12 posts
    Member since:
    Jun 2011

    Posted 01 Aug 2011 Link to this post

    Good Morning Konstantin,

    I performed the uninstall, and reinstalled the free framework. I am still receiving the exception error when trying to use Internet Explorer.

    I am not using anything special. I am adding the frame work as references into a simple VB.Net console application.

    Thanks,
    Craig

  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 01 Aug 2011 Link to this post

    Hi Craig,

    Can you try that in a VS Test Project please?

    Best wishes,
    Konstantin Petkov
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
Back to Top