views:

155

answers:

3

How to generate click on link in C# for automation testing?

+1  A: 

I'm not quite sure what you want to achieve. If you want to 'unit test' your GUI, e.g., a user clicks on a link and he should navigate to page X, then I think NUnitASP comes close to what you want. You can basically say that you browse to page X, and can then test various things, like a textbox that should be present, what should happen when the user tries to save the form on that page, etcetera. See if this is what you need.

Razzie
+2  A: 

if razzie assumption is true and you want to test your gui , if you are developing windows form app , use TestComplete , its perfect tools for such a use and generally test automation.

Adinochestva
We've been pretty happy with AutomatedQA's products.
plinth
Yes , they are perfect tools
Adinochestva
A: 

Ranorex might be interesting for you. You can capture/replay your UI tests, edit your actions and generate C#, VB.NET and IronPython.

Full support for Winforms, WPF, Silverlight and 3rd party controls.

http://www.ranorex.com

gherget