Handle Generic Dialog on a Machine with Windows Server 2008

2 posts, 0 answers
  1. Karla
    Karla avatar
    24 posts
    Member since:
    Jun 2011

    Posted 02 Feb 2012 Link to this post



    Hi,

    Actually I copy some of my test cases in a server machine. All of them run correctly on my machine but when I put them on the Server Machine and try to run them, the test cases that have Handle "Generic" Dialog, fail on this step.

    My machine have following configuration:
    IE 8.0.7600.16385
    Windows 7 Professional

    Server Machine:
    IE 8.0.7601.17514
    Windows Server 2008 R2 Standard

    Not sure if some of this configuration affect the handle dialog feature form WebUi

    Following is an example of the log from a test case that try to execute a hadle dialog step


    Overall Result: Fail
    ------------------------------------------------------------
    '2/2/2012 6:35:16 PM' - Using .Net Runtime version: '4.0.30319.1' for tests execution.
    '2/2/2012 6:35:16 PM' - Starting execution....
    '2/2/2012 6:35:16 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True
    ------------------------------------------------------------
    ------------------------------------------------------------
    '2/2/2012 6:35:20 PM' - Using 'InternetExplorer' version '8.0' as default browser.
    '2/2/2012 6:37:23 PM' - 'Pass' : 1. Execute test 'BVT - Create Shortcut For A Panel'

    >>> Test-as-Step 'Framework\BVT\BVT - Create Shortcut For A Panel.tstest' log starts:

    Overall Result: Pass
    ------------------------------------------------------------
    '2/2/2012 6:35:24 PM' - Using 'InternetExplorer' version '8.0' as default browser.
    '2/2/2012 6:37:03 PM' - 'Pass' : 1. Execute test 'Create New Panel'

    >>> Test-as-Step 'Create New Panel.tstest' log starts:

    Overall Result: Pass
    ------------------------------------------------------------
    '2/2/2012 6:35:24 PM' - Using 'InternetExplorer' version '8.0' as default browser.
    '2/2/2012 6:36:17 PM' - 'Pass' : 1. Execute test 'BVT - Create A New Workspace'

    >>> Test-as-Step 'BVT - Create A New Workspace.tstest' log starts:

    Overall Result: Pass
    ------------------------------------------------------------
    '2/2/2012 6:35:25 PM' - Using 'InternetExplorer' version '8.0' as default browser.
    '2/2/2012 6:36:03 PM' - 'Pass' : 1. Execute test 'Login'

    >>> Test-as-Step 'Login.tstest' log starts:

    Overall Result: Pass
    ------------------------------------------------------------
    '2/2/2012 6:35:25 PM' - Using 'InternetExplorer' version '8.0' as default browser.
    '2/2/2012 6:35:33 PM' - 'Pass' : 1. Navigate to : '/'
    '2/2/2012 6:35:37 PM' - 'Pass' : 2. LeftClick on Item0Textboxview
    '2/2/2012 6:35:39 PM' - 'Pass' : 3. Type 'Stress002' into UserNameTextbox
    '2/2/2012 6:35:40 PM' - 'Pass' : 4. LeftClick on Item1Textboxview
    '2/2/2012 6:35:42 PM' - 'Pass' : 5. Type 'Stress002' into PasswordPasswordbox
    '2/2/2012 6:35:42 PM' - 'Pass' : 6. Click ButtonLoginButton
    '2/2/2012 6:36:03 PM' - 'Pass' : 7. Wait for '20000' msec.
    ------------------------------------------------------------
    '2/2/2012 6:36:03 PM' - Overall Result: Pass
    '2/2/2012 6:36:03 PM' - Duration: [0 min: 37 sec: 810 msec]
    ------------------------------------------------------------

    <<< Test-as-Step 'Login.tstest' log ends.

    '2/2/2012 6:36:06 PM' - 'Pass' : 2. LeftClick on ImageImage
    '2/2/2012 6:36:10 PM' - 'Pass' : 3. Drag Item0Textboxview to application at (531, 153) from TopLeftCorner
    '2/2/2012 6:36:12 PM' - 'Pass' : 4. Type 'name1' into WorkspaceNameTextBoxTextbox
    '2/2/2012 6:36:13 PM' - 'Pass' : 5. LeftClick on ImageImage2
    '2/2/2012 6:36:14 PM' - 'Pass' : 6. LeftClick on MainHeaderRectRectangle
    '2/2/2012 6:36:17 PM' - 'Pass' : 7. Wait for '3500' msec.
    ------------------------------------------------------------
    '2/2/2012 6:36:17 PM' - Overall Result: Pass
    '2/2/2012 6:36:17 PM' - Duration: [0 min: 52 sec: 718 msec]
    ------------------------------------------------------------

    <<< Test-as-Step 'BVT - Create A New Workspace.tstest' log ends.

    '2/2/2012 6:36:18 PM' - 'Pass' : 2. LeftClick on ImageImage0
    '2/2/2012 6:36:19 PM' - 'Pass' : 3. Wait for '1000' msec.
    '2/2/2012 6:36:21 PM' - 'Pass' : 4. Verify 'NavigatorTextblock' text Same 'Navigator'
    '2/2/2012 6:36:22 PM' - 'Pass' : 5. Desktop command: LeftClick on NavigatorTextblock
    '2/2/2012 6:36:22 PM' - 'NotRun' : 6. Manual: Click on the "Navigator" panel type
    '2/2/2012 6:36:27 PM' - 'Pass' : 7. Wait for '5000' msec.
    '2/2/2012 6:36:32 PM' - 'Pass' : 8. Open 'DropDownControlDropdowncontrol' drop down.
    '2/2/2012 6:36:33 PM' - 'Pass' : 9. Wait for '1000' msec.
    '2/2/2012 6:36:34 PM' - 'Pass' : 10. Desktop command: LeftClick on MainTextBlockTextblock
    '2/2/2012 6:36:36 PM' - 'Pass' : 11. Open 'DropDownControlDropdowncontrol0' drop down.
    '2/2/2012 6:36:46 PM' - 'Pass' : 12. Wait for '10000' msec.
    '2/2/2012 6:36:47 PM' - 'Pass' : 13. Desktop command: LeftClick on MainTextBlockTextblock0
    '2/2/2012 6:36:48 PM' - 'Pass' : 14. Desktop command: LeftClick on NewRadbutton
    '2/2/2012 6:37:03 PM' - 'Pass' : 15. Wait for '15000' msec.
    '2/2/2012 6:37:03 PM' - 'NotRun' : 16. LeftClick on ImageImage1
    '2/2/2012 6:37:03 PM' - 'NotRun' : 17. Wait for '3000' msec.
    ------------------------------------------------------------
    '2/2/2012 6:37:03 PM' - Overall Result: Pass
    '2/2/2012 6:37:03 PM' - Duration: [1 min: 38 sec: 965 msec]
    ------------------------------------------------------------

    <<< Test-as-Step 'Create New Panel.tstest' log ends.

    '2/2/2012 6:37:05 PM' - 'Pass' : 2. Desktop command: LeftClick on ShortcutButtonButton
    '2/2/2012 6:37:17 PM' - 'Pass' : 3. Drag Item0Textboxview0 to application at (518, 405) from TopLeftCorner
    '2/2/2012 6:37:19 PM' - 'Pass' : 4. Type 'PIN Panel' into InputTextValueTextbox
    '2/2/2012 6:37:20 PM' - 'Pass' : 5. Desktop command: LeftClick on BackgroundGradientRectangle
    '2/2/2012 6:37:23 PM' - 'Pass' : 6. Wait for '3000' msec.
    ------------------------------------------------------------
    '2/2/2012 6:37:23 PM' - Overall Result: Pass
    '2/2/2012 6:37:23 PM' - Duration: [1 min: 59 sec: 126 msec]
    ------------------------------------------------------------

    <<< Test-as-Step 'Framework\BVT\BVT - Create Shortcut For A Panel.tstest' log ends.

    '2/2/2012 6:37:24 PM' - 'Pass' : 2. Desktop command: LeftClick on ImageImage2
    '2/2/2012 6:37:28 PM' - 'Pass' : 3. Click CloseButtonButton
    '2/2/2012 6:37:30 PM' - 'Pass' : 4. Desktop command: LeftClick on NoButton
    '2/2/2012 6:37:32 PM' - 'Pass' : 5. Wait for '2000' msec.
    '2/2/2012 6:37:33 PM' - 'Pass' : 6. Select tab '1' in TabControl1Tabcontrol
    '2/2/2012 6:37:35 PM' - 'Pass' : 7. Wait for '2000' msec.
    '2/2/2012 6:37:36 PM' - 'Pass' : 8. Desktop command: LeftClick on PINPanelTextblock
    '2/2/2012 6:37:43 PM' - 'Pass' : 9. Wait for '7000' msec.
    '2/2/2012 6:37:44 PM' - 'Pass' : 10. Desktop command: HoverOver on Item44Image
    '2/2/2012 6:37:45 PM' - 'Pass' : 11. Desktop command: LeftClick on Item44Image
    '2/2/2012 6:37:48 PM' - 'Pass' : 12. Wait for '3000' msec.
    '2/2/2012 6:37:54 PM' - 'Fail' : 13. Handle 'Generic' dialog.
    ------------------------------------------------------------
    Failure Information:
    ~~~~~~~~~~~~~~~
    Timed out waiting '5000' msec. for any dialog to be handled '1'
    InnerException:
    System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
       at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
    ------------------------------------------------------------
    '2/2/2012 6:37:55 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
    ------------------------------------------------------------
    '2/2/2012 6:37:55 PM' - Overall Result: Fail
    '2/2/2012 6:37:55 PM' - Duration: [2 min: 34 sec: 215 msec]
    ------------------------------------------------------------
    '2/2/2012 6:38:16 PM' - Test completed!

     


    Thanks,

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 07 Feb 2012 Link to this post

    Hello Karla,
    it's plausible that such a problem may exist. Dialogs are client-sided. This means that a dialog may be implemented differently for a specific browser version and OS. An obvious example would be Dialogs in IE8 and IE9 which are very different at their code implementation as well as visually.

    Please give us a bit of time so that we may work on reproducing this issue - I will get back to you immediately once we've tested out this configuration. Meanwhile, you might be able to workaround the issue by implementing a desktop "Enter" click to handle the Dialog on the Windows Server:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/invoke-blind-keyboard-typing.aspx
     
    Kind regards,
    Stoich
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top