Error while running tests against FF and Safari

4 posts, 1 answers
  1. Roberto
    Roberto avatar
    4 posts
    Member since:
    Aug 2012

    Posted 15 Feb 2012 Link to this post

    Hello,

    I am having issues running my test cases using the quick execution against Firefox 10 (had 9 installed but just upgraded to 10) and Safari 5.1; they run just fine against IE7 and Chrome (17.0.963).

    In both cases, the browsers display a message “Preparing browser for automation…”  and then it errors out.   Also, I have followed the configurations instructions for both browsers and verified extensions are enabled.

    I am using Telerik Test Studio Version 2011.2.14.13.0 on a Windows XP, Professional SP3 system.

    Please find screenshots attached.

    FF error

    ------------------------------------------------------------'2/15/2012 1:13:10 PM' - Using .Net Runtime version: '2.0.50727.3625' for tests execution.'2/15/2012 1:13:10 PM' - Starting execution....'2/15/2012 1:13:40 PM' - Failure detected during execution. Details:------------------------------------------------------------'2/15/2012 1:13:40 PM' - System.TimeoutException: Wait for condition has timed out   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)   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(ExecuteTestCommand command)------------------------------------------------------------'2/15/2012 1:13:41 PM' - Test completed!

    Safari error

    Overall Result: Fail------------------------------------------------------------'2/15/2012 1:07:58 PM' - Using .Net Runtime version: '2.0.50727.3625' for tests execution.'2/15/2012 1:07:58 PM' - Starting execution....------------------------------------------------------------------------------------------------------------------------'2/15/2012 1:08:05 PM' - Using 'Safari' version '5.1' as default browser. '2/15/2012 1:08:26 PM' - 'Fail' : 1. Navigate to : '/'------------------------------------------------------------Failure Information: ~~~~~~~~~~~~~~~ExecuteCommand failed!BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'https://www2dev.mdanderson.org/sapp/tracs-test/default.aspx/',ClientId:'9dae7b4f-05bc-449c-9089-56fa49071409',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')InnerException: System.TimeoutException: Timed out waiting for command to be handled   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)InnerException:ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'https://www2dev.mdanderson.org/sapp/tracs-test/default.aspx/',ClientId:'9dae7b4f-05bc-449c-9089-56fa49071409',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')InnerException: System.TimeoutException: Timed out waiting for command to be handled   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request) ---> System.TimeoutException: Timed out waiting for command to be handled   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)   --- End of inner exception stack trace ---   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)   at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri)   at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)   at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.NavigateToActionDescriptor.Execute(Browser browser)   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)------------------------------------------------------------'2/15/2012 1:08:26 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.------------------------------------------------------------'2/15/2012 1:08:26 PM' - Overall Result: Fail'2/15/2012 1:08:26 PM' - Duration: [0 min: 21 sec: 86 msec]------------------------------------------------------------'2/15/2012 1:09:07 PM' - Test completed!

  2. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 20 Feb 2012 Link to this post

    Hi Roberto,

    I'm sorry you are experiencing these problems.

    1. Sometimes after an upgrade the Safari extension needs to be re-installed in order to work properly. See this video for more information.
     
    2. To overcome the Firefox problem, please do the following:
    • First, please ensure that our Firefox extension is installed and enabled as seen in this article.
    • If the extension is enabled and it still doesn't work, click on the Firefox "Tools" button and select "Advanced" options.
    • Under the "Network" heading, click on the "Settings" button.
    • From the Connection Settings select "No proxy". See this video.

    Please let me know if you're still unable to get this to work.


    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Roberto
    Roberto avatar
    4 posts
    Member since:
    Aug 2012

    Posted 20 Feb 2012 Link to this post

    I was able to run my test using FF by following the instructions you provided.

    For some reason, my test would not run in QuickExecute using Safari even after uninstalling/reinstalling the extension; it only ran successfully after I ran it as part of a Test List.

    Thanks for your help.

    Roberto A.
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 21 Feb 2012 Link to this post

    Hello Roberto,

    Are you still getting the same exception in Safari? Is this something specific to your test? Please try to create a new project and record a simple Google test. Run this test in Safari and let me know if the issue persist.
     
    A significant difference between Quick Execution and Test List execution are the settings. Quick Execution employs the project settings (seen in the Project Settings menu) while a TestList has its own settings configuration. If you are not able to reproduce the problem with the newly created project(with default settings), then the problem is probably related to the Project Settings. 

    Kind regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top