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

Issue timeout with Radcombobox

7 Answers 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Totti
Top achievements
Rank 1
Totti asked on 25 Jan 2011, 05:24 AM
I even try to add more time but still error in Radcombobox at Selecting item:

Overall Result: Fail
--------------------------------------------------
'1/25/2011 11:18:01 AM' - 'Pass' : 1. Navigate to : 'http://localhost:4384/Home.aspx'
'1/25/2011 11:18:04 AM' - 'Pass' : 2. LeftClick on RootTxtTextblock
'1/25/2011 11:18:07 AM' - 'Pass' : 3. Click BtnLoginButton
'1/25/2011 11:18:10 AM' - 'Pass' : 4. LeftClick on Item1Listboxitem
'1/25/2011 11:18:13 AM' - 'Pass' : 5. Click SetupMenuItemButton
'1/25/2011 11:18:21 AM' - 'Pass' : 6. radtileviewitem: 'Products' toggle state action.
'1/25/2011 11:18:22 AM' - 'Pass' : 7. Click LnkNewHyperlinkbutton
'1/25/2011 11:18:24 AM' - 'Pass' : 8. radmaskedtextbox: click with '0' offset action.
'1/25/2011 11:18:26 AM' - 'Pass' : 9. radmaskedtextbox: type 'Delta' text action.
'1/25/2011 11:18:27 AM' - 'Pass' : 10. radmaskedtextbox: click with '0' offset action.
'1/25/2011 11:18:28 AM' - 'Pass' : 11. radmaskedtextbox: type '01' text action.
'1/25/2011 11:18:35 AM' - 'Fail' : 12. radcombobox: drop down 'Open' action.
--------------------------------------------------
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)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition)
   at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)
   at ArtOfTest.WebAii.Silverlight.VisualFind.ReturnOrThrow(FrameworkElement e, String throwMessage)
   at ArtOfTest.WebAii.Silverlight.VisualFind.ByName(String name)
   at Telerik.WebAii.Controls.Xaml.RadComboBox.get_DropDownPopup()
   at Telerik.WebAii.Controls.Xaml.RadComboBox.WaitDropDownAnimation(Int32 millis)
   at Telerik.WebAii.Controls.Xaml.RadComboBox.ToggleDropDown()
   at Telerik.WebAii.Design.Translators.Xaml.ComboBox.ComboToggleDropDownAction.Execute(SilverlightApp autoHost)
   at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--------------------------------------------------
'1/25/2011 11:18:35 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'1/25/2011 11:18:36 AM' - Overall Result: Fail
--------------------------------------------------



---> How to fix this issue ?

7 Answers, 1 is accepted

Sort by
0
Totti
Top achievements
Rank 1
answered on 26 Jan 2011, 05:19 AM
How does resolve this issue?
Thanks.
0
Totti
Top achievements
Rank 1
answered on 27 Jan 2011, 08:58 AM
Could you give me a recording sample with Radcombobox ?

0
Boyan
Telerik team
answered on 27 Jan 2011, 10:34 AM
Hi Totti,

There was a bug in our wrappers which we introduced with the version you are using. It is already fixed. You can download the latest internal build from here: http://www.telerik.com/downloads/nightbuildfiles/bacg/Telerik.WebUI.TestStudio.Dev.2010.3.1307.msi. The fix is included in it.

We are sorry for the inconvenience caused. If you are still having problems please let us know.

All the best,
Boyan
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
lora
Top achievements
Rank 1
answered on 20 Mar 2012, 03:22 PM
I'm having the same issue with R2 release. I attempted to access your link above, but the page is no longer valid.
0
Anthony
Telerik team
answered on 21 Mar 2012, 04:55 PM
Hello Lora,

Use this link to download the latest version of Test Studio. If your issue persists after upgrading, please provide more information on it.

Regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Palvi
Top achievements
Rank 1
answered on 16 Jun 2020, 01:20 AM

I am also facing the same issue of timeout. I am using free Telerik Testing framework with MSTest. If, I call the selectItem method directly from the Test method, It is working fine. But If I create a reusable method and call it from Test method. It is giving timeout exception. Ex. 

[TestMethod]

public void SelectItem(){

element.SelectItem(10, true);

}

The above code is working fine. but not below one

TestMethod]
public void SelectItem(){
SelectItemByIndex(10);
}

public static SelectItemByIndex(int index){

element.SelectItem(index, true);

}

0
Elena
Telerik team
answered on 18 Jun 2020, 02:19 PM

Hi Palvi,

I am sorry to know you are having any troubles and will be happy to assist you further. 

Since you are referring to a thread from quite long time ago, I will appreciate if you take the time to share some additional details on the case. It will be best if you can prepare a sample test, in which you demonstrate how the reusable method is defined, how the element is being identified and used with the method - this will help me understand what might be going wrong in the used approach.

In general, you should define the element outside of the reusable method and pass the defined one to the method. So it should be something similar to: 

public static ReusableSelectItemByIndex([the type of the dropdown] element, int index)

{
element.SelectItem(index, true);
}

Of course, if this is not sufficient for you, do not hesitate to get back to me and continue the discussion.

Thank you for your cooperation in advance.

Regards,
Elena
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Totti
Top achievements
Rank 1
Answers by
Totti
Top achievements
Rank 1
Boyan
Telerik team
lora
Top achievements
Rank 1
Anthony
Telerik team
Palvi
Top achievements
Rank 1
Elena
Telerik team
Share this question
or