Does someone know a good way to automate the gui testing based on an Asp.Net frontend? (i开发者_如何学编程nstead of always run the pages and test the inputs and outputs of a control by hand) Are there any references or framework to support these tests?
Thanks
Watir is one solution.
Watir, pronounced water, is an open-source (BSD) library for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible.
Selenium is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser.
Here are a couple of blogs that help you get started.
One by peterkrantz and one by stevetrefethen
This post details setting up Watir for web automation, and SpecFlow to write your tests.
Specflow uses an english style language to describe those tests. Its a method that I have been looking at recently. I've found it very useful, the number of actions you can perform on the web are relatively small, and lend themselves well to this style of language (go here, type this, click that, check something etc).
精彩评论