This question is locked. New answers and comments are not allowed.
Hi,
Our application uses the Rad Gridview, and I need select all the rows of that grid through automation. I am trying to do that by retrieving all those row elements of that grid of Control Type - Data Item.
Thanks!
Divya
Our application uses the Rad Gridview, and I need select all the rows of that grid through automation. I am trying to do that by retrieving all those row elements of that grid of Control Type - Data Item.
- When running the automation code, if the number of rows in the grid is greater than 150, then the application just freezes, as it is unable to retrieve all the row elements.
- Forget about the automation code- even if I try the same with UISpy, it is unable to give me all the row elements.
- I tried using UISpy on the demo grid from the Telerik site (where the grid has a million rows). Even there it is unable to retrieve the row elements.
Thanks!
Divya
5 Answers, 1 is accepted
0
Sireesha
Top achievements
Rank 1
answered on 11 Aug 2011, 01:33 PM
Hi,
I am facing a similar issue.
Problem : Given a value for one of the columns, select the corresponding radio button residing in the same row but another column.
The grid is rendered as a Telerik grid and the hierarchy of the radio button goes like: Radio button -> Cell ->DataCellsPresenter -> DataItem -> ItemScrollViewer -> Table.
We are using Visual Studio 2010 Coded UI Test for automation.
-Sireesha
I am facing a similar issue.
Problem : Given a value for one of the columns, select the corresponding radio button residing in the same row but another column.
The grid is rendered as a Telerik grid and the hierarchy of the radio button goes like: Radio button -> Cell ->DataCellsPresenter -> DataItem -> ItemScrollViewer -> Table.
We are using Visual Studio 2010 Coded UI Test for automation.
-Sireesha
0
Hello Sireesha,
Could you share more details about the scenario you want to automate? Also, you can check the current UI Automation support of the RadControls described in this help topic.
Kind regards,
Yordanka
the Telerik team
Could you share more details about the scenario you want to automate? Also, you can check the current UI Automation support of the RadControls described in this help topic.
Kind regards,
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Sireesha
Top achievements
Rank 1
answered on 12 Aug 2011, 11:47 AM
Hi
In one of our screens, we have a table (a RadGridView control). There are five columns in this table; the fifth contains a radio button. Now depending on the value of the first column (all unique entries in this column), the radio button should be clicked.
So user gives an input value for the first column. The automation script needs to iterate through the rows of the table, find the row for which the first column's value is the same as user's input and click the radio button in that row's fifth column.
I have attached a screen shot of the table and it's hierarchy. I have alo attached the test automation code and the error we get.
i checked the below thread and all the controls we are automating have an OK against them for Silverlight 4.
One thing to note. The developers have added a lot of styling for the pages to be rendered.
Please let me know if any further information is required.
-Sireesha
In one of our screens, we have a table (a RadGridView control). There are five columns in this table; the fifth contains a radio button. Now depending on the value of the first column (all unique entries in this column), the radio button should be clicked.
So user gives an input value for the first column. The automation script needs to iterate through the rows of the table, find the row for which the first column's value is the same as user's input and click the radio button in that row's fifth column.
I have attached a screen shot of the table and it's hierarchy. I have alo attached the test automation code and the error we get.
i checked the below thread and all the controls we are automating have an OK against them for Silverlight 4.
One thing to note. The developers have added a lot of styling for the pages to be rendered.
Please let me know if any further information is required.
-Sireesha
0
Hi Sireesha,
I have tested this issue with 2010.3.1314 and 2011.2.712. The attached picture with the exception implies that there was a problem while retrieving an automation peer from GridViewVirtualizingPanel, but unfortunately I was unable to reproduce it. I am attaching my test project. Would you please provide us a simple example project that demonstrates the issue, in order to help us pinpoint it and provide an appropriate solution?
Regards,
Ivan Ivanov
the Telerik team
I have tested this issue with 2010.3.1314 and 2011.2.712. The attached picture with the exception implies that there was a problem while retrieving an automation peer from GridViewVirtualizingPanel, but unfortunately I was unable to reproduce it. I am attaching my test project. Would you please provide us a simple example project that demonstrates the issue, in order to help us pinpoint it and provide an appropriate solution?
Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Sireesha
Top achievements
Rank 1
answered on 19 Aug 2011, 04:07 PM
Hi
After trying a few things, this is what worked for us.
we were able to click on the required check box.
The issue seems to be that the rad grids get captured as SilverlightTable when the screen is recorded using Visual Studio Coded UI Test and one has to cast the rows/columns/cells accordingly.
Anyway, thanks much for your help.
After trying a few things, this is what worked for us.
SilverlightText
uiText = new SilverlightText(_table);
UITestControlCollection textInTable = uiText.FindMatchingControls();
SilverlightCheckBox uiCheck = new SilverlightCheckBox(_table);
UITestControlCollection checkInTable = uiCheck.FindMatchingControls();
Now, by iterating through the UITestControlCollection as below
(
SilverlightText text = textInTable[j] as SilverlightText;
)
we were able to click on the required check box.
The issue seems to be that the rad grids get captured as SilverlightTable when the screen is recorded using Visual Studio Coded UI Test and one has to cast the rows/columns/cells accordingly.
Anyway, thanks much for your help.