오이와 Java를 처음 접했습니다 (Specflow/C# 배경에서 제공). 이클립스에서 첫 번째 프로젝트를 설정하고 모든 것이 올바르게 설정되었다고 생각합니다. (내 단계 정의 파일은 기능 파일에서 F3 - 정의로 이동하여 액세스 할 수 있습니다).Java를 사용하여 Eclipse에서 간단한 자동화 프레임 워크를 설정했지만 Junit을 통해 오이 테스트를 실행할 수 없습니다.
내가 지금처럼의 TestRunner 파일을 설정 한 :
package cucumberTest;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "Feature"
,tags = "@LoginTests"
,glue={"src/stepDefinition"}
,dryRun = true
,monochrome = true
)
public class TestRunner {
}
내 문제는 내가 이클립스 IDE를 통해 Junit와 (V4.11)를 실행할 때, 테스트가 실행되지 않는다는 것입니다, 내가 시나리오를 말했다 얻고 단계가 정의되지 않았으며 문제를 해결하기위한 제안이 있습니다.
2 Scenarios (2 undefined)
6 Steps (6 undefined)
0m0.105s
You can implement missing steps with the snippets below:
Given("^User is on Home Page$",() -> {
//Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
그러나 나에게 제안 된 구문이 올바르지 않습니다. 왜 구문이 잘못되었고 왜 테스트가 실행되지 않는지에 대한 아이디어가 있습니까?