Cedric Aube
Cedric Aube

Reputation: 345

visual studio team suite : How to web test programmatically?

Good day,

I'm new to Visual Studio 2005 Team Suite web testing. Here's the action i'm trying to achieve.

On a webpage, I have a dropdownlist that is populated from a simple database table. In my tests, I want to click on each items of the dynamically populated dropdownlist, and after the postback, check if a label is visible on the page, which depends of the selected item in the dropdownlist.

However, since the dropdownlist is dynamically generated, I cannot simply 'record' and manually click on each item of the dropdownlist, so I have to code the test.

I'm pretty sure this is really simple to achieve, so I was wondering if there is a good free tutorial on web testing that I could use.

Thank you very much!

Upvotes: 2

Views: 963

Answers (2)

J.W.
J.W.

Reputation: 18181

You question.

However, since the dropdownlist is dynamically generated, I cannot simply 'record' and manually click on each item of the dropdownlist, so I have to code the test.

It seems to me that you need add "Data Binding" to your test.

Please read through this MSDN article.

HTH.

Upvotes: 2

josefresno
josefresno

Reputation: 440

As long as it is fairly standard web-form postbacks you can use NUnitAsp:

http://nunitasp.sourceforge.net/

Here is a decent article on it here: ServerSide NUnitASP

NUnitAsp is no longer really active or supported, but it still works good enough for simple form testing.

Upvotes: 1

Related Questions