반응형
Gherkin
In order for Cucumber to understand the scenarios, they must follow some basic syntax rules, called Gherkin.
Gherkin is a set of grammar rules that makes plain text structured enough for Cucumber to understand.
Gherkin serves multiple purposes:
- Unambiguous executable specification
- Automated testing using Cucumber
- Document how the system actually behaves
![](https://blog.kakaocdn.net/dn/GxfL8/btq1tCjpVni/EUPhzuNBHqCN2KklRyPNkk/img.png)
Step definitions connect Gherkin setps to programming code.
- Given
- When
- Then
- And
- But
![](https://blog.kakaocdn.net/dn/bfMh93/btq1uu6yUUk/VAumGQHdXNOd30pIxGi391/img.png)
e.g.
![](https://blog.kakaocdn.net/dn/bpDxE3/btq1sA7wBds/maCGBllzyURURJfcCaMZw1/img.png)
반응형
'🎸 기타' 카테고리의 다른 글
[HTTP] HTTP 메서드 (0) | 2021.05.22 |
---|---|
딥링크, 디퍼드 딥링크, 다이나믹 딥링크, 원링크 차이 (0) | 2021.05.05 |
[HTTP] HTTP 요청/응답 메시지 (0) | 2021.03.27 |
ISTQB 자격증 취득 후기 (0) | 2021.02.23 |
[Android] 무선으로 Android 단말 디버깅(mac OS, ADB 명령어) (1) | 2021.01.23 |
댓글