在CodedUI测试中更改URL [英] Changing URL in a CodedUI Test
问题描述
我已经在Visual Studio 2012中创建了一个codedui测试。问题是,随着项目的每一步都更新到新版本,我需要能够偶尔更改在浏览器中打开的URL。除了事实,URL似乎有很多实例,当我进行更改时,似乎在进行重建后便会自行重置。
I have created a codedui test in Visual Studio 2012. The problem is that I need to be able to change the URL occasionally that opens in the browser as each step of the project is updated to a new version. Apart from the fact there seems to be a number of instances where the URL appears, when I do change it, it seems to reset itself after doing a rebuild.
是否存在确保我设置的URL不会更改的更简单方法?我是测试套件的新手,所以我可能错过了显而易见的东西。
Is there an easier way to ensure that the URL I set does not change? I'm fairly new to the testing suite so I may have missed something glaringly obvious.
我一直在寻找一些有关VS2012测试的不错的教程,但是如果有人可以推荐一个的话
I have looked for some decent tutorials regarding the VS2012 Testing but if anybody could recommend one that I may have missed that would also be very helpful.
推荐答案
您可以在Visual Studio Feature Pack中使用编码的UI测试编辑器。 2无需任何编码即可直观地更新参数。
You can use the Coded UI Test Editor in Visual Studio Feature Pack 2 to visually update the parameter without any coding.
有关获取扩展名的教程和信息,请参见以下博客文章: http://windotnet.blogspot.com/#!/2011/07/coded-ui-test-editor-is-visual-studio.html rel = nofollow> http://windotnet.blogspot.com/#!/2011/07/coded-ui-test-editor-is -visual-studio.html
See the following blog post for a tutorial and info on obtaining the extension: http://windotnet.blogspot.com/#!/2011/07/coded-ui-test-editor-is-visual-studio.html
-Paul
这篇关于在CodedUI测试中更改URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!