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

Coded samples run but aii file based tests do not

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 10 Aug 2011, 04:24 PM
Hello Chaps

I have been working with the "DemoTests" project just trying to confirm some functionality and have been having some strange results.

The coded test VSTSUnitTestUsingProjectElements.cs works fine and passes each time

The visual aii builder created test SimpleGoogleSearch.aii fails even before the test step has been executed.

I have tried disabling the internet explorer add ons but it did not seem to make any difference. There seems to be a number of things that can cause this!

Any help you can offer would be hugely apprieciated

The error message is:

------------------------------------------------------------
'10/08/2011 16:20:59' - Starting execution....
'10/08/2011 16:21:00' - Failure detected during execution. Details:
------------------------------------------------------------
'10/08/2011 16:21:00' - System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.Runtime.InteropServices.COMException
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at System.Management.ManagementObject.Get()
   at ArtOfTest.Common.Extensions.ProcessExtensions.GetParentProcess(Process process)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'10/08/2011 16:21:00' - Test completed!


1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 12 Aug 2011, 10:08 PM
Hello John,

Which version of Test Studio did you install and which version of IE are you using? Our current version now creates .tstest files, not .aii files... which leads me to suspect you've installed a very old version of Test Studio.

All the best,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or