내가 아래있는 기능 파일이있는 정의. 내가 대신오이 시나리오의 개요 및 예
예제 섹션에서 모든 사용자 이름이나 암호 또는 제목 값을 매핑 할 수있는
일반적인 단계 정의를 가질 수 있습니다.
즉 대신 당신은 생산 것이 형식
Scenario Outline: Create ABC
Given I open the application
When I enter username as "<username>"
And I enter password as "<password>"
Then I enter title as "<title>"
And press submit
를 사용해야합니다
@When("^I enter username as Rob$")
public void I_enter_username_as_Rob() throws Throwable {
// Express the Regexp above with the code you wish you had
throw new PendingException();
}
내가
@When("^I enter username as <username>$")
public void I_enter_username_as_username(<something to use the value passed>) throws Throwable {
// Express the Regexp above with the code you wish you had
throw new PendingException();
}
어떻게 이런 일이있을 수 있습니까? 그것은 오래된 오이 플러그인이어야하며, nowdays outline은 잘 지원되며,의 경우 하나의 일반적인 단계 함수 만 생성합니다. "" –
user1559625
로 변경하지 않아도됩니다. JUnit을 통해 실행될 때 CucumberJVM 1.2.5에서 계속 발생합니다. 따라서 따옴표를 사용하십시오. :-) –