``자바 스크립트 셋업 - 테스트 러너에서 스텝 정의가 실행되고 있지 않습니다. 주자 클래스, 기능 파일 및 단계 정의의 장소들의 첨부 된 스크린 샷을 찾아주세요 단지 테스트 러너에서 스텝 정의가 인식되지 않습니다.
package com;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import cucumber.api.PendingException;
import cucumber.api.java.After;
import cucumber.api.java.Before;
import cucumber.api.java.en.Given;
public class StepDefinition {
WebDriver driver;
@Before
public void setUp(){
driver=new FirefoxDriver();
}
@After
public void tearDown(){
driver.quit();
}
@Given("^Launch the application$")
public void loadUrl() throws Throwable {
driver.get("https://www.google.com");
throw new PendingException();
}
}
질문 영역 내의 단계 정의를 추가 분석을 위해 텍스트로 붙여 넣는 것을 고려하십시오. – DebanjanB
방금 URL을 시작합니다 : – Bitz
@Bitz 글루 옵션 값은 자바 패키지 측면에서 경로를 제공해야합니다. – Grasshopper