2014-04-21 2 views
-1

터미널에서 셀렌 명령을 실행할 때 (예 : ant 테스트 셀렌 -i 기능). 나는 다음과 같은 얻을 오류터미널에서 셀렌 명령을 실행할 때 다음 오류가 발생합니다.

[javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:15: package org.openqa.selenium does not exist 
    [javac] import org.openqa.selenium.*; 
    [javac]^
    [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:16: package org.openqa.selenium does not exist 
    [javac] import org.openqa.selenium.By; 
    [javac]       ^
    [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:17: package org.openqa.selenium does not exist 
    [javac] import org.openqa.selenium.Alert; 
    [javac]       ^
    [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:18: package org.openqa.selenium.firefox does not exist 
    [javac] import org.openqa.selenium.firefox.FirefoxDriver; 
    [javac]         ^
    [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:19: package org.openqa.selenium.support.ui does not exist 
    [javac] import org.openqa.selenium.support.ui.Select; 
    [javac]         ^
    [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:24: cannot find symbol 
    [javac] symbol : class WebDriver 
    [javac] location: class com.sapienter.jbilling.selenium.sanity.JBillingSanityTest 
    [javac] private WebDriver driver; 
    [javac]   ^
    [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:31: cannot find symbol 
    [javac] symbol : class FirefoxDriver 
    [javac] location: class com.sapienter.jbilling.selenium.sanity.JBillingSanityTest 
    [javac]  driver = new FirefoxDriver(); 
    [javac]    ^
    [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/server/payment/WSTest.java:317: cannot find symbol 
    [javac] symbol : variable STATUS_SUSPENDED 
    [javac] location: class com.sapienter.jbilling.server.user.UserDTOEx 
    [javac]    user.setStatusId(UserDTOEx.STATUS_SUSPENDED); 
    [javac]          ^
    [javac] Note: Some input files use or override a deprecated API. 
    [javac] Note: Recompile with -Xlint:deprecation for details. 
    [javac] 8 errors 

BUILD FAILED 
/home/jbilling/jbilling-4/enterprise/build.xml:122: The following error occurred while executing this line: 
/home/jbilling/jbilling-4/enterprise/build.xml:185: Compile failed; see the compiler error output for details. 

Total time: 12 seconds 

내가 testlib 폴더 안에 셀레늄 자바 2.40.0.jar, 셀레늄 - 서버 - 독립 - 2.40.0.jar를 삽입 한.

제발, 아무도 내게이 문제에 대한 해결책을 말해 줄 수 있습니까?

+0

당신의 질문은 거의 읽을 수 없습니다. 이를 향상시키기 위해 서식 옵션을 사용하십시오. –

+0

항아리가 클래스 패스에 있는지 확인하십시오. – xyz

+0

Hello @karna 모든 항아리가 classpath에 있습니다. –

답변

0

은 maven처럼으로 보입니다. 그러나 태그로 지정하지 않았습니다.

당신은 당신의 selenium-java/selenium-api 의존성이 있는지 확인해야합니다 (그렇지 않은 경우에, 나는 편집 /이 질문을 삭제합니다) 적절한 <scope>...</scope>

-1
javac -cp "C:\selenium-2.42.2\selenium-java-2.42.2.jar;selenium-server-standalone-2.42.2.j‌​‌​ar" Test.java 

java -cp "C:\selenium-2.42.2\selenium-java-2.42.2.jar;.;selenium-server-standalone-2.42.2‌​‌​.jar" Test 

테스트 자바 파일 이름

관련 문제