3. BDD – 현업이 선언할 수 있는, 테스트 자동화가능한, 요구사항 정의
3
Scenario: Correct easy answer scores 10
Given I register a team
When I submit a correct easy answer
Then my score should be 10
5. Example for Example mapping
5
Change PIN
The two new PINs
should be the same
Should be able to
change PIN
PIN change is successful
• Enter old PIN
• Enter new PIN twice
• Confirm
⇒ Success message
The old PIN should
be correct
7. Formulation: Before Automate the Tests
7
@login
Scenario: New questions should be added to the question list
When I ask a new question with
| Title |
| Test Question 123 |
Then the question should appear in the question list with todays date as
| Title | Views | Votes |
| Test Question 123 | 0 | 0 |
8. Mapping with Test Code:
Can it be auto-generated? Today’s Agenda!!!
8
14. Idea: Auto generating Step Definition for
Contract Tests
• Step 1: Gherkin formulation generation
• Step 2: Step definition generation:
Given Set the initial state of Aggregate Root
When Call the service or policy handler code or Aggregate’s method
directly
Then Check if the Event has been published or not:
* checking Kafka events directly.
* use Spring cloud stream proxy and check the result. (test double)