本文介绍了集成测试的Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的完全集成测试Web应用程序。我想测试像某些短语和HTML元素的使用多个浏览器的AJAX,定位和presence很多东西。我正在寻找一个工具,做这样的自动测试。

I want to do full integration testing for a web application. I want to test many things like AJAX, positioning and presence of certain phrases and HTML elements using several browsers. I'm seeking a tool to do such automated testing.

在另一方面,这是一个使用集成测试我的第一次。是否有任何具体的建议做这样的测试是什么时候?任何教程呢?

On the other hand; this is my first time using integration testing. Are there any specific recommendations when doing such testing? Any tutorial as well?

(附注:我的后端code是使用Perl,Python和Django的完成)

谢谢!

推荐答案

如果你需要做全面的测试,包括利用浏览器的功能,如AJAX话,我会建议。硒启动一个浏览器,并控制它来运行测试。

If you need to do full testing including exploiting browser features like AJAX then I would recomend Selenium. Selenium launches a browser and controls it to run the tests.

它支持所有主要的的。硒本身是用Java实现但这是不是真的,如果正在使用它通过它的用户界面,以测试Web应用程序的问题。

It supports all the major platforms and browsers. Selenium itself is implemented in Java but that is not really an issue if it is being used to test a web application through its user interface.

Selenium测试是在一个HTML表命令序列,支持的命令是很好。还有一个的作为可用于记录和运行测试是Firefox的插件实现。然而在IDE创建的测试脚本可被用于驱动测试对任何支持的浏览器的

Selenium tests are a sequence of commands in an HTML table, the supported commands are in well documented. There is also an IDE implemented as a Firefox plugin that can be used to record and run tests. However the test scripts created in the IDE can be used to drive tests against any of the supported browsers.

这篇关于集成测试的Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-05 09:00