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

[Solved] Grouping UI Automation

1 Answer 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nitin Chaudhari
Top achievements
Rank 1
Nitin Chaudhari asked on 20 Aug 2009, 12:31 PM
Hi,

I have a radgrid which has grouping enabled on a column using the following code :
                    <RadGrid:RadGridView.GroupDescriptors> 
                        <data:GroupDescriptor Member="GroupName" > 
                            <data:GroupDescriptor.AggregateFunctions> 
                                <data:CountFunction Caption="Total :" ResultFormatString="{}{0:d2}" /> 
                            </data:GroupDescriptor.AggregateFunctions> 
                        </data:GroupDescriptor> 
                    </RadGrid:RadGridView.GroupDescriptors> 

All other columns are bound as follows :
<RadGrid:GridViewColumn.CellStyle> 
                                <Style TargetType="RadGrid:GridView.GridViewCell"
                                    <Setter Property="Template"
                                        <Setter.Value> 
                                            <ControlTemplate TargetType="RadGrid:GridView.GridViewCell"
                                                <Border BorderBrush="#FFB3B3B3" BorderThickness="0,0,0,0"
                                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center"
                                                        <RadioButton GroupName="{Binding Field}" VerticalAlignment="Center" IsChecked="{Binding Path=UploadedValueSelected,Mode=TwoWay}" /> 
                                                                                                               <TextBox Text="{Binding UploadedValue}" Width="125" /> 
                                                    </StackPanel> 
                                                </Border> 
                                            </ControlTemplate> 
                                        </Setter.Value> 
                                    </Setter> 
                                </Style> 
                            </RadGrid:GridViewColumn.CellStyle> 

I am using WHITE to automate the UI, and I am not able to get gridcell when rows are grouped. Is there anyway I can read groups from the grid and then read rows in that group?

Thanks,
Nitin



1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 24 Aug 2009, 08:20 AM
Hello Nitin Chaudhari,

Currently we have implemented a bunch of automation peers for the basic grid elements- RadGridView, GridViewRows, GridViewCells,GridViewNewRow, but unfortunately we still haven't implemented automation peers for GridViewGroupPanel nor for GridViewGroupRow and its children.The UIAutomation is still not complete, but we are working on improving the accessibility of RadGridView control.

I would like to mention here about the latest addition to the Telerik portfolio - the WebUI Test Studio test automation solution. Powered by ArtOfTest it gives you test recorder built in Visual Studio. I'd like to point out the following benefits you might be interested in:

•  The productivity (test creation) is incomparable with the coded tests the test automation frameworks give.
•  The priority support provided by the Telerik staff is always taken as a top priority task.
•  The RadControls Translators are built for the special purpose to provide the test automation recording of our RadControls out-of-the-box. This means you don't need to worry about the complexity of our components -- accessing the RadGridView data is such a task you will get for free.

We have released a public Beta for test automation of Silverlight applications.
Although the WebUI Test Studio for Silverlight still requires a few months of work, you can already try our WebAii Testing Framework. The blog post here will give you a clear picture of what you can expect if/when start using the framework. It covers the RadControls for Silverlight including a set of WebAii RadControls. You will also find some helpful details from the announcement on the blogs as well as from this post describing the relation between both test automation tools in details.

You also may find this blog post interesting , as well as the rest of the blog posts here. You can download the latest version for evaluation. There you will find several sample grouping tests for RadGridView  that you can use as a reference.

I hope this information interests you. Having any questions on the subject you can ask here, in the test studio forums or submit support tickets taken as higher priority.

Regards,
Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Nitin Chaudhari
Top achievements
Rank 1
Answers by
Missing User
Share this question
or