Java集成测试工具 Selenium 2.8 发布,
fmms 13年前
<p>Selenium 2.8 发布了,该版本包含大量、非常大量的<a href="/misc/goto?guid=4958192568632761764" target="_blank">bug修复列表</a>。</p> <p>Selenium (SeleniumHQ) 是 thoughtworks公司的一个集成测试的强大工具。</p> <p>一、Selenium 的版本</p> <p>Selenium 现在存在2个版本,一个叫 selenium-core, 一个叫selenium-rc 。</p> <p>selenium-core 是使用HTML的方式来编写测试脚本,你也可以使用 Selenium-IDE来录制脚本,但是目前Selenium-IDE只有 FireFox 版本。</p> <p>Selenium-RC 是 selenium-remote control 缩写,是使用具体的语言来编写测试类。</p> <p>selenium-rc 支持的语言非常多,这里我们着重关注java的方式。这里讲的也主要是 selenium-rc,因为个人还是喜欢这种方式.<br /> <span style="font-weight:bold;">项目地址</span>:<a href="/misc/goto?guid=4958183130559631511" target="_blank">http://seleniumhq.org/</a></p> <p>下图是Selenium IDE的运行界面截图:</p> <p><img title="Java集成测试工具 Selenium" border="0" alt="Java集成测试工具 Selenium" src="https://simg.open-open.com/show/672fd07d986fe1ded917b078e331f17a.jpg" width="400" height="520" /></p> <div id="mBody"> <div id="mainContent"> <h2>Downloads</h2> <p>Below is where you can find the latest releases of all the Selenium components. You can also find a list <a href="/misc/goto?guid=4958192570053347446">previous releases</a>, <a href="/misc/goto?guid=4958192570797657109">latest releases</a>, <a href="/misc/goto?guid=4958192571545254798">source code</a>, and additional information for <a href="/misc/goto?guid=4958192572289251315">Maven users</a> (Maven is a popular Java build tool).</p> <h3>Selenium IDE</h3> <p>Selenium IDE is the a Firefox plugin that does record-and-playback of interactions with the browser. Use this to either create simple scripts, assist in exploratory testing. It can also export Remote Control or WebDriver scripts, though they tend to be somewhat brittle and should be overhauled into some sort of Page Object-y structure for any kind of resiliency.</p> <p>Download version <a href="/misc/goto?guid=4958192573023011626">1.3.0</a> released on 27/September/2011 or view the <a href="/misc/goto?guid=4958192573774398727">Release Notes</a></p> <h3>Selenium Server (formerly the Selenium RC Server)</h3> <p>The Selenium Server is needed in order to run either Selenium RC style scripts or Remote Selenium Webdriver ones. The 2.x server is a drop-in replacement for the old Selenium RC server and is designed to be backwards compatible with your existing infrastructure.</p> <p>Download version <a href="/misc/goto?guid=4958192574515777463">2.8.0</a> </p> <h3>Selenium Client Drivers</h3> <p>In order to create scripts that interact with the Selenium Server (Selenium RC, Selenium Remote Webdriver) or create local Selenium WebDriver script you need to make use of language-specific client drivers. Unless otherwise specified, drivers include both 1.x and 2.x style drivers.</p> <p>While drivers for other languages exist, these are the core ones that are supported by the main project.</p> <table class="ke-zeroborder"> <thead> <tr> <th>Language</th> <th>Client Version</th> <th>Release Date</th> <th> </th> <th> </th> <th> </th> </tr> </thead> <tbody> <tr> <td>Java</td> <td>2.8.0</td> <td>2011-10-06</td> <td><a href="/misc/goto?guid=4958192575260666475">Download</a> </td> <td><a href="/misc/goto?guid=4958192576002723645">Change log</a> </td> <td><a href="/misc/goto?guid=4958192576745383740" alt="Java Doc">JavaDoc</a></td> </tr> <tr> <td>C#</td> <td>2.8.0</td> <td>2011-10-06</td> <td><a href="/misc/goto?guid=4958192577485270285">Download</a></td> <td><a href="/misc/goto?guid=4958192578227788265">Change log</a></td> <td><a href="/misc/goto?guid=4958192578967340470">API docs</a></td> </tr> <tr> <td>Ruby</td> <td>2.8.0</td> <td>2011-10-06</td> <td><a href="/misc/goto?guid=4958192579714659325">Download</a></td> <td><a href="/misc/goto?guid=4958192580460774320">Change log</a></td> <td><a href="/misc/goto?guid=4958192581205025892">API docs</a></td> </tr> <tr> <td>Python</td> <td>2.8.1</td> <td>2011-10-06</td> <td><a href="/misc/goto?guid=4958192581949810826">Download</a></td> <td><a href="/misc/goto?guid=4958192582688697267">Change log</a></td> </tr> </tbody> </table> <h4>C# NuGet</h4> <p>NuGet lastest release is 2.8.0, Released on 2011-10-06</p> <ul> <li><a href="/misc/goto?guid=4958192583433031344">RC</a></li> <li><a href="/misc/goto?guid=4958192584178971791">WebDriver</a></li> <li><a href="/misc/goto?guid=4958192584926057064">WebDriverBackedSelenium</a></li> <li><a href="/misc/goto?guid=4958192585671754480">Support</a></li> </ul> <h4>Mobile Devices</h4> <h4> <ul> <li><a href="/misc/goto?guid=4958192586403053818">Android 2.6.0</a> <a href="/misc/goto?guid=4958192587151035474">wiki</a></li> <li>iOS <a href="/misc/goto?guid=4958192587892311300">wiki</a></li> </ul> </h4> <h4>Third Party Browser Drivers <span class="unsupported">NOT SUPPORTED/DEVELOPED</span> by seleniumhq</h4> <table class="ke-zeroborder"> <thead> <tr> <th>Browser</th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> </tr> </thead> <tbody> <tr> <td><a href="/misc/goto?guid=4958192588639224182">Chrome</a></td> <td><a href="/misc/goto?guid=4958192589377457951">download page</a> </td> <td> </td> <td><a href="/misc/goto?guid=4958192590113369652">issue tracker</a> </td> <td><a href="/misc/goto?guid=4958192590852851662">selenium wiki page</a> </td> </tr> <tr> <td><a href="/misc/goto?guid=4958192591599504519">Opera</a></td> <td><a href="/misc/goto?guid=4958192592341619993">0.7.3</a></td> <td><a href="/misc/goto?guid=4958192593087393618">change log</a> </td> <td><a href="/misc/goto?guid=4958192593825273769">issue tracker</a></td> <td><a href="/misc/goto?guid=4958192594559599729">selenium wiki page</a></td> <td>Released 2011-09-19</td> </tr> </tbody> </table> <h4>Third Party Language Bindings <span class="unsupported">NOT SUPPORTED/DEVELOPED</span> by seleniumhq</h4> <ul class="thirdPartyBinding"> <li><a href="/misc/goto?guid=4958192595305510596">Perl</a> <a href="/misc/goto?guid=4958192596047403294">download and docs</a> by Gordon Child</li> <li><a href="/misc/goto?guid=4958192596780955553">PHP</a> by Chibimagic (real name unknown?)</li> <li><a href="/misc/goto?guid=4958192597533881266">PHP</a> by Lukasz Kolczynski </li> <li><a href="/misc/goto?guid=4958192598269148521">PHP</a> by 非死book</li> </ul> <h3>Selenium Grid</h3> <p>Scripts running too slow or want to run them against multiple browser types and versions? Either download the latest version of Selenium Server (from above) or download the old version of <a href="/misc/goto?guid=4958192599003944489">Selenium Grid</a>. Both can help distribute script execution for either parallelization or browser variation.</p> <p>Download version <a href="/misc/goto?guid=4958192599748237582">1.0.8</a> or view the <a href="/misc/goto?guid=4958192600490751899">ChangeLog</a></p> <h3>Selenium IDE Plugins</h3> <p>Selenium IDE can be extended through its own plugin system. Here are a number of plugins that have been created using it. For more information on how to create your own plugin or have it listed, see the <a href="/misc/goto?guid=4958192601228321489">plugin tutorial page</a>.</p> <p>Please note that these are not supported by the Selenium project and all issues need to be raised with the relevant developers</p> <div class="plugin"> <div class="name"> Play! framework </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192601964886455">Download</a> - <a href="/misc/goto?guid=4958192601964886455">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192603384086545">Manuel Bernhardt</a></td> </tr> <tr> <th>License:</th> <td>Apache 2</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>June 28, 2011</td> </tr> <tr> <th>Version:</th> <td>1.3</td> </tr> </tbody> </table> </div> <p class="description">A plugin for Selenium-IDE that adds support for the simplified markup used by the <a href="/misc/goto?guid=4958189463798701425">Play! framework</a>.</p> </div> <div class="plugin"> <div class="name"> Highlight Elements </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192604810302392">Download</a> - <a href="/misc/goto?guid=4958192605551072422">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192606294484075">Samit Badle</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>August 3, 2010</td> </tr> <tr> <th>Version:</th> <td>1.2</td> </tr> </tbody> </table> </div> <p class="description">This plugin for Selenium-IDE highlights elements specified in the Selenese commands on the web page as the test case is executed. Once this plugin is installed, a Highlight elements button will be available on the Selenium-IDE main window and Sidebar. <a href="/misc/goto?guid=4958192607038373994">More info</a>.</p> </div> <div class="plugin"> <div class="name"> Test Suite Batch Converter </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192607768192693">Download</a> - <a href="/misc/goto?guid=4958192608501218174">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192606294484075">Samit Badle</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>January 13, 2011</td> </tr> <tr> <th>Version:</th> <td>1.5</td> </tr> </tbody> </table> </div> <p class="description">A plugin for Selenium-IDE to convert one or more test suites, including their test cases, from the html format to any other format supported by the Selenium-IDE. <a href="/misc/goto?guid=4958192609920470718">More info</a>.</p> </div> <div class="plugin"> <div class="name"> Selenium Expert </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192610655577121">Download</a> - <a href="/misc/goto?guid=4958192611415165920">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192606294484075">Samit Badle</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>May 3, 2011</td> </tr> <tr> <th>Version:</th> <td>0.2</td> </tr> </tbody> </table> </div> <p class="description">This plugin is my attempt to bring the wonderful world of inspections, tips, hints, fixes and refactoring to Selenese! The Selenium Expert goes through your selenium test cases suggesting improvements, giving tips and even lets you apply them with a single click. Recently, Selenium IDE has brought a some improvements that will break some test scripts. The good news is that most of the essential breaking changes introduced in Selenium IDE 1.0.10 have been incorporated into the Selenium Expert. This should make your migration task a few clicks affair. <a href="/misc/goto?guid=4958192612830952806">More info</a>.</p> </div> <div class="plugin"> <div class="name"> Power Debugger </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192613571033064">Download</a> - <a href="/misc/goto?guid=4958192614304999834">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192606294484075">Samit Badle</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>November 15, 2010</td> </tr> <tr> <th>Version:</th> <td>1.0</td> </tr> </tbody> </table> </div> <p class="description">This plugin for Selenium-IDE improves debugging and troubleshooting issues with scripts. This plugin adds the pause on fail tool to the Selenium IDE toolbar. When pause on fail is turned on, Selenium IDE would pause the execution of the test case when there is an error or a command failure, allowing you to troubleshoot the problem. <a href="/misc/goto?guid=4958192615733284028">More info</a>.</p> </div> <div class="plugin"> <div class="name"> Flex Pilot X </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192616481894671">Download</a> - <a href="/misc/goto?guid=4958192617218655111">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192617954077225">Adam Christian</a></td> </tr> <tr> <th>License:</th> <td>Apache 2</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>August 28, 2010</td> </tr> <tr> <th>Version:</th> <td>0.8.0</td> </tr> </tbody> </table> </div> <p class="description">A Selenium IDE plugin for integrating with Flex-Pilot, for Flex automation. <a href="/misc/goto?guid=4958192618695342112">More info</a>.</p> </div> <div class="plugin"> <div class="name"> File Logging </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192619444427263">Download</a> - <a href="/misc/goto?guid=4958192620184354155">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192606294484075">Samit Badle</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>August 18, 2010</td> </tr> <tr> <th>Version:</th> <td>1.7</td> </tr> </tbody> </table> </div> <p class="description">This plugin for Selenium-IDE saves log messages to a file in real time at a user selectable log level. Once this plugin is installed, a FileLogging tab will be added to the options dialog and a FileLogging menu will be added to the log pane. <a href="/misc/goto?guid=4958192621604675436">More info</a>.</p> </div> <div class="plugin"> <div class="name"> Log Search Bar </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192622342619117">Download</a> - <a href="/misc/goto?guid=4958192623079501059">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192606294484075">Samit Badle</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>August 2, 2010</td> </tr> <tr> <th>Version:</th> <td>1.1</td> </tr> </tbody> </table> </div> <p class="description">A plugin for Selenium-IDE to show a find toolbar in the log pane making it easy to search the displayed log messages. Once this plugin is installed, the log pane will be changed to contain the find toolbar similar to the one found in the Firefox browser. <a href="/misc/goto?guid=4958192624497387900">More info</a>.</p> </div> <div class="plugin"> <div class="name"> Stored Variables Viewer </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192625242101779">Download</a> - <a href="/misc/goto?guid=4958192625982950057">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192606294484075">Samit Badle</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>September 28, 2010</td> </tr> <tr> <th>Version:</th> <td>1.3</td> </tr> </tbody> </table> </div> <p class="description">A plugin for Selenium-IDE to view the stored variables within Selenium IDE. Stored variables are created using the store, storeText, storeExpression and other similar store* commands. This plugin allows you to view these variables when the test is running. <a href="/misc/goto?guid=4958192627401437131">More info</a>.</p> </div> <div class="plugin"> <div class="name"> Grails Formatters </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192628147352398">Download</a> - <a href="/misc/goto?guid=4958192628896434419">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192629636670014">Robert Fletcher</a></td> </tr> <tr> <th>License:</th> <td>Unknown/Free</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>June 15, 2010</td> </tr> <tr> <th>Version:</th> <td>1.0</td> </tr> </tbody> </table> </div> <p class="description">Adds Grails Formatters. <a href="/misc/goto?guid=4958192630383774289">More info</a>.</p> </div> <div class="plugin"> <div class="name"> FlexMonkium </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192631118294383">Download</a> - <a href="/misc/goto?guid=4958192631860965218">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958183127609323268">Gorrila Logic</a></td> </tr> <tr> <th>License:</th> <td>GPL</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>January 6, 2011</td> </tr> <tr> <th>Version:</th> <td>4.1.5</td> </tr> </tbody> </table> </div> <p class="description">A plugin that adds Adobe Flex recording and playback to Selenium via the popular <a href="/misc/goto?guid=4958183128358424491">FlexMonkey</a> open source testing framework. With FlexMonkium, Flex recording and playback is seamlessly interleaved with native Selenium recording and playback so you can easily automate the testing of hybrid web applications that mix html and Javascript with Flex. In addition to creating and running Flex tests inside the Selenium IDE, you can export your hybrid testing scripts as JUnit 4 tests that run with Selenium-RC to easily enable automated testing and continuous integration.</p> </div> <div class="plugin"> <div class="name"> Flow Control </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192633958263016">Download</a> - <a href="/misc/goto?guid=4958192634701599248">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192635436898835">Dave Hunt</a></td> </tr> <tr> <th>License:</th> <td>Apache</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>February 24, 2010</td> </tr> <tr> <th>Version:</th> <td>1.0.3</td> </tr> </tbody> </table> </div> <p class="description">Incorporates the flow control extension available <a href="/misc/goto?guid=4958192636183149177">here</a> and <a href="/misc/goto?guid=4958192636930680277">here</a>.</p> </div> <div class="plugin"> <div class="name"> WebDriver Backed Formatters </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192637666114066">Download</a> - <a href="/misc/goto?guid=4958192638412026053">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192635436898835">Dave Hunt</a></td> </tr> <tr> <th>License:</th> <td>Mozilla Public License</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>July 7, 2011</td> </tr> <tr> <th>Version:</th> <td>1.0.4</td> </tr> </tbody> </table> </div> <p class="description">Adds WebDriver backed Selenium formatters, which allows users to take advantage of WebDriver without having to modify their tests to use the new API.</p> </div> <div class="plugin"> <div class="name"> Separated Values Formatter </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Links:</th> <td><a href="/misc/goto?guid=4958192639845961686">Download</a> - <a href="/misc/goto?guid=4958192640578518620">Support</a></td> </tr> <tr> <th>Author:</th> <td><a href="/misc/goto?guid=4958192635436898835">Dave Hunt</a></td> </tr> <tr> <th>License:</th> <td>Apache</td> </tr> </tbody> </table> </div> <div class="column"> <table class="ke-zeroborder"> <tbody> <tr> <th>Released:</th> <td>February 21, 2011</td> </tr> <tr> <th>Version:</th> <td>1.0.0</td> </tr> </tbody> </table> </div> <p class="description">Adds a simple reversible formatter to Selenium IDE. Useful for sharing test commands via copy/paste.</p> </div> </div> </div> <p></p>