开发者

How to unit test the asp.net scenario?

开发者 https://www.devze.com 2023-02-15 05:50 出处:网络
I have a textbox and button in an aspx page. 开发者_如何转开发I enter some text in the textbox and click the button which will result in the text being printed in the browser.

I have a textbox and button in an aspx page. 开发者_如何转开发I enter some text in the textbox and click the button which will result in the text being printed in the browser.

How can i unit test this scenario like the way i unit test class library methods by creating test methods.

Thanks in advance.


selenium and watin are two dotnet frameworks that allow you to do automated testing of asp.net web applications


If I understand you right you are trying to test your UI on a webapplication. As far as I know Visual Studio doesn't provide an appropriate way to do this. But there is this tool which is doing a good job:

http://seleniumhq.org/

The tool makes kind of a makro of the actions you have done on your website and repeats it if you want a thousand times.

Only downside is that it is not integrated in Visual Studio...

Greetings

0

精彩评论

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