访问被拒绝。其他详细信息:未指定控件详细信息。在CodedUI上尝试录制或Ctrl + Shift + I时 [英] Access is denied. Additional Details: The control details were not specified. When try to record or Ctrl+Shift+I on CodedUI

查看:94
本文介绍了访问被拒绝。其他详细信息:未指定控件详细信息。在CodedUI上尝试录制或Ctrl + Shift + I时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我在CodedUI测试项目上使用VS2015 Windows 7我在尝试找到Window Form应用程序的主窗口时遇到问题并显示错误消息:访问
被拒绝。其他详细信息:未指定控件详细信息。



任何人都遇到过相同的情况。请帮助我。

解决方案

嗨William Cahyadi,


您使用的是哪个版本的Visual Studio 2015?


当您使用编码的UI测试构建器来识别Windows窗体应用程序的窗口时遇到错误,对吧?


你能否分享一下这个错误的截图,它可以帮助我更好地理解你的问题。您可以上传到
OneDrive 并在此处分享链接,


什么是
目标框架您使用编码的UI测试项目吗?请使用".NET Framework 4.5.2"并再次测试,检查结果。


另外,请在为其他应用程序创建简单的编码UI测试时检查它是否工作正常。


如果所有应用程序都有此问题,我怀疑它与您的Visual Studio有关,请转到VS 2015安装位置,通常位于"C:\Program
Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \IDE"并运行以下命令:


Devenv.exe / SafeMode


Devenv.exe / ResetSettings


请关闭机器中的其他第三方工具,再次检查。如果仍然没有帮助,我建议您修复Visual Studio 2015,检查它。


如果只是特定的应用程序有此问题,请清理并重建您的应用程序,并确保在为
创建编码的UI测试之前此应用程序运行良好。然后创建一个新的编码它的UI测试项目,再次检查。如果仍然没有帮助,请分享一个简单的样本,我会尝试在我这边测试。


问候,


Judyzh


Hi all,

I'm using VS2015 Windows 7 on CodedUI Test project I got issue when try to locate main window of Window Form application and it show error message : Access is denied. Additional Details: The control details were not specified.

Anyone ever experience the same situation. Please help me.

解决方案

Hi William Cahyadi,

Which version of Visual Studio 2015 do you use?

You encountered the error when you use coded UI test builder to identify the window of the Windows Form Application, right?

Could you please share the screenshot of this error, it could help me to understanding your issue better. You could upload to OneDrive and share the link here,

What’s the Target framework do you use of coded UI test project? Please use ".NET Framework 4.5.2" and test again, check the result.

In addition, please check whether it worked well when you create a simple coded UI test for other application.

If all application has this issue, I doubt that it will be related to your Visual Studio, please go to the VS 2015 installation location, usually locates "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE" and run the following commands:

Devenv.exe /SafeMode

Devenv.exe /ResetSettings

Please close other third party tools in the machine, check again. If still no help, I suggest you repair you Visual Studio 2015, check it.

If just the specific application has this issue, clean and rebuild your app, and make sure that this app worked well before you create the coded UI test for it. And then create a new coded UI test project for it, check it again. If still no help, please share me a simple sample, I will try to test it in my side.

Regards,

Judyzh


这篇关于访问被拒绝。其他详细信息:未指定控件详细信息。在CodedUI上尝试录制或Ctrl + Shift + I时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆