自动化 Web 应用程序点击手势进行测试
我有一个网络应用程序,我想自动化我所做的一切(用于测试)。如果我能做一次并记录下来,以便以后使用,那就太好了。
基本上,我有两种方法来实现这一点,
1)前端解决方案,例如一些浏览器扩展 2)像Selenium这样的后端解决方案可以触发服务器上的所有内容。
稍后的问题是我必须用代码(可能是 XPath 或其他东西)来定义所有内容,这很麻烦。如果有一种方法可以在我在浏览器中执行此操作后重现所有内容,那么这将是一个更好的解决方案,包括表单填写、选择下拉菜单等。这就是为什么我认为一个好的解决方案可能是 50% 前端 50 % 后端解决方案。
前端的东西捕获我单击/选择的元素并生成可以驱动后端的代码。
基本上,我正在寻找这样的解决方案:
启动会话,记录浏览器中完成的所有操作。捕获它以供稍后处理。使用 Selenium 或任何其他工具。
现在还有类似的东西吗?
I have a web application and I want to automate everything I do (for testing things). It would be good if I could do it once and record it so that I can use it later on.
Basically, I have 2 ways to achieve this,
1) Front-end solutions like some browser extensions
2) Back-end solutions like Selenium which can trigger everything from the server.
The problem with later is that I have to define everything in terms of code (maybe XPath or something) which is cumbersome. If there is a method to reproduce everything once I do it in a browser then that would be a better solution, including form filling, selecting drop-down etc. This is why I think a good solution could be a 50% front-end 50% back-end solution.
A frontend stuff that captures the elements I click/select and generates the code which can drive the back-end.
Basically, I am looking for a solution like this :
Start a session, record everything that gets done in the browser. Capture it for processing later on. Using Selenium or any other tool.
Is there anything like this available now?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很大程度上取决于您的应用程序。我会尝试使用 Selenium IDE Firefox 插件(http://seleniumhq.org/projects/ide/)记录/回放您的测试
It depends very much on your application. I would give a try recording / playing back your testing with Selenium IDE Firefox plugin (http://seleniumhq.org/projects/ide/)