网页的GUI测试? [英] GUI testing for web pages?

查看:83
本文介绍了网页的GUI测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想知道是否有好的GUI测试教程,例如尝试测试用户在每个页面上键入的内容或用户与之交互并查看结果,这是测试GUI的新内容,并且就像要完成的稳定教程一样,这样我就可以开始测试阶段.

问候
Matt.

Hi guys, im wondering if there are any good GUI testing tutorials out there, as im trying to test what the user types in to each page or what the user interatcs with and see the results, im new to testing GUI and would like a steady tutorial to run through so i can start my testing phase.

Regards
Matt.

推荐答案

我绝对推荐Selenium,您可以从.NET使用它,支持不同的浏览器,可以在自动构建和CI流程中使用(我们从CCNet).代码是稳定的.它有一些怪癖,但毕竟它们都有.

无论选择哪种工具,我都建议围绕它创建自己的测试Facade类.外墙的设计应适合您的具体测试需求,而又不会过多暴露测试工具的API细节.这将使测试代码更易于编写和维护.

如果在应用程序中使用ASP.NET视图状态,则使用纯HTTP测试工具可能会遇到问题.这是浏览器控制器(例如Selenium)要好得多的地方.

请参考以下主题;
与NUnit,Ruby和Watir集成的ASP.NET Web应用程序测试 [ ^ ]
用于ASP.NET Web Apps的轻量级UI测试自动化 [ NUnitAsp教程 [ ^ ]
使用Selenium自动化Web应用程序UI测试 [ ^ ]
I definitively recommend Selenium, you can use it from .NET, supports different browsers, works in automatic builds and CI processes (we use it from CCNet). The code is stable. It has a few quirks, but after all they all do.

Whichever tool you choose, I recommend making your own test facade class(es) around it. The facade should be designed to suite your concrete testing needs, without exposing too much the details of the testing tool''s API. This will make the test code easier to write and maintain.

If you use ASP.NET view state in your app, you could have problems using a pure HTTP test tool. This is where browser-controllers (like Selenium) are much better.

Please refer following threads;
Integrated ASP.NET Web Application Testing with NUnit, Ruby, and Watir[^]
Lightweight UI Test Automation for ASP.NET Web Apps[^]
The NUnitAsp Tutorial[^]
Automate web application UI testing with Selenium[^]


这篇关于网页的GUI测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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