Selenium -- open-source automated testing framework

Source: Internet
Author: User
Tags seamonkey selenium grid

Selenium is a good automated testing framework for multiple platforms and browsers. Selenium provides two operating modes-core and remote control (RC). In addition, thoughtworks also provides Firefox's add-on -- selenium IDE and RC mode extension selenium grid for selenium. The current version is selenium 1.0 beta-1 released (March 5, 2008)

Supported platforms and browsers:

Supported platforms:

    • Windows:

      • Internet Explorer 6.0 and 7.0
      • Firefox 0.8 to 2.0
      • Mozilla Suite 1.6 +, 1.7 +
      • SeaMonkey 1.0
      • Opera 8 & 9
      • Mac OS X:

        • Safari 2.0.4 +
        • Firefox 0.8 to 2.0
        • Camino 1.0a1
        • Mozilla Suite 1.6 +, 1.7 +
        • SeaMonkey 1.0

        Not yet supported: omniweb

        • Linux:

          • Firefox 0.8 to 2.0
          • Mozilla Suite 1.6 +, 1.7 +
          • Konqueror
          • Opera 8 & 9

      SeleniumIs a test tool for Web applications. Selenium tests runDirectly in a browser, Just like real users do. it runs in Internet Explorer, Mozilla and Firefox on Windows, Linux, and Macintosh, Safari on the Mac. we have plans to target safari on the iPhone in some months.

      For more information, see selenium home, http://selenium.openqa.org/

      1. Selenium Core: Http://selenium-core.openqa.org/

      The core mode is usually written in HTML and loaded to the Web to be tested.ProgramMedium

      Core mode: The javascript core library and the tests in question are loaded into your webapp. it is a simpler form of selenium, and suitable for non-developers, but it has some inherent limitations. below is a simplified representation of the architecture.

      Your tests scripts (written in HTML) and the selenium test runner itself are uploaded to the same web server that hosts the application you are trying to test. that suggests that you know how to deploy to that Web Server (or know someone who does ).
      You open a browser at a URL that will kick off the tests, and watch them run.
      Selenium core works on muliple browsers-more than the three shown on the left.

      2. Selenium RC: Http://selenium-rc.openqa.org/

      The remote control mode is more advanced. it is able to test a wider range of web-applications than selenium-core and is more scalable, but requires some technical knowledge to set up. below is a simplified specified tural representation of it ..

      RC mode can be implemented through multipleProgramming LanguageAllows you to drive Client browsers,

    • -Java
    • -. Net
    • -Perl
    • -PHP
    • -Python
    • -Ruby
    • -Selenese
    • -Javascript

      The most important thing is that it supports Ajax applications (the selenium server is great for testing complex Ajax-based Web user interfaces under a continuous integration system. it is also an ideal solution for users of selenium core or selenium ide who want to write tests in a more expressive programming language than the selenese HTML table format customarily used with selenium core .)

      Selenium remote control(RC) is a test tool that allows you to write automated Web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser.

      Selenium RC comes in two parts.

        1. A server which can automatically launch and kill supported browsers, and acts as a HTTP proxy for Web requests from those browsers.
        2. Client libraries for your favorite computer language.

      3. Selenium Grid: Http://selenium-grid.openqa.org/

      Selenium grid is a tool that dramatically speeds up functional testing of web-APPs by leveraging your existing computing infrastructure. it allows you to easily run multiple tests in parallel, on multiple machines, in an heterogeneous enviroment.

      This additional server piece allows the several remote control servers to accessed in parallel by one or more driving processes. you may want to do this if you want to use scale to speed everything up, or because you need to test on Mac and/or Linux, as well as windows from one driving test-suite.

      Based on the excellent selenium Web Testing Tool, selenium grid allows you to run multiple instances of selenium Remote Control in parallel. even better, it makes all these selenium remote controls appear as a single one, so your tests do not have to worry about the actual infrastructure. selenium grid cuts down on the time required to run a selenium test suite to a fraction of the time that a single instance of selenium instance wocould take to run.

      Of course, you get to choose which language you develop your tests in: Ruby, Java, Python, C #, PHP ,...

      4. Selenium ide: Http://selenium-ide.openqa.org/

      Selenium ideIs an integrated development environment for Selenium tests. it is implemented as a Firefox extension, and allows you to record, edit, and debug tests. selenium ide includes des the entire selenium core, allowing you to easily and quickly record and play back tests in the actual environment that they will run.

      Selenium IDE is not only recording tool:It is a complete ide. You can choose to use its recording capability, or you may edit your scripts by hand. with AutoComplete support and the ability to move commands around quickly, selenium IDE is the ideal environment for creating Selenium tests no matter what style of tests you prefer.

      Features:

        • Easy record and Playback
        • Intelligent field selection will use IDs, names, or XPath as needed
        • AutoComplete for all common selenium commands
        • Walk through tests
        • Debug and set breakpoints
        • Save tests as HTML, Ruby scripts, or any other format
        • Support for seleniumUser-extensions.jsFile
        • Option to automatically assert the title of every page

      This Firefox plugin allows you to record and playback tests in the browser. Here is a screen shot of it in use (in the side-bar of Firefox ):

      Currently, selenium ide supports firefox 3.0,

      Version 1.0 Beta 2

        • Date: 06/03/2008
        • Description: includes selenium core 1.0-Snapshot
        • Changelog
        • Downloads:
          • Firefox extension (requires Firefox 1.5.0. *, 2.0.0. * or 3. 0 .*)

      Http://selenium-ide.openqa.org/download.jsp

      5. thoughtworks

      Selenium is an open-source automated testing framework developed by the thoughtworks team. http://www.thoughtworks.com.cn/, thoughtworksis a global IT consulting company. Deliver custom application software, provide practical consulting services, develop software for enterprises, and help enterprises develop agile development.

      Selenium was developed by team of developers and testers at thoughtworks. it is open-source software and can be downloaded and used without charge. it is currently under active development developers from multiple companies. see who made selenium for more details.
      Thoughtworks is a leader in Agile development methods for enterprise software development. Selenium is designed specifically for the specified testing requirements of agile teams. However, teams using more traditional development will also find it useful.

    • Contact Us

      The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

      If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

      A Free Trial That Lets You Build Big!

      Start building with 50+ products and up to 12 months usage for Elastic Compute Service

      • Sales Support

        1 on 1 presale consultation

      • After-Sales Support

        24/7 Technical Support 6 Free Tickets per Quarter Faster Response

      • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.