我可以简单地将UI动作“粘贴"到现有的CodedUItest中吗? [英] Can I simply 'paste' a UI action into an existing CodedUItest?

查看:71
本文介绍了我可以简单地将UI动作“粘贴"到现有的CodedUItest中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多CodedUI捕获的测试用例,用于测试网页.有些测试是在不同的URL上进行的,针对该URL的一个特定的UI操作失败.

I have a number of test-cases captured by CodedUI for testing a webpage. Some of the tests are done on a different URL, for which one specific UI action fails.

我已经捕获了一个可解决此问题的UI操作-现在,我想简单地删除某些测试用例中现有的失败UI操作,然后将其替换为可行的操作.

I have captured a single UI action which fixes this - and now I want to simply remove the existing failing UI action for some test-cases, and replace it with this one that works.

我知道我可以删除特定的UI动作,但是看不到在其位置插入或粘贴另一个选项的选项.

I know I can delete a specific UI action, but I can't see an option to insert or paste another one in its place.

添加时间延迟等很简单;我想要一个类似的选项来添加UI动作.有可能吗?

Adding time delay etc is simple; I'd like a similar option to add a UI action. Is it possible?

Visual Studio 2013 Ultimate,C#中的CodedUi.

Visual Studio 2013 Ultimate, CodedUi in C#.

推荐答案

MonsoonMally,

Hi MonsoonMally,

感谢您在MSDN论坛中发帖.

Thank you for posting in MSDN forum.

>>我已经捕获了一个可解决此问题的UI操作-现在,我想简单地删除某些测试用例中现有的失败UI操作,然后将其替换为可行的测试用例.我知道我可以删除特定的UI操作,但是看不到 选择在其位置插入或粘贴另一个.

>>I have captured a single UI action which fixes this - and now I want to simply remove the existing failing UI action for some test-cases, and replace it with this one that works. I know I can delete a specific UI action, but I can't see an option to insert or paste another one in its place.

根据您的描述,据我所知,默认情况下,默认情况下,没有粘贴"选项可在现有的已编码UI测试的"UI控制图"窗口中添加UI操作.

According to your description, as far as I know that it is default that there have no the paste option to add a UI action in UI Control Map window for an existing the coded UI test.

但是,我知道,如果您想为现有的已编码UI测试添加UI控件动作,则可以尝试使用已编码的UI测试生成器为现有的已编码UI测试添加UI控件动作.

However, I know that if you want to add UI control action for an existing the coded UI test, you could try to use the coded UI test builder to add UI control action for an existing the coded UI test.

参考:

https://msdn.microsoft.com/en-us/libRary/dd286671(v = vs.100).aspx

此外,您可以尝试通过处理代码来为现有的已编码UI测试添加UI控件动作.

In addition, you could try to add UI control action for an existing the coded UI test by handing code.

http://blogs .msdn.com/b/mathew_aniyan/archive/2009/02/12/hand-coding-a-coded-ui-test.aspx

最好的问候,


这篇关于我可以简单地将UI动作“粘贴"到现有的CodedUItest中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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