Hey guys,
So I have the 2013 Q3 version of WPF controls. What I'm trying to do at this point is to use the Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore.dll so that I can access more properties in my radcontrols for CodedUI tests. I have followed the steps on the following web page: http://www.telerik.com/help/wpf/coded-ui-support.html. This seems to work fine for RadButtons and a couple other simple controls however when I try to select a cell in a RadGridView I get the following error in the CodedUI Builder tool:
"you do not have sufficient privileges to access the information about this control or the control is part of the recorder process"
Of course I googled the issue and found that this problem typically comes from not running your application AND Visual Studio as administrator. So I restarted VS and ran it as Administrator and I also opened up my application as Administrator but it continues to have this error. The odd thing is that I can definitely access RadButtons and other controls, just not a RadGridView. According to the web page above, RadGridView is definitely a supported control so that should work and this article http://blogs.msdn.com/b/visualstudioalm/archive/2011/10/28/coded-ui-test-extension-for-3rd-party-controls-the-basics-explained.aspx also indicates that RadGridView is supported in CodedUI Tests.
I'm running:
Can anyone help?
So I have the 2013 Q3 version of WPF controls. What I'm trying to do at this point is to use the Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore.dll so that I can access more properties in my radcontrols for CodedUI tests. I have followed the steps on the following web page: http://www.telerik.com/help/wpf/coded-ui-support.html. This seems to work fine for RadButtons and a couple other simple controls however when I try to select a cell in a RadGridView I get the following error in the CodedUI Builder tool:
"you do not have sufficient privileges to access the information about this control or the control is part of the recorder process"
Of course I googled the issue and found that this problem typically comes from not running your application AND Visual Studio as administrator. So I restarted VS and ran it as Administrator and I also opened up my application as Administrator but it continues to have this error. The odd thing is that I can definitely access RadButtons and other controls, just not a RadGridView. According to the web page above, RadGridView is definitely a supported control so that should work and this article http://blogs.msdn.com/b/visualstudioalm/archive/2011/10/28/coded-ui-test-extension-for-3rd-party-controls-the-basics-explained.aspx also indicates that RadGridView is supported in CodedUI Tests.
I'm running:
- Windows 8.1
- Visual Studio 2012 Ultimate Update 4
- WPF project in .Net 4.5
- Telerik Rad Controls for WPF Q3 2013 (4.5)
Can anyone help?
8 Answers, 1 is accepted
0
hobeau
Top achievements
Rank 1
answered on 13 Dec 2013, 09:39 PM
...A couple more resources I found was this link http://www.telerik.com/products/wpf/whats-new/release-history/q2-2013-version-2013-2-0611.aspx that again, specifically states that the RadGridView has level 2 & 3 coded UI support and this link http://www.telerik.com/products/wpf/whats-new/release-history/q3-2013-version-2013-3-1016-2120428450.aspx. That has the following line:
"GridViewCell gets recorded as UITestControl instead of WpfGridViewCell (CodedUI)"
So it looks like it should be supported so I must be doing something wrong. Can anyone help? Thanks!
"GridViewCell gets recorded as UITestControl instead of WpfGridViewCell (CodedUI)"
So it looks like it should be supported so I must be doing something wrong. Can anyone help? Thanks!
0
Hello Richard,
Indeed, RadGridView support level 2 and 3. I get such error only when Visual Studio 2012 instance is not ran as administrator - as you have already said. Can you try finding the grid with the coded UI test builder without having the ExtentionsCore dll and record a basic coded UI test? Do you get the same issue there ?
Regards,
Maya
Telerik
Indeed, RadGridView support level 2 and 3. I get such error only when Visual Studio 2012 instance is not ran as administrator - as you have already said. Can you try finding the grid with the coded UI test builder without having the ExtentionsCore dll and record a basic coded UI test? Do you get the same issue there ?
Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
hobeau
Top achievements
Rank 1
answered on 18 Dec 2013, 10:15 PM
Thanks for the reply!
Yes I've tried this and have no problems finding the RadGrid and individual cells etc without that DLL which is what has been so confusing. I've ensured that I'm definitely running VS as administrator (I checked with ProcessExplorer) as well as the application.
Yes I've tried this and have no problems finding the RadGrid and individual cells etc without that DLL which is what has been so confusing. I've ensured that I'm definitely running VS as administrator (I checked with ProcessExplorer) as well as the application.
0
Hello,
I have tested a similar scenario on our side, using Windows 8.1 system with Visual Studio 2012 Premium. Both the CodedUI test builder and the tested WPF project are ran with administrator's permissions. Here is a video of the debugging session. May I ask you to send us a sample project that is failing on your side, so that we would be able to test it.
Regards,
Ivan Ivanov
Telerik
I have tested a similar scenario on our side, using Windows 8.1 system with Visual Studio 2012 Premium. Both the CodedUI test builder and the tested WPF project are ran with administrator's permissions. Here is a video of the debugging session. May I ask you to send us a sample project that is failing on your side, so that we would be able to test it.
Regards,
Ivan Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
hobeau
Top achievements
Rank 1
answered on 02 Jan 2014, 06:24 PM
Hi,
Thanks for the response! I've been able to reliably reproduce the problem with a simple telerik WPF application. The problem seems to have something to do with .net 4.5. The coded UI works perfectly when I am building the application in .net 4.0.3 and have included the telerik DLLs version 2013.3.1016.40. I can then select any cell in a telerik RadGridView and it works just fine. But, if I switch the target over to .net 4.5 and include the DLLs 2013.3.1016.45 and then rebuild, I get the error that says I do not have sufficient privileges. Then when I switch the target back to .net 4.0.3 it works again.
Thanks for the response! I've been able to reliably reproduce the problem with a simple telerik WPF application. The problem seems to have something to do with .net 4.5. The coded UI works perfectly when I am building the application in .net 4.0.3 and have included the telerik DLLs version 2013.3.1016.40. I can then select any cell in a telerik RadGridView and it works just fine. But, if I switch the target over to .net 4.5 and include the DLLs 2013.3.1016.45 and then rebuild, I get the error that says I do not have sufficient privileges. Then when I switch the target back to .net 4.0.3 it works again.
0
Hi Richard,
We tested the case on a machine with .Net 4.5 with telerik binaries targeting the same version (including ExtensionsCore assembly) and if both instances of Visual Studio are ran as administrator, there are no exceptions and the tests are recorded and playbacked as expected (as illustrated in the video my colleague Ivan provided before).
Regards,
Maya
Telerik
We tested the case on a machine with .Net 4.5 with telerik binaries targeting the same version (including ExtensionsCore assembly) and if both instances of Visual Studio are ran as administrator, there are no exceptions and the tests are recorded and playbacked as expected (as illustrated in the video my colleague Ivan provided before).
Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Sakthivel
Top achievements
Rank 1
answered on 25 Jun 2015, 06:37 AM
We tried to spy the Telerik RadGridView control in Windows Store Application 8.1. It was not detecting RadGridView Object. So Not able to access RadGridView Control and perform Coded UI Automation.
0
Hello Sakthivel,
Can you please confirm whether you are using RadGridView for WPF? Mentioning Windows Store Applications, suggests that you might be using the Windows universal DataGrid?
Regards,
Ivan Ivanov
Telerik
Can you please confirm whether you are using RadGridView for WPF? Mentioning Windows Store Applications, suggests that you might be using the Windows universal DataGrid?
Regards,
Ivan Ivanov
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items