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

Playback issue on RadGridView

5 Answers 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 01 Mar 2016, 09:18 AM

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.

   

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 03 Mar 2016, 08:09 AM
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!
0
Dharmavaram
Top achievements
Rank 1
answered on 03 Mar 2016, 08:56 AM

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.

 

0
Konstantin Petkov
Telerik team
answered on 03 Mar 2016, 03:53 PM
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!
0
Dharmavaram
Top achievements
Rank 1
answered on 04 Mar 2016, 05:24 AM

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.

0
Konstantin Petkov
Telerik team
answered on 04 Mar 2016, 11:24 AM
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!
Tags
General Discussions
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Dharmavaram
Top achievements
Rank 1
Share this question
or