开发者

Setting up a web testing environment

开发者 https://www.devze.com 2023-01-14 03:22 出处:网络
We have a need to set up a testing environment to test our pages output.I\'m reluctant to use Selenium, because we just don\'t have the hardware to do it.I\'m also more concerned with whether there is

We have a need to set up a testing environment to test our pages output. I'm reluctant to use Selenium, because we just don't have the hardware to do it. I'm also more concerned with whether there is content on the page, than whether the pa开发者_运维技巧ge "looks" right.

From that, I'm looking to set up something command-line, that we can pass in a URL, a list of requirements, and have it respond back true/false, etc.

Does anyone have suggestions on how I might be able to go about this?

Thanks!


If you want to write something command line, you have everything you need in the System.Net namespace. You can create HttpRequests with Get/Post and then inspect the response for what you are expecting to see.

One technique I've heard Jimmy Bogard talk about is adding metadata to tables/Divs that help in verification of the data you expect.

There's more info here:

http://www.lostechies.com/blogs/jimmy_bogard/archive/2009/10/22/c4mvc-ui-testing-screencast-posted.aspx

0

精彩评论

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

关注公众号