背景:我一直在为我的使用 AJAX 的 C# 开发的网络应用程序寻找自动测试工具。我试图找到一些工具,但有些很复杂,有些是付费的,有些不允许我调整。下面列出了一些工具,但我想要一些我可以完全控制的东西,并且重量轻且易于携带。
我的灵感:)
解决方案: 所以,最后回到我以前的 JavaScript 技能,我最终创建了自己的简单的(希望有效)自动测试工具!这个想法是创建一个包装父 html 页面,它将“托管”要在 iframe 中测试的网页,然后访问其控件、填充值并执行点击等...
*注意:两个页面需要在同一台机器上进行测试(交叉
不允许进行域测试)
这是解释我的方法的示例图像 -
这是包装页面
代码:http://www.codeupload.com/3813
我'我想知道您的建议和想法以及您的偏好。我看到这种方法有很多用途,例如自动测试、显示自动演示、自动数据输入……但所有内容都在同一域上。
这是我的代码项目文章:
http://www.codeproject.com/KB /custom-controls/JS-Automated-Testing.aspx
请分享您的想法。如果有人感兴趣,我还发布了一个 youtube 视频,展示了它的实际操作:
http://www.youtube.com/watch?v=j_z_IrFztBo
谢谢
PS:希望这不是误导,我不是广告,只是为了分享和学习;)
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 :)
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)
Here's a sample image explaining my method -
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 ;)
发布评论