Safari won't play recorded test

4 posts, 0 answers
  1. Lee
    Lee avatar
    6 posts
    Member since:
    Jul 2011

    Posted 16 Aug 2011 Link to this post

    I had reported the same problem with different points previously, but enough is different now to warrant a new thread, I think.

    I successfully recorded and replayed a test in IE8. I have reviewed the setup information for Safari, I am using Safari 5.1, and all is as the sheets say preferences should be. However, when I hit execute with Safari selected, up pops the browser but with an incorrect address in the address window. It has http://localhost:59057/WebUI?2091990182.  The first step in the test is "Navigate to: 'http://localhost:4874/index.html".  In the main window it says "Preparing browser for automation..."

    If I manually replace the wrong address with the right address, the browser goes to the app but never executes the remaining steps. If I log in to the correct address manually with the browser without TS it launches the app just fine.

    I increased the WaitOnElementsTimeout to 100000 to no avail.

    Here is the log output:
    ------------------------------------------------------------
    '8/16/2011 1:17:53 PM' - Starting execution....
    '8/16/2011 1:17:53 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True
    '8/16/2011 1:18:54 PM' - Failure detected during execution. Details:
    ------------------------------------------------------------
    '8/16/2011 1:18:54 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)
       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.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)
    ------------------------------------------------------------
    '8/16/2011 1:18:54 PM' - Test completed!




    Lee
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 17 Aug 2011 Link to this post

    Hello Lee,

    It seems you are currently running Test Studio version 2011.1.712. This can be verified on the Help tab in the lower left corner.

    We have support for Safari 5.1 since version 2011.1.729. Please upgrade to our latest internal build 2011.1.809. This is available for download on the "Your Account" page on www.telerik.com under the Internal Builds Downloads section. Here is a direct link. 

    Let me know if you need further assiatance!

    Best wishes,
    Plamen
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. Lee
    Lee avatar
    6 posts
    Member since:
    Jul 2011

    Posted 17 Aug 2011 Link to this post

    Okay, I updated to version 817 and that helped. Now Safari opens up and navigates to the app but it won't do the whole test.

    Here are the basic steps of the test:
    1. Navigate to app
    2. Verify user name text box is visible
    3. Input user name
    4. Input password
    5. Click on login button
    6. Verify title of app on opening page

    The test fails in step 2, unable to find the Telerik text box.

    Here is the log output:
    Overall Result: Fail
    ------------------------------------------------------------
    '8/17/2011 8:27:46 AM' - Starting execution....
    '8/17/2011 8:27:46 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True
    ------------------------------------------------------------
    '8/17/2011 8:27:49 AM' - 'Pass' : 1. Navigate to : 'http://localhost:4874/index.html'
    '8/17/2011 8:28:11 AM' - 'Fail' : 2. Verify UserNameRadmaskedtextbox's visibility is Visible
    ------------------------------------------------------------
    Failure Information:
    ~~~~~~~~~~~~~~~
    Timeout trying to connect to Silverlight App.
    InnerException:
    System.TimeoutException: Timeout trying to connect to Silverlight App.
       at ArtOfTest.WebAii.Silverlight.SilverlightApp.WaitUntilExtensionCreated(String extensionCall)
       at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)
       at ArtOfTest.WebAii.Silverlight.SilverlightApp.GetApp(HtmlControl host, Int32 timeout, Boolean catchedOnly)
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHostEE(IAutomationHost topBrowser, ElementDescriptor element, String& error)
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
    ------------------------------------------------------------
    '8/17/2011 8:28:11 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
    ------------------------------------------------------------
    '8/17/2011 8:28:11 AM' - Overall Result: Fail
    '8/17/2011 8:28:11 AM' - Duration: [0 min: 22 sec: 659 msec]
    ------------------------------------------------------------
    '8/17/2011 8:28:11 AM' - Test completed!

  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 18 Aug 2011 Link to this post

    Hi Lee,

    I'm sorry you are running into this problem. I've been able to reproduce it. It looks like we have a general problem executing tests recorded against Silverlight application with Safari 5.1. Unfortunately there is no work around for this issue at this point. I've logged it as a bug. You can track its progress in our PITS system here.

    I've updated your Telerik points for reporting the problem. I hope to be fixed soon!

    Kind regards,
    Plamen
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top