WatiN 的最佳测试自动化方法是什么
我研究了数据驱动和关键字驱动的方法。 读完之后,似乎数据驱动比关键字更好。 出于文档目的,关键字听起来很棒。 但它有很多层次。 我需要实际实施过自动化框架的人的指导。 就我个人而言,我希望将所有数据存储在数据库或excel中,并将系统分解为模块化部分(主要公司产品通用的功能)。
目前使用,WatiN,Nunit,CC.net
任何建议请
I Studied both data-driven and keyword driven approaches. After reading, It seems data driven is better than keyword. For documentation purpose keyword sounds great. But it has many levels. I need guidance from people who actually have implemented Automation frameworks. Personally, I want to store all data in database or excel and break up the system into modular parts (functions that are common to major company products).
Currently using, WatiN, Nunit, CC.net
Any advise pls
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我强烈建议您查看 Michael Hunter 又名 braidy 测试仪为在 Microsoft 测试表达式而构建的堆栈,他有很多关于它的文章 http://www.thebraidytester.com/stack.html
本质上他分为逻辑模型、物理模型和数据模型,这三个模型是松散耦合的。 现在我所有的堆栈都是这样写的。 所以测试用例最终看起来像这样:
Logical.Google.Search.Websearch("watin");
Verification.VerifySearchResult("watin");
然后,所有测试数据都存储在由文本字符串(在本例中为 watin)索引的 SQL Express 数据库中。
您将需要构建完整的域模型和数据访问层,我个人使用 SubSonic 自动生成它。
I would hightly recommend that you look into the stack that Michael Hunter aka the braidy tester built for testing expression at Microsoft he has a lot of articles about it http://www.thebraidytester.com/stack.html
Esentially he splits out into a logical model, a physical model and a data model and all three are loosley copupled. All my stacks are written this way now. So the test cases end up looking like this:
Logical.Google.Search.Websearch("watin");
Verification.VerifySearchResult("watin");
All the test data is then stored in a sql express database that indexed by the text string, in this case watin.
You will need to build a full domain model and data access layer, I personally auto generate that using SubSonic.