CUIT在其他计算机上失败 [英] CUIT fails on other machines

查看:100
本文介绍了CUIT在其他计算机上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



14小时无法找到原因???

我已经对Web应用程序进行了一些测试,并且所有测试都运行良好,直到我开始在3台不同的机器上运行测试,但所有测试均失败了,但仍然可以在我的开发机上正常运行

大多数测试都是手动完成的,我只使用了测试生成器来生成UI Map

我使用了本演练来使用多个UI映射并手动执行大多数测试
http://blogs.msdn.com/b/anutthara/archive/2010/02/10/walkthrough-using-multiple-coded-ui-maps-in-test-automation.aspx

我如何生成地图,
-创建新地图
-为此地图运行测试生成器
-对测试中我需要的所有控件做一些断言
-生成方法
-然后从地图中删除生成的方法,因为我不需要它,并在地图中获取所有控件

然后我在演练中使用相同的方式编写测试步骤的代码

在遇到问题并解决了问题后,我在其中一张地图上再次重复了这些步骤,但是由于我手动进行了所有测试,因此需要几天的时间才能更改所有地图中的所有控件名称.

我非常仔细地检查了Designer.cs中的地图,以查找新旧之间的任何变化,但没什么不同,
我确保searchproperties和searchconfiguration不使用诸如窗口标题之类的东西.
我依靠的是Id,Name,TagInstance,它们都是一样的

Hi,

14 hours and couldn't find out WHY ???

I've done some tests for a web application and all of them are running perfectly, till I started running the tests on 3 different machines all of them failed but still working on my dev machine

most of the tests are done manually, I only used the test builder to generate the UI Map

I used this walkthrough to use multiple UI Maps and to do most of the tests manually
http://blogs.msdn.com/b/anutthara/archive/2010/02/10/walkthrough-using-multiple-coded-ui-maps-in-test-automation.aspx

How I'm generating the Map,
- create new map
- run the test builder for this map
- do some assertions on all the controls that i need in the test
- generate the method
- then delete the generated method from the map, because i dont need it, and to get all the controls in the map

Then i'm using the same way in the walkthrough to code the test steps

I repeated these steps again on one of the maps, after i got that problem and that solved the problem, but because I've done all tests manually this will take me days to change all the controls names in all the maps

I checked the Designer.cs for the map very carefully to find any changes between the old and the new ones, but nothing different, 
I made sure that searchproperties and searchconfigurations are not using something like window title and these stuff.
I'm relying on Id, Name, TagInstance which are all the same

推荐答案

有时,当您在另一台计算机上运行测试时,诸如应用程序窗口标题之类的内容将发生变化,这可能会导致测试失败.

Sometimes when you run the test on another machines, something will change such as the title of the application window, which may cause the test to fail.

为了检查非开发机上的Web应用程序是否发生了某些变化,请通过使用类似于失败测试的编码UI测试"构建器记录动作来创建新的编码UI测试,然后运行该代码以进行检查结果.如果 记录的测试可以正常运行,请检查控件的层次结构和搜索属性,并将其与以前的测试进行比较.

In order to check whether something has changed against your web app on non-dev machine, please create a new coded UI test through recording actions using Coded UI test builder which is similar to a failed test and then run it to check the result. If the recorded test can run fine, please check the control’s hierarchy and search properties and compare with your previous test.

如果没有帮助,请告诉我们开发机器和其他机器上的Visual Studio和IE版本.您能否发布一些详细的错误消息?也许我们可以获得一些有用的信息来解决该问题.

If no help, please tell us what version of Visual Studio and IE on the dev machine and the others machines. Could you please post some detailed error messages? Maybe we can get some useful information to resolve the issue.

最好的问候


这篇关于CUIT在其他计算机上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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