|
1 | 1 | ---
|
2 |
| -title: "Understanding the components" |
| 2 | +title: "구성 요소 이해" |
3 | 3 | weight: 1
|
4 | 4 | ---
|
5 | 5 |
|
6 |
| -{{% notice info %}} |
7 |
| -<i class="fas fa-language"></i> Page being translated from |
8 |
| -English to Korean. Do you speak Korean? Help us to translate |
9 |
| -it by sending us pull requests! |
10 |
| -{{% /notice %}} |
11 |
| - |
12 |
| -Building a test suite using WebDriver will require you to understand and |
13 |
| -effectively use a number of different components. As with everything in |
14 |
| -software, different people use different terms for the same idea. Below is |
15 |
| -a breakdown of how terms are used in this description. |
16 |
| - |
17 |
| -### Terminology |
18 |
| - |
19 |
| -* **API:** Application Programming Interface. This is the set of "commands" |
20 |
| -you use to manipulate WebDriver. |
21 |
| -* **Library:** A code module which contains the APIs and the code necessary |
22 |
| -to implement them. Libraries are specific to each language binding, eg .jar |
23 |
| -files for Java, .dll files for .NET, etc. |
24 |
| -* **Driver:** Responsible for controlling the actual browser. Most drivers |
25 |
| -are created by the browser vendors themselves. Drivers are generally |
26 |
| -executable modules that run on the system with the browser itself, |
27 |
| -not on the system executing the test suite. (Although those may be the |
28 |
| -same system.) NOTE: _Some people refer to the drivers as proxies._ |
29 |
| -* **Framework:** An additional library used as a support for WebDriver |
30 |
| -suites. These frameworks may be test frameworks such as JUnit or NUnit. |
31 |
| -They may also be frameworks supporting natural language features such |
32 |
| -as Cucumber or Robotium. Frameworks may also be written and used for |
33 |
| -things such as manipulating or configuring the system under test, data |
34 |
| -creation, test oracles, etc. |
35 |
| - |
36 |
| - |
37 |
| -### The Parts and Pieces |
38 |
| -At its minimum, WebDriver talks to a browser through a driver. Communication |
39 |
| -is two way: WebDriver passes commands to the browser through the driver, and |
40 |
| -receives information back via the same route. |
41 |
| - |
42 |
| - |
43 |
| - |
44 |
| -The driver is specific to the browser, such as ChromeDriver for Google's |
45 |
| -Chrome/Chromium, GeckoDriver for Mozilla's Firefox, etc. The driver runs on |
46 |
| -the same system as the browser. This may, or may not be, the same system where |
47 |
| -the tests themselves are executing. |
48 |
| - |
49 |
| -This simple example above is _direct_ communication. Communication to the |
50 |
| -browser may also be _remote_ communication through Selenium Server or |
51 |
| -RemoteWebDriver. RemoteWebDriver runs on the same system as the driver |
52 |
| -and the browser. |
53 |
| - |
54 |
| - |
55 |
| - |
56 |
| -Remote communication can also take place using Selenium Server or Selenium |
57 |
| -Grid, both of which in turn talk to the driver on the host system |
58 |
| - |
59 |
| - |
60 |
| - |
61 |
| -## Where Frameworks fit in |
62 |
| - |
63 |
| -WebDriver has one job and one job only: communicate with the browser via any |
64 |
| -of the methods above. WebDriver does not know a thing about testing: it does not |
65 |
| -know how to compare things, assert pass or fail, and it certainly does not know |
66 |
| -a thing about reporting or Given/When/Then grammar. |
67 |
| - |
68 |
| -This is where various frameworks come in to play. At a minimum you will need a |
69 |
| -test framework that matches the language bindings, e.g. NUnit for .NET, JUnit |
70 |
| -for Java, RSpec for Ruby, etc. |
71 |
| - |
72 |
| -The test framework is responsible for running and executing your WebDriver |
73 |
| -and related steps in your tests. As such, you can think of it looking akin |
74 |
| -to the following image. |
75 |
| - |
76 |
| - |
77 |
| - |
78 |
| -Natural language frameworks/tools such as Cucumber may exist as part of that |
79 |
| -Test Framework box in the figure above, or they may wrap the Test Framework |
80 |
| -entirely in their own implementation. |
| 6 | +WebDriver를 사용하여 테스트 스위트를 빌드하려면 이해하고 이해해야합니다. |
| 7 | +다양한 구성 요소를 효과적으로 사용합니다. 모든 것과 마찬가지로 |
| 8 | +소프트웨어, 다른 사람들은 동일한 아이디어에 대해 다른 용어를 사용합니다. 아래는 |
| 9 | +이 설명에서 용어가 사용되는 방식에 대한 분석. |
| 10 | + |
| 11 | +### 술어 |
| 12 | + |
| 13 | +* **API:** _Application Programming Interface_. 이것은 "명령"세트입니다 |
| 14 | +WebDriver를 조작하는 데 사용합니다. |
| 15 | +* **Library:** API와 필요한 코드를 포함하는 코드 모듈 |
| 16 | +그것들을 구현하기 위해. 라이브러리는 각 언어 바인딩에 따라 다릅니다 (예 : .jar). |
| 17 | +Java 용 파일, .NET 용 .dll 파일 등 |
| 18 | +* **Driver:** 실제 브라우저를 제어합니다. 대부분의 운전자 |
| 19 | +브라우저 공급 업체 자체에 의해 생성됩니다. 드라이버는 일반적으로 |
| 20 | +브라우저 자체를 사용하여 시스템에서 실행되는 실행 가능 모듈 |
| 21 | +테스트 스위트를 실행하는 시스템에는 없습니다. (그것들이 |
| 22 | +참고 : _일부 사람들은 드라이버를 프록시라고합니다._ |
| 23 | +* **Framework:** WebDriver 지원으로 사용되는 추가 라이브러리 |
| 24 | +스위트. 이러한 프레임 워크는 JUnit 또는 NUnit과 같은 테스트 프레임 워크 일 수 있습니다. |
| 25 | +또한 자연 언어 기능을 지원하는 프레임 워크 일 수도 있습니다. |
| 26 | +오이 또는 로보 티움으로. 프레임 워크는 다음을 위해 작성되고 사용될 수도 있습니다. |
| 27 | +테스트중인 시스템 조작 또는 구성, 데이터 |
| 28 | +제작, 테스트 오라클 등 |
| 29 | + |
| 30 | + |
| 31 | +### 부품과 조각 |
| 32 | +최소한 WebDriver는 드라이버를 통해 브라우저와 통신합니다. 통신 |
| 33 | +WebDriver는 드라이버를 통해 브라우저에 명령을 전달합니다. |
| 34 | +동일한 경로를 통해 정보를 다시받습니다. |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +드라이버는 Google의 ChromeDriver와 같은 브라우저에 따라 다릅니다. |
| 39 | +Chrome/Chromium, Mozilla Firefox 용 GeckoDriver 등 드라이버는 다음에서 실행됩니다. |
| 40 | +브라우저와 동일한 시스템. 이것은 동일한 시스템 일 수도 있고 아닐 수도 있습니다. |
| 41 | +테스트 자체가 실행 중입니다. |
| 42 | + |
| 43 | +위의 간단한 예는 _direct_ 통신 입니다. 통신 |
| 44 | +브라우저는 Selenium 서버를 통한 _remote_ 통신 일 수도 있고 |
| 45 | +RemoteWebDriver. RemoteWebDriver는 드라이버와 동일한 시스템에서 실행됩니다. |
| 46 | +그리고 브라우저. |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +Selenium Server 또는 Selenium을 사용하여 원격 통신을 수행 할 수도 있습니다. |
| 51 | +그리드, 둘 다 호스트 시스템의 드라이버와 통신 |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +## 프레임 워크가 적합한 곳 |
| 56 | + |
| 57 | +WebDriver에는 하나의 작업과 하나의 작업 만 있습니다. |
| 58 | +위의 방법 중 하나입니다. WebDriver는 테스트에 대해 알지 못합니다. |
| 59 | +사물을 비교하는 방법을 알고, 통과 또는 실패를 주장하며, 확실하지 않습니다 |
| 60 | +보고 또는 주어진 / 언제 / 그럼 문법에 관한 것. |
| 61 | + |
| 62 | +다양한 프레임 워크가 등장합니다. 최소한 당신은 필요합니다 |
| 63 | +언어 바인딩과 일치하는 테스트 프레임 워크 (예 : .NET, JUnit 용 NUnit |
| 64 | +Java, Ruby 용 RSpec 등 |
| 65 | + |
| 66 | +테스트 프레임 워크는 WebDriver 실행 및 실행을 담당합니다. |
| 67 | +그리고 테스트의 관련 단계. 따라서, 당신은 비슷한 것으로 생각할 수 있습니다 |
| 68 | +다음 이미지에. |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +Cucumber와 같은 자연 언어 프레임 워크 / 도구는 그 일부로 존재할 수 있습니다. |
| 73 | +위 그림의 테스트 프레임 워크 상자 또는 테스트 프레임 워크를 래핑 할 수 있습니다. |
| 74 | +전적으로 자신의 구현에. |
0 commit comments