제 3 자 API로 메시지를 보내는 테스트 시나리오를 통해 메시지의 각 속성에 대해 단일 시나리오에 여러 가지 결과 및 결과를 추가 할 수 있습니다. 이로 인해 시나리오가 복잡해집니다.BDD : 하나의 시나리오에 여러 가지 결과 및 결과를 추가해야합니까, 결과에 따라 시나리오를 분할해야합니까?
나는 또한 이것을 분리 된 시나리오로 나눌 수 있습니다. 그러나 그들은 실제로 다르지 않다 시나리오.
Scenario 1: An order
Given an order
And that has order ID equal to 42
And that has affiliate reference equal to foo
When the conversion for the order is sent
Then the conversion has an ID equal to 42
And the conversion has an affiliate ID equal to foo
그리고 여기 여러 시나리오로를 부러 :
Scenario 1: An order with a specific order ID
Given an order that has order ID equal to 42
When the conversion for the order is sent
Then the conversion has an ID equal to 42
Scenario 2: An order with a specific affiliate reference
Given an order that has affiliate reference equal to foo
When the conversion for the order is sent
Then the conversion has an affiliate ID equal to foo
나는 시나리오를 테스트로 생각하지 말아야한다고 생각한다. 테스트하지 않는다. 또한 프로 시저이기 때문에 생각하지 않아야합니다. 입력 및 출력이 없습니다. 시나리오는 문서입니다. 주어진 조건에서 시스템이 작동하는 방법을 설명합니다. Givens의 이러한 환경, 즉 환경 - 이벤트 -에서, 그리고 시스템이 어떻게 진행되고 있는지에 대해 어떻게 반응해야하는지에 대해 Thens에서 설명하십시오. – Shamaoke
@Shamaoke 일반적으로 나는 당신의 성명 (특히 첫 번째 부분)에 동의한다. 나는 당신이 어떤 행동을 묘사하고 있는가에 따라 입력과 출력이있을 수 있다고 생각한다. –