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

RadMaskedTextBox in RadTreeView

5 Answers 69 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.
Scott
Top achievements
Rank 1
Scott asked on 27 Jul 2011, 08:53 AM
I am using WebUI Test Studio Developer 103.15.2.0.
When I record steps, after adding new record in application it is shown in RadTreeView - RadTreeVievItem - RadMaskedTextBox.
Then I do Validate Text Content On that RadMaskedTextBox, and step is recorded fine, but when I am executing test I get:

ArtOfTest.Common.Design.Exceptions.ExecutionException: Wait for condition has timed out ---> 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.RadMaskedTextBox.get_ExtendedTextBox()
   at Telerik.WebAii.Design.Translators.Xaml.MaskedTextBox.MaskedStringPropertyVerification.GetValueByProperty(String name)
   at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlPropertyVerificationDescriptor.ExtractData(SilverlightApp hostApp, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Extensibility.XamlVerificationDescriptor.ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()

I try to put wait condition and I am sure that element exists but it is not working. If I put Run To Here on that validation, validation will not pass and after that I record same validating step and it is recording again well (now finding that element fine).
RadMaskedTextBox is not showing all parents like TextBlock (See Attachment), and they are in DOM childrens of same RadTreeViewItem

5 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 27 Jul 2011, 09:09 AM
I find work around - first I validate TextBox and then validating RadMaskedTextBox works fine. But if I want to validate only RadMaskedTextBox, there is still bug.
0
Konstantin Petkov
Telerik team
answered on 30 Jul 2011, 09:25 PM
Hi Scott,

This looks like a problem with the RadMaskedTextBox Translator in Test Studio. Can you please try our latest official release (2011.1.712) available for download from this page in your account or even the latest internal build (labeled 2011.1.729) we shipped last week? Please let us know if you need further assistance.

Kind regards,
Konstantin Petkov
the Telerik team
Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
Scott
Top achievements
Rank 1
answered on 02 Aug 2011, 08:03 AM
I already tried TestStudio 2011.1.624 but RadGrid Row count didn't work so I went back to 2010.3.1502. This bug was considered but not fixed as I see it in your bug tracking system. It is time consuming for me to test your recommended version, so can you please check for me is RadGrid Row count working because it is important for my tests. Best regards.
0
Konstantin Petkov
Telerik team
answered on 02 Aug 2011, 08:12 AM
Hello Scott,

You are correct, the bug is not addressed yet. However you can use a work-around similar to the one I'm posting here (this one iterates through all rows and cells, also clicks on each cell and types something).

var panel = Pages.Application.SilverlightApp.MasterDataGridTigerradgridview.Find.ByName("PART_GridViewVirtualizingPanel");
  
foreach(FrameworkElement e in panel.GetChildren())
{
    GridViewRow row = e.CastAs<GridViewRow>();
 
    foreach(GridViewCell c in row.Cells)
    {  
        c.ScrollToVisible();
        c.User.Click();
        System.Threading.Thread.Sleep(1000);
        c.User.TypeText("T", 0, 0, false, false);
        System.Threading.Thread.Sleep(500);
        c.User.TypeText("T", 0, 0, false, false);     
    }
}


Kind regards,
Konstantin Petkov
the Telerik team
Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
Jaleel
Top achievements
Rank 1
answered on 19 Jan 2012, 08:40 AM
Hi,

      I am using silverlight 4.0 and telerik Q2 version in my application, My question is : i want to lock a entire row based on particular condition, for acheive this i used 'isreadonlybinding' property.  It locks the row but some of the controls are not locked.
( I am using radgridview, RadMaskedNumericInput and raddatepicker are placed inside the radgridview, these controls are not locked).

thanks

Jaleel
Tags
General Discussions
Asked by
Scott
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Jaleel
Top achievements
Rank 1
Share this question
or