Selenium (Web Automation Testing tool developed by ThoughtWorks Corporation)

Source: Internet
Author: User
Tags selenium grid

Selenium is also a tool for Web application testing. The selenium test runs directly in the browser, just as the real user is doing. Supported browsers include IE (7, 8, 9), Mozilla Firefox, Mozilla Suite, and more. The main features of this tool include: test and browser compatibility--test your application to see if it works well on different browsers and operating systems. Test system functionality-Create a regression test to verify software functionality and user requirements. Supports automatic recording of actions and automatic generation of test scripts in different languages such as. Net, Java, and Perl. Selenium is an acceptance testing tool ThoughtWorks specifically written for Web applications. 1 featuresEdit
    • The bottom of the framework uses JavaScript to simulate real-world user action on the browser. When the script executes, the browser automatically clicks, enters, opens, validates, and so on, as the real user does, testing the application from the end user's perspective.
    • Makes it possible to automate browser compatibility testing, although there are still subtle differences on different browsers.
    • Simple to use, you can write use case scripts in multiple languages, such as Java,python.
2 advantagesEditAccording to the Selenium home page, the biggest benefit of using Selenium compared to other test tools is that the Selenium test runs directly in the browser, just as the real user does. Selenium tests can be run in Internet Explorer, Mozilla, and Firefox on Windows, Linux, and the Macintosh. None of the other test tools can cover so many platforms. There are many other benefits of using Selenium and running tests in a browser. Here are two main benefits: by writing a Selenium test script that mimics the user's actions, you can test the application from the perspective of the end user. By running tests in different browsers, it is easier to discover the incompatibility of the browser. The core of Selenium, also known as browser Bot, is written in JavaScript. This allows the test script to run in a supported browser. The browser bot is responsible for executing the commands received from the test script, either written in the HTML table layout or in a supported programming language. Selenium is available for the following browsers:
Browser Selenium IDE Selenium Remote Control Selenium Core Selenium 2/webdriver API
Firefox 10 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 9 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 8 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 7 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 6 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 5 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 4 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 3.6 Record and playback tests Start Browser, Run tests Run Tests Run Tests
Firefox 3 Record and playback tests Start Browser, Run tests Run Tests Not supported
IE 9 Not supported Start Browser, Run tests Run Tests Run Tests
IE 8 Not supported Start Browser, Run tests Run Tests Run Tests
IE 7 Not supported Start Browser, Run tests Run Tests Run Tests
Safari 3 Not supported Start Browser, Run tests Run Tests Not supported
Safari 2 Not supported Start Browser, Run tests Run Tests Not supported
Opera 9 Not supported Start Browser, Run tests Run Tests Run Tests
Opera 8 Not supported Start Browser, Run tests Run Tests Run Tests
Chrome Not supported Start Browser, run tests*** Run tests*** Run tests***
Others Not supported Partial Support possible* Run tests** Not supported
3 componentsEdit
    • Selenium IDE: A Firefox plugin that can record the user's basic operations and generate test cases. You can then run these test cases to play back in the browser, converting the test cases to automation scripts in other languages.
    • Selenium Remote Control (RC): Supports multiple platforms (Windows,linux,solaris) and multiple browsers (Ie,firefox,opera,safari), available in multiple languages (Java,ruby, python,perl,php,c#) write test cases.
    • Selenium Grid: Allows SELENIUM-RC to scale for a large set of test cases or set of test cases that need to run in different environments.
4 UseEditCombining selenium RC scripts with JUnit unit tests can cover both functional testing and data or background Java class testing to form a complete Web application testing solution. To install the JRE first, download the Selenium RC program jar package from the official website (post reference) and store it in a directory on your hard disk, such as e:/selenium/. Start the Selenium RC service, start the cmd mode, enter the directory where selenium RC is located, and enter: Java-jar Selenium-server.jar.  When the boot is complete, you can see the following information, which means that the startup was successful. A Learning site http://www.51testing.com/zhuanti/selenium.html

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.