开发者

how to test Asp.Net frontend?

开发者 https://www.devze.com 2022-12-27 05:06 出处:网络
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)

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消