1
오이클 플러그가 설치되어 있습니다. 나는 간단한 기능 파일을 가라데에 썼다. 오이 테스트로 이것을 실행하려고 할 때 필자는 빠진 단계를 구현하도록 요청 받았다. 전용 러너가있는 동일한 기능 파일을 실행할 때 문제없이 실행됩니다. 이것에 대해 도움을 요청하십시오. 나는 전용 주자이클립스에서 가라데로 작성된 기능 파일을 오이 기능으로 실행할 수 없습니다.
Scenario: Validate that the sample webservice is up and running
Given url sampleUrl
When method get
Then status 200
Scenario: Validate a Json key value pair from the received response
Given url sampleUrl
When method get
Then status 200
And match $.RestResponse.result contains {name: 'United States of America', alpha2_code: 'US', alpha3_code: 'USA' }
*** Console output
Feature: Test a sample RESTFUL webservice
15:05:10.725 INFO - Starting scenario: Validate that the sample webservice is up and running
15:05:10.725 INFO - Ending scenario: Validate that the sample webservice is up and running
15:05:10.741 INFO - Starting scenario: Validate a Json key value pair from the received response
#Test Scenarios
Scenario: Validate that the sample webservice is up and running # C:/Users/sxs8680/git/BDDCucumberJVM/src/test/java/com/thd/common/karatesupport/karatesample.feature:6
Given url sampleUrl
When method get
Then status 200
15:05:10.741 INFO - Ending scenario: Validate a Json key value pair from the received response
Scenario: Validate a Json key value pair from the received response # C:/Users/sxs8680/git/BDDCucumberJVM/src/test/java/com/thd/common/karatesupport/karatesample.feature:11
Given url sampleUrl
When method get
Then status 200
And match $.RestResponse.result contains {name: 'United States of America', alpha2_code: 'US', alpha3_code: 'USA' }
2 Scenarios (2 undefined)
7 Steps (7 undefined)
0m0.006s
You can implement missing steps with the snippets below:
Given("^url sampleUrl$",() -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
When("^method get$",() -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
Then("^status (\\d+)$", (Integer arg1) -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
Then("^match \\$\\.RestResponse\\.result contains {name: 'United States of America', alpha(\\d+)_code: 'US', alpha(\\d+)_code: 'USA' }$", (Integer arg1, Integer arg2) -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
Troubleshooting Cucumber IDE support는 너무 베드로 감사드립니다. 올바른 플러그인을 설치하고 프로젝트에서 가지고있는 의존성을 거의 제거하지 않으면 문제가 해결됩니다. – saravanan17