编码的用户界面:如何自动执行桌面文件夹/文件? [英]   Coded UI: How to automate Desktop folders/files?

查看:99
本文介绍了编码的用户界面:如何自动执行桌面文件夹/文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我无法通过十字线工具自动化,无法在桌面文件夹,文件等的编码UI中记录和播放选项.我在两种情况下尝试过.

(1)通用Windows(编码UI测试项目)桌面无法识别为十字准线工具的用户界面(2)测试(编码UI测试项目,即记录和回放选项)记录和回放能够记录动作,但是当我运行生成代码后进行测试,测试用例 失败.另外,我尝试通过十字准线工具添加断言并运行测试,这里的测试用例也失败了.

谁能为此提供解决方案?

Hi,

I am unable to automate through cross hair tool,record and play back options in coded UI for Desktop folders,files etc. I tried in two scenarios.

(1)Universal Windows(Coded UI Test Project) Desktop is not recognizing as a UI for crosshair tool.(2)Test(Coded UI Test Project i.e record and playback option)Record and Playback is able to record actions but when I run the test after generating code,test case is failing.Alternate I tried adding assertions through crosshair tool and ran the test,test case is failed here also.

Can anyone provide the solution for this?

推荐答案

您好,vennu,

Hi vennu,

如果要在桌面上记录和回放操作,则必须使用 测试(编码的UI测试项目),因为通用Windows(编码的UI测试项目)不支持记录.

If we want to record and play back actions on Desktop, we have to use Test (Coded UI Test Project), as Universal Windows (Coded UI Test Project) does not support record.

>>但是当我在生成代码后运行测试时,测试用例失败了.

>> but when I run the test after generating code, test case is failing.

您记录什么样的动作?测试失败的消息是什么?  如果可以,请您告诉我们您的操作详细信息吗?

What kind of actions do you record? And what’s the test failed message?  Would you please share us the details of your operations if it’s possible?

在我的机器上,我通过使用编码的UI测试记录了一系列操作,如下所示:

In my machine, I record a series of actions by using Coded UI test as following steps:

开始录制-> 在桌面上打开文件夹-> 在内部打开文件-> 关闭文件-> 关闭文件夹->生成代码 ->添加并生成-> 关闭 UIMap编码的UI测试构建器-> 运行测试

Start recording -> open a folder on the Desktop-> open the file inside -> close file -> close the folder -> Generate code -> Add and generate -> close the UIMap-Coded UI test builder -> run the test

完成上述操作后,编码的UI测试可以成功播放记录的动作.  

After the operations above, the coded UI test could successfully playback the actions recorded.  

最诚挚的问候

Fletcher


这篇关于编码的用户界面:如何自动执行桌面文件夹/文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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