开发者

Tools or techniques for autofilling Web forms for testing purposes?

At work, we create a lot of multi-page Web forms, that are sometimes 7-10 pages long. (Think online school applications or something similar.) To test the forms, I need to fill out each form as if I were a user--so for example, I'll enter "firstname" in the field labeled "First Name". This way, I can verify that the form fields are matching up to the correct fields in our database.

I'm looking for suggestions for ways to automate this process as much as possible. I'm sure it can't be completely automated, but anything that would help reduce the time it takes to enter in contact and address information over and over again. At least one good approach (I think) would be to have a script run that goes through each form field, reads the label, and then enters appropriate text in the corresponding form field. So when it finds a text box labeled "Street Address", it enters the text "streetaddress" in that field.

Obviously some fields will have some validation on them, so my script/program should be able to either skip those and notify my that they need to be entered manually, or j开发者_C百科ust enter information that is valid for that field.

Any suggestions would be greatly appreciated. I know that there are plenty of Web testing tools out there, like Selenium, but I don't know which, if any, can do this kind of testing.


Take a look at selenium or watir. They can automate your testing by filling out form fields against thier internal database among other things.

Quick test is another paid solution for this sort of thing.


Check out the imacros plugin for firefox. I think they have plugins for other browsers too. Its free and dead simple to use. You can record a session, and replay it. Edit the macros in a text file, and even do some light scripting (in their language, as well as javascript).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜