开发者

Automated Testing with Javascript for any web app - need more suggestions and ideas

BACKGROUND: I've been looking for auto-testing tools for my web-app developed in C# having AJAX. I tried to find some tools but some were complex, some were paid and some would not allow me to tweak in. Some are listed below but I wanted something on which I had the total control and would be v.light weight and easily portable.

My inspirations :)

  • http://watin.sourceforge.net
  • http://sahi.co.in/w/
  • http://seleniumhq.org/projects/ide/

SOLUTION: So, finally getting back to my old javascript skills I ended up creating my own simple (and hopefully effective) auto-testing tool! The idea was to create a wrapper parent html page which will 'host' the web-page to be tested in an iframe and then access its controls, populate value and perform clicks, etc...

*NOTE: Both the pages need to be on the same machine to be tested (cross domain testing is not allowed)

开发者_Python百科

Here's a sample image explaining my method -

Automated Testing with Javascript for any web app - need more suggestions and ideas

And here's the wrapper page code : http://www.codeupload.com/3813

I'd like to know your suggestions and idea about the same and what you prefer. I see many usage of this method like - auto-testing, showing an automated demo, automated-data-entry,... but everything on the same domain.

Here's my codeproject article:

http://www.codeproject.com/KB/custom-controls/JS-Automated-Testing.aspx

Please share your thoughts. And if some one is interested I've also posted a youtube video showing it live in action: http://www.youtube.com/watch?v=j_z_IrFztBo

Thank you

PS: Hope this is not misleading, I'm not advertising, its just for sharing and learning ;)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜