Visual Studio Team Suite:如何以编程方式进行网络测试?
大家好,
我是 Visual Studio 2005 Team Suite Web 测试的新手。 这是我想要实现的操作。
在网页上,我有一个由简单数据库表填充的下拉列表。 在我的测试中,我想单击动态填充的下拉列表中的每个项目,并在回发后检查标签在页面上是否可见,这取决于下拉列表中的所选项目。
但是,由于下拉列表是动态生成的,我不能简单地“记录”并手动单击下拉列表的每个项目,因此我必须编写测试代码。
我很确定这很容易实现,所以我想知道是否有一个关于网络测试的免费教程可供我使用。
非常感谢!
Good day,
I'm new to Visual Studio 2005 Team Suite web testing. Here's the action i'm trying to achieve.
On a webpage, I have a dropdownlist that is populated from a simple database table. In my tests, I want to click on each items of the dynamically populated dropdownlist, and after the postback, check if a label is visible on the page, which depends of the selected item in the dropdownlist.
However, since the dropdownlist is dynamically generated, I cannot simply 'record' and manually click on each item of the dropdownlist, so I have to code the test.
I'm pretty sure this is really simple to achieve, so I was wondering if there is a good free tutorial on web testing that I could use.
Thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你提问。
在我看来,您需要将“数据绑定”添加到您的测试中。
请仔细阅读这篇 MSDN 文章。
HTH。
You question.
It seems to me that you need add "Data Binding" to your test.
Please read through this MSDN article.
HTH.
只要它是相当标准的 Web 表单回发,您就可以使用 NUnitAsp:
http://nunitasp.sourceforge.net/< /a>
这里有一篇不错的文章:
服务器端 NUnitASP
NUnitAsp 不再真正活跃或受支持,但是对于简单的表单测试来说它仍然足够好。
As long as it is fairly standard web-form postbacks you can use NUnitAsp:
http://nunitasp.sourceforge.net/
Here is a decent article on it here:
ServerSide NUnitASP
NUnitAsp is no longer really active or supported, but it still works good enough for simple form testing.