我需要一个Visual Studio工具栏按钮来启动编码的UI测试 [英] I Need A Visual Studio Toolbar Button To Start Coded UI Testing

查看:76
本文介绍了我需要一个Visual Studio工具栏按钮来启动编码的UI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Visual Studio工具栏中添加一个按钮,该按钮将在Visual Studio代码窗口中运行Coded UI测试,另一个按钮将开始调试我在那里的测试("Run" ;和"调试"选项)。在VS2010,2012年,2013年和2015年,我已经多年来一直在寻找这个好几年。(我的组织说我可以安装它,我会在2017年看看。)

I want to add a button to my Visual Studio toolbar that will run Coded UI test that I have in the Visual Studio code window, and another button that will start debugging the test I have there ("Run" and "Debug" options). I've been looking for this off and on for years in VS2010, 2012, 2013, and 2015. (I'll look in 2017 as soon as my organization says I can install it.)

有谁知道在"添加/删除按钮=>"中找到这些命令的位置Customize =>工具栏=>添加命令"对话?或者也许在其他地方以及如何在V.S中实现它们。工具栏?

Does anyone know where to find these commands in the "Add/Remove Buttons => Customize => Toolbar => Add Command" dialog? Or maybe somewhere else along with how to implement them in a V.S. toolbar?

自VS2005以来,我一直在自定义Visual Studio工具栏(实际上是自VB6以来)。我喜欢让按钮快速完成任务(例如,只需单击一下)。是的,当然,我知道如何右键单击并选择Debug或Run来开始测试。 Debug和
Run命令位于该快捷菜单上的 某处 (在这种情况下名称很差,因为它包含至少32个项目,有时甚至超过40),但它们会根据菜单中的其他内容移动。我希望
只有一个地方可以找到命令。您知道:Point-n-click。

I have been customizing Visual Studio toolbars since VS2005 (actually since VB6). I like having buttons that do things quickly (e.g. in a single click). And yes, of course, I know how to right-click and select Debug or Run to start a test. The Debug and Run commands are positioned somewhere on that shortcut menu (a poor name in this case, since it contains a minimum of 32 items and sometimes more than 40), but they move around depending on what else is in the menu. I would prefer to have just one place to find the command. You know: Point-n-click.

对于不熟悉编码用户界面测试(编码用户界面)的人,您不能只设置启动项目。编码的UI项目生成DLL而不是exe,因此F5和绿色">"都不生成。将在Coded UI项目中工作。

For anyone who isn't familiar with Coded User Interface Testing (Coded UI), you can't just set a startup project. A Coded UI project generates a DLL, not an exe, so neither F5 nor the green ">" will work in a Coded UI project.

有没有人对此有任何见解?

Does anyone have any insight into this?

推荐答案

亲爱的朋友,

感谢您的提问。

请点击VS中的此标签,您会看到添加或删除按钮,点击它,找到
自定义 ..:

Please click this tab in VS, you will see add or remove buttons, click it and find Customize..:

之后:

然后,找到寡妇右侧的添加命令选项,点击它后,您将看到:

Then, find the Add Command option on the right of the widow, after clicking it you will see below:

请选择测试,然后选择全部或其他所需的命令。

please choose Test, and select Run all or other command you want.

您将请参阅VS中的图标 

you will see the Icon in your VS:

如果有效,请告诉我。

期待您的回复。

 

最好的问候,

Fletcher


这篇关于我需要一个Visual Studio工具栏按钮来启动编码的UI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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