Playback issue on RadGridView

6 posts, 0 answers
  1. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 01 Mar Link to this post

    Hi,

      I have downloaded the Telerik test studio and recorded on the RadGridView with 8 columns and 10 rows.we have to scroll horizontally to edit the data in the cellelement 05(i.e. 0th row and 5th column). I have recorded the steps, while playback it is unable to get the element in to focus and perform action on it. It failed saying the reason "Unable to locate element".search Failed!

          The following code snippet is xaml code related to RadGridView

                <telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding Customers}" Margin="0,0,8,178">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Gender}" Header="Gender"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Email}" Header="Email"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name1"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name1"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Gender}" Header="Gender1"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Email}" Header="Email1"/>
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>

       Any help how to solve this problem is very helpful.

     

    Regards,

    Nagasree.

       

  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 03 Mar Link to this post

    Hi,

    A playback problem like this could happen because of some dynamic change in the application the recorder has not detected for some specific reason. You need to determine the exact change of the original application content as well as the one that is expected and find what changed that. Test Studio helps with diagnosing the step failure but it's first important to read the exact failure first.

    Can you please share the exact failure details? You can do so via the Export option from the Step Failure Details UI and send the file attached here or in a private support ticket if you prefer.

    Regards,
    Konstantin Petkov
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 03 Mar in reply to Konstantin Petkov Link to this post

    Hi Petkov's,

       I have created simple sample application with RadGridView binded with Employee details.On RadGridView we set properties  "Enable RowVirtualization" and "Enable ColumnVirtualization "  value to true. In the script try to click on the row and column which is not visible.The playback fails to click on the control.If we still need any information let me know.

    Regards,

    Nagasree.

     

  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 03 Mar Link to this post

    Hello Nagasree,

    Having sample application is really great in troubleshooting a specific problem. Please send it in a .zip file along with the test case which fails so that we can troubleshoot it locally and provide solution shortly. If you don't want to share it publicly you can also submit a private support ticket, just let us know once submitted.

    I'm looking forward to hearing from you!

    Regards,
    Konstantin Petkov
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  5. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 03 Mar in reply to Konstantin Petkov Link to this post

    Hi Petkov,

         I have attached sample application without debug folder as it is exceeding 2MB.the workflow is as follows:

       1. click on the RadGridView Tab.

       2.click on Sirisha.mamidi@Intergraph.com column value under the columnheader "Email1" not "email".

    Try to playback it.

    Regards,

    Nagasree.

  6. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 04 Mar Link to this post

    Hello,

    Thanks for sending the sample application!

    That's actually a known issue with RadGridView automation you can read about here. Basically the recording and playback mismatch because of the AutiomationId-s automatically generated by the GridView automation peers during recording, however those missing on playback thus failing the test.

    In order to solve the problem you can either modify each element that fails changing its find logic or simply disable the automation peers on application level as pointed out on the feedback portal item (see comments there).

    I have attached the updated sample application you can record against. The only change is in the MainWindows.xaml.cs where I added the first line in the constructor:

    public MainWindow()
    {
        AutomationManager.AutomationMode = AutomationMode.Disabled;

    Now any newly recorded test step will generate elements without those dynamic AutomationIds RadGridView generates helping the test pass on playback.

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