2017-09-05 1 views
1

는 같은 프로젝트 을 통해 내가 오이 받는다는 프로젝트를 사용하고에 결과 파일의 실행 및 생성 후 결과 파일을 읽을 수있는 방법이있다 읽어 오이 결과 파일

@RunWith(Cucumber.class) @CucumberOptions(features = "src/test/resources/Feature", glue = { "stepDefinition" }, plugin = { "pretty", "json:target/sample.json" }, monochrome = true) 

MVN 깨끗한 테스트

+0

질문은 무엇을 작성되기 전에

SomeClass.class.getProtectionDomain().getCodeSource().getLocation().getPath().getParentPath()+"/sample.json" 

또는 보고서를 읽고, json으로 기자를 연장 할 수 있습니까? – juzraai

답변

0

대상 디렉토리에서 파일을 읽을 수 있습니다. 이