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!
-
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.
YordanGeorgiev : It seems not be supported and developed anymore : http://nunitasp.sourceforge.net/ -
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.
-
Interesting. I will also try that. Thanks for all the suggestions
0 comments:
Post a Comment