RadMaskedTextBox in RadTreeView

6 posts, 0 answers
  1. Scott
    Scott avatar
    3 posts
    Member since:
    Feb 2011

    Posted 27 Jul 2011 Link to this post

    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
  2. Scott
    Scott avatar
    3 posts
    Member since:
    Feb 2011

    Posted 27 Jul 2011 Link to this post

    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.
  3. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 30 Jul 2011 Link to this post

    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?
  4. Scott
    Scott avatar
    3 posts
    Member since:
    Feb 2011

    Posted 02 Aug 2011 Link to this post

    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.
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 02 Aug 2011 Link to this post

    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?
  6. Jaleel
    Jaleel avatar
    3 posts
    Member since:
    Dec 2011

    Posted 19 Jan 2012 Link to this post

    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
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!