1

不幸的是,我无法发布任何源代码,但我已经在多个网站上看到了这种行为。

我有一个包含 3 个下拉菜单的页面。第一个下拉将填充第二个,第二个填充第三个。

每个下拉菜单都会启动一个回发。在定期浏览该网站时,它运行得非常快,没有任何障碍。但是,在 Coded UI 测试中,每次选择后加载页面需要很长时间。我猜自从页面回发以来,测试在继续之前必须做一些事情。

有没有人遇到过类似的问题?

4

1 回答 1

0

I think this behavior occurs because CodedUI Tests are collecting many data from the pc they are executed.

I suggest you to disable all Data and Diagnostics, by editing the TestSettings file.

Then, if your tests are running faster try to find the balance between the Data you want to collect and the test's optimization.

于 2013-04-06T11:14:39.070 回答