Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Basic knowledge of Selenium

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

My blog address: https://www.peretang.com/basic-knowledge-of-selenium/

What is Selenium?

Selenium is an automated testing tool

Is a different set of tools.

It supports testing on multiple browser platforms

Why do you need Selenium

1. Turn originally manual testing into automation

two。 It is easier to complete frequent regression tests.

3. Faster feedback to developers and testers

4. Test execution for almost infinite iterations

5. More disciplined test cases

6. Automatically generate defect report

7. Supplement the omissions of manual testing

Selenium component introduction Selenium RC

The former most important project has been abandoned and no longer updated.

The principle is to use a RemoteControlServer as a proxy to control the real browser.

Selenium WebDriver

The combination of Selenium Rc and WebDriver, including an object-oriented API, supports WebDriver API, can use its API to directly call the API on the browser to get the results and the underlying operation of the browser, and can be tested with maximum flexibility, and can be compatible with Selenium RC

WebDriver is an automated Web testing tool for complex repetition. It is a competitor to Selenium and is intended to provide API that is easier to use and easier to maintain.

Selenium IDE

A design tool for building test scripts, a plug-in for FireFox browsers that provides an easy-to-use interface for developing automated test cases and has the ability to record user steps and convert them into test scripts in different programming languages

Selenium Grid

Allows tests to be run in parallel, that is, different tests can be executed at the same time on different remote machines, and because it uses parallelism, the time required to execute tests is greatly improved

Shortcomings of SeleniumRC and SeleniumWebDriverSelenium RC

Cannot handle keyboard and mouse events

Cannot handle homologous policy XSS/HTTP (S)

Cannot handle pop-up boxes, dialog boxes, basic authentication, self-signed certificates, file uploads / downloads

Shortcomings of Selenium WebDriver

Parallelism is not supported, but you can use Selenium Grid to solve this problem

Incomplete support for browsers

The operation API of different browsers is inconsistent.

The difference between the two

SeleniumWebDriver needs to be supported by API and browser. SeleniumRC has a unified API, but an additional proxy operation server is required.

SeleniumWebDriver can simulate the browser through HTMLunitDriver to achieve rapid testing. SeleniumRC needs to have a real browser.

Referenc

SeleniumHQ

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report