問題描述
我想對(duì) Web 應(yīng)用程序進(jìn)行完整的集成測(cè)試.我想測(cè)試很多東西,例如 AJAX、某些短語和 HTML 元素的定位和存在使用多個(gè)瀏覽器.我正在尋找一種工具來進(jìn)行這種自動(dòng)化測(cè)試.
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.
另一方面;這是我第一次使用集成測(cè)試.在進(jìn)行此類測(cè)試時(shí)有什么具體建議嗎?還有教程嗎?
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?
(請(qǐng)注意:我的后端代碼是使用 Perl、Python 和 Django 完成的.)
謝謝!
推薦答案
如果您需要進(jìn)行全面測(cè)試,包括利用 AJAX 等瀏覽器功能,那么我會(huì)推薦 硒.Selenium 啟動(dòng)瀏覽器并控制它運(yùn)行測(cè)試.
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.
它支持所有主要的平臺(tái)和瀏覽器.Selenium 本身是用 Java 實(shí)現(xiàn)的,但如果它被用于通過其用戶界面測(cè)試 Web 應(yīng)用程序,這并不是真正的問題.
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 測(cè)試是 HTML 表格中的一系列命令,支持的命令在文檔化中有很好的說明.還有一個(gè) IDE 作為 Firefox 插件實(shí)現(xiàn),可用于記錄和運(yùn)行測(cè)試.但是,在 IDE 中創(chuàng)建的測(cè)試腳本可用于針對(duì)任何受支持的瀏覽器進(jìn)行測(cè)試.
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.
這篇關(guān)于Web 應(yīng)用程序的集成測(cè)試的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!