2016-07-27 1 views
0

여러 XML 파일을 실행 : 오류를 얻기셀레늄 - 코드보다 실행하는 경우 TestNG.xml

<?xml version="1.0" encoding="UTF-8"?> 
<suite name="ForEverGreen TestNG Suite" > 
    <suite-files> 
    <suite-file path="./testscript.xml" /> 
    <suite-file path="./email.xml" /> 
    </suite-files> 
</suite> 

:

Error: org.testng.TestNGException: java.lang.NullPointerException at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:341)

+0

는 제한된 정보와 함께 당신을 도울 수 ForEverGreen TestNG Suite와 같은 디렉토리에 testscript.xmlemail.xml를 넣어 –

답변

0

나는 당신의 suite-file path이 잘못 생각한다.

<?xml version="1.0" encoding="UTF-8"?> 
<suite name="ForEverGreen TestNG Suite" > 
    <suite-files> 
    <suite-file path="./testscript.xml" /> 
    <suite-file path="./email.xml" /> 
    </suite-files> 
</suite> 

당신은 시도하십시오 수 :

  1. 확실히 testscript.xmlemail.xml의 철자가 정확한지 확인?
  2. testscript.xml에서 ./를 제거하고 email.xml 당신이 우리에게이보다 더 말할 필요
관련 문제