본문 바로가기
【Professional Tech】/→ Selenium

A Survey of the Selenium Ecosystem

반응형

Appium관련된 내용을 찾다가 기반이 되는 Selenium과 관련된 제대로 된 소개 문서가 있어 포스팅합니다. 제목으로 구글링하시면 PDF파일을 찾으실 수 있으니, 다운받아 읽어 보시기 바랍니다. 

Selenium Core → Selenium RC(Remote Control)  Selenium WebDriver  Selenium Grid 순으로 발전하게된 배경 소개와 Appium, Zalenium과 같이 관련된 High-level Framework based on or extending Selenium 내용도 정리가 되어 있습니다. 구글링하면서 모아가던 여러 단편적인 지식을 한번에 꾀어 맞춘 느낌이 듭니다.

 

※ Selenium Suite에 대해...

더보기

◈ 참고자료 [Link]

The whole Selenium infrastructure can be visualized via the image below and we can highlight three main products that are still heavily supported and recognized by the community: Selenium WebDriver, Selenium IDE, and Selenium Grid. Let’s quickly describe each of them.

 

Selenium Suite

Selenium WebDriver (Selenium 4)

Most of the time, when people talk about Selenium, they mean Selenium WebDriver. The largest chunk of the product’s development is focused on this product.

The way test automation in WebDriver works is often compared to taxi driving. There are three participants in taxi driving and test automation: customer/test engineer, car/browser, taxi driver/WebDriver. According to this analogy, a tester commands WebDriver to interact with the elements the same way a customer gives instructions to a taxi driver. Then, WebDriver gives the browser (the car) commands that sound something like this: When the button is clickable, click the button. Then the browser provides WebDriver information about values and statuses of web elements, which are later sent to the script. If you want to know more about quality assurance activities, see our comprehensive software testing whitepaper and also a detailed article on API testing.

In this article, we will mostly talk about the benefits and drawbacks of Selenium WebDriver.

Selenium IDE

This Firefox add-on is dismissed by half of the testers and celebrated by the other half. Not meant for production, it’s easy to learn and perfect for prototyping tasks. You don’t need programming skills to successfully operate in Selenium IDE as it basically records your actions in the browser and repeats them. However, numerous official and non-official plug-ins allow you to build a Frankenstein’s monster of IDE that can likely become a production-ready tool (we will talk about it in a bit). For companies that find Selenium WebDriver too high of an entry point, using IDE with some plugins on top may be a feasible solution.

Selenium Grid

Selenium Grid allows you to run parallel tests on multiple machines and browsers at the same time. The main function of this tool is to save time. If you have to run say 100 tests but you use Selenium Grid to set up four virtual or physical machines, it will take you about one-fourth of the time it would have taken if you ran these tests one by one on a single machine. Considering how scripts normally run slow on a browser, using performance-improving techniques such as parallel testing can help with the problem. You can also use it to test one application in different browsers in parallel, when one machine is running Firefox, the other – Chrome, and so on. You can create different configurations with Grid, combining different versions of browsers and operating systems. Needless to say, that when used in large production environments, Grid is a huge time-saver.

반응형