Selenium detailed introduction to the Java Selenium Tutorial _java

Source: Internet
Author: User

Selenium is the most extensive web UI Automation testing framework currently in use. This series of articles will go into the brief to explain the usage of selenium.

Reading Table of Contents

The name of the selenium

Selenium means selenium (a bit QTP the killer's meaning)

QTP Mercury is mercury, and selenium can counteract mercury.

QTP The current price is three stand-alone version of 100,000 yuan, fewer and less people use QTP

What is Selenium

A set of software tools to support different automated test methods

Open source software: You can add some functionality to refactoring tools as needed

Cross-platform: Linux, Windows Mac

The core feature is the ability to automate tests on multiple browsers

Support for multiple programming languages

has been widely used by Google, Baidu, Tencent and other companies

Able to achieve most of the functionality of similar business tools, and also implement features that business tools cannot support

We recommend that you learn the whole set of tools, and choose the test tools for your own testing purposes.

The development history of Selenium

2004 at ThoughtWorks, a company called Jason Huggins to reduce manual testing, he wrote a set of JavaScript libraries that can interact with pages and repeat tests on different browsers.

This set of libraries later became selenium Core. Provides a solid core foundation for the Selenium Remote control (RC) and selenium IDE

Selenium's role is epoch-making because it allows you to control browsers in multiple languages.

The browser's security restrictions on JS also brought trouble to the development of selenium, and the Web program is also more and more, the characteristics are more and more, both for the development of selenium has brought a lot of difficulties

2006 Google engineer Simon Stewart opened a project called Webdriver, which allows the test tools to bypass the sandbox effect of the JS environment by using the methods provided by the browser and the operating system itself. Webdriver Project goal is to solve the selenium pain

2008 Beijing Olympic Annual Meeting, Selenium and Webdriver These two projects were merged, Selenium 2.0 appeared, which is what everyone said Webdriver

Selenium's Tool kit

Selenium 2 (aka. Selenium Webdriver provides excellent test tool features such as: Associated object-oriented APIs

Selenium 1 (aka. Selenium RC or Remote control) supports more browsers and supports more programming languages (Java, JavaScript, Ruby PHP)

The Selenium IDE (integrated development Environment) is a Firefox plug-in that has a graphical interface for recording and playback scripts. This plugin is just for prototyping tools, and you don't want to use this tool to run all the test scripts

Selenium-grid can test the script in parallel under multiple test environments and implement concurrent test execution of the script. Shorten the execution time of a large number of test script collections

Choose your Selenium tool

Without programming experience, it is recommended that you choose the selenium IDE to familiarize yourself with the selenium commands. Use the IDE to quickly create a simple test script

We do not recommend that you choose the selenium IDE to perform automated tests,

Recommended familiarity: Selenium IDE

Further proficiency in using the Selenium-webdriver API

Browsers supported by Webdriver

Ie6-10

Most versions of Firefox

Chrome

Safari

Opera

Andrioid Browser on the system

Self-browser on iOS system

Non-interface implementation of Htmlunit

The difference between Selenium 1 and Webdriver

Webdriver is an upgraded version of Selenium 1 and can also be understood as two different products

Webdriver compared to the selenium that can better bypass JS restrictions, the API is also easier to use.

Selenium 1 supports more browsers than Webdriver

Webdriver can implement backward-compatible selenium 1 script

Related Article

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.