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

Exception Error when running from visual studio

3 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 29 Jul 2011, 02:25 PM
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

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 31 Jul 2011, 12:42 PM
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?
0
Craig
Top achievements
Rank 1
answered on 01 Aug 2011, 03:11 PM
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

0
Konstantin Petkov
Telerik team
answered on 01 Aug 2011, 04:13 PM
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?
Tags
General Discussions
Asked by
Craig
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Craig
Top achievements
Rank 1
Share this question
or