Coded samples run but aii file based tests do not

2 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    Aug 2011

    Posted 10 Aug 2011 Link to this post

    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!


  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 12 Aug 2011 Link to this post

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