Click() event do not work when test is runned on scheduler

8 posts, 0 answers
  1. Adam
    Adam avatar
    8 posts
    Member since:
    Sep 2015

    Posted 08 Mar Link to this post

    Hi,

    Click() event do not work when test is runned on scheduler or when i minimize the remote desktop window(where the connection to the machine with test studio is).

    If i'm leaving the window open and i run the test, everything works smooth.

    I've enabled SimulateRealClick, still no changes.

    The errors at log is next:

    System.ComponentModel.Win32Exception (0x80004005): SendInput: Failed. Win32Error: 
       at ArtOfTest.WebAii.Win32.Win32NativeMethods.SendInputInternal(Input[] inputData)
       at ArtOfTest.WebAii.Win32.Mouse.Click(MouseClickType clickType, Int32 x, Int32 y, Int32 wheelDelta)
       at ArtOfTest.WebAii.Win32.Mouse.Click(MouseClickType clickType, Int32 x, Int32 y, Int32 wheelDelta)
       at ArtOfTest.WebAii.Win32.Mouse.Click(MouseClickType clickType, Point pointToClick)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.MouseClick()
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ClickActionDescriptor.Execute(Browser browser)
       at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

     

     

    PLEASE help.

  2. Briar
    Briar avatar
    58 posts
    Member since:
    Jun 2014

    Posted 08 Mar in reply to Adam Link to this post

    Hi, Adam,

    There is this possible solution:  http://docs.telerik.com/teststudio/knowledge-base/test-execution-kb/minimized-rdc.

    However, I could not get it to work for me.  I always have to leave the remote desktop window open.

    -Briar

  3. Adam
    Adam avatar
    8 posts
    Member since:
    Sep 2015

    Posted 09 Mar in reply to Briar Link to this post

    Hi Briar,

    Thanks for the advice. I will try it.

    But can you please tell me if your tests also fail when they are running on the remote machine? Because my are.

    Thanks

    -Adam

  4. Briar
    Briar avatar
    58 posts
    Member since:
    Jun 2014

    Posted 09 Mar Link to this post

    Hi, Adam,

    My experience has been if test scripts are running fine in Quick Execution mode, but not remotely, in remote mode the test list is running faster than the web application it is testing.  So you have to make adjustments in your scripts to slow them down and synchronize them with the web application.  For example, before actually initiating a click event, you check to make sure the button is enabled first.  If your application uses AJAX postbacks, you can utilize the AJAX timeout parameter to slow those particular steps down.  There is also the UseStepWaitOnElements to adjust the wait time with steps you know will always take more time.

    There is more information here explaining this issue:  http://www.telerik.com/forums/test-lists-are-un-stable-while-quick-executions-are-stable#4SWHgAV0ikmPZ31phqEJLw

    Hope this helps!

    -Briar

  5. Adam
    Adam avatar
    8 posts
    Member since:
    Sep 2015

    Posted 09 Mar in reply to Briar Link to this post

    Hi Briar,

    Telerik said that it's a known issue and i should try this: http://docs.telerik.com/teststudio/knowledge-base/scheduling-kb/keep-active-session

    -Adam

  6. Briar
    Briar avatar
    58 posts
    Member since:
    Jun 2014

    Posted 10 Mar in reply to Adam Link to this post

    Leaving the remote desktop connection window open works for me but I'll keep this alternative solution in mind.  Thanks for the info, Adam!
  7. Adam
    Adam avatar
    8 posts
    Member since:
    Sep 2015

    Posted 14 Mar Link to this post

    Found a solution, I rerecorded the test, and used the step from a newly recorded, it work perfectly. so looks like it was some kind of bug, because the issues started straight after the test studio update.

    Hope it will help.

    ~Adam

  8. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 16 Mar Link to this post

    Hello Adam,

    Happy to hear that you have found a solution.

    If you need additional assistance please let us know.

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top