What is the Selenium

Selenium is a tool for Web application testing. Selenium tests run directly in the browser, just as real users do. Supported browsers include Internet Explorer (7, 8, 9, 10, 11), Mozilla Firefox, Safari, Google Chrome, Opera, and more. The main functions of this tool include: testing browser compatibility – testing your application to see if it works well on different browsers and operating systems. Test system functionality – Create regression tests to verify software functionality and user requirements. Supports automatic recording of actions and automatic generation of test scripts in.net, Java, Perl and other languages.

function

  • The bottom layer of the framework uses JavaScript to simulate the operation of the browser by real users. When the test script is executed, the browser automatically clicks, enters, opens, and validates the script code, just as a real user would, testing the application from the end user’s perspective.
  • Makes it possible to automate browser compatibility testing, although there are still subtle differences between browsers.
  • Simple to use, you can use Java, Python and other languages to write use case scripts.

advantage

  • By writing Selenium test scripts that mimic the user’s actions, you can test the application from the end user’s perspective. By running tests in different browsers, it is easier to find browser incompatibilities.
  • The core of Selenium, also known as the 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 scripts, which are either written in HTML table layouts or in one of the supported programming languages.

history

  • In 2004, Jason Huggins, an employee at Thoughtworks, wrote a testing tool called JavaScriptTestRunner and showed it to several colleagues that year. The tool evolved into a reusable testing framework and opened source.
  • At the same time, people like Bea, Dan Fabulich, and Nelson Sproul modified the architecture to a stand-alone service model, with several developers joining to develop and launch Selenium RC and Selenium-IDE.
  • Jason Huggins left Thoughtworks in 2007 and joined the Selenium Support team. In the same year, several Google employees joined the development team and presented the use of Selenium at Google at GTAC [4].
  • Selenium is a successful open source software development supported by many companies and independent developers.

component

  • Selenium IDE: A Firefox plug-in that records the user’s basic actions and generates test cases. These test cases can then be run and played back in the browser, and the test cases can be converted to automated scripts in other languages.
  • Selenium Remote Control (RC) Supports multiple platforms (Windows, Linux, Solaris) and multiple browsers (IE, Firefox, Opera, Safari), and can write test cases in multiple languages (Java, Ruby, Python, Perl, PHP, C#).
  • Selenium Grid: Allows Selenium-RC to be extended for large test cases or test cases that need to be run in different environments.