This is a migrated thread and some comments may be shown as answers.

Clicks happen but not registered

3 Answers 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hugh
Top achievements
Rank 1
Hugh asked on 29 Apr 2013, 03:31 AM
As i am running my test the system has to click on a tile button on the web page. The click happens the pages changes but Telerik Test Studio does not register the click and therefore does not move onto the the step. Here is a section of the log


'29/04/2013 1:28:24 PM' - 'Fail' : 21. Click 'SettingsPngImage'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   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.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
   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)
------------------------------------------------------------
'29/04/2013 1:28:24 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------


Interestingly i have found that as it still "executing..."  the click  after it has really happened and before the time out if you hit the Esc key it will continue the test happily.

How can i get Telerik to know that that click has happened? I have tried with simulated click on and off and its the same story.


3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Apr 2013, 10:09 AM
Hello Hugh,

Try setting the SimulateRealClick property for the Click steps to True. See this article for more information. If you are using our free Testing Framework simply replace the Click() method with MouseClick().

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
John
Top achievements
Rank 1
answered on 02 May 2013, 04:33 AM
I am using the Demo version. I have tried using the simulate real  click and with it turned off. The click is happening and the new page is loading but Telerik does not move to the next step. In some of my tests i can press esc after the click has been made to get the test to move onto the next step.
0
Plamen
Telerik team
answered on 02 May 2013, 12:59 PM
Hello John,

To overcome this, please also try to increase the ClientReadyTimeout that specifies the amount of time to wait for a ready state. You can do that from the Test List Settings (if you are running your test as part of a Test List) or from Quick Execution Options (if it's a Quick Execution).

If you continue to have difficulty, we'll need to reproduce the issue locally in order to investigate what is happening and find a workable solution for you. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace using FiddlerCap and send it to us in a zip file. A Jing video demonstrating the issue may also help us to better understand what is happening. If you feel any of this information is sensitive, you can submit a support ticket which is confidential, unlike this forum.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Hugh
Top achievements
Rank 1
Answers by
Plamen
Telerik team
John
Top achievements
Rank 1
Share this question
or