Използвам Selenium WebDriver + TestNG с java в Eclipse. Искам да генерирам по-добър отчет с помощта на ReportNG, а не с нормален отчет TestNG. Конфигурирах пътя за изграждане с reportng-1.1.2.jar и velocity-dep-1.4.jar. Също така деактивирах доклада за TestNG по подразбиране от Project > Properties > TestNG > „Disable Default Listeners” В момента създадох файл testNg.xml, който изпълнява моите тестове като пълен тестов пакет. Съдържанието на xml файла е както следва:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" preserve-order="true" name="testingXML" junit="false" parallel="false" annotations="JDK">
<test verbose="2" name="com.src.com.pcrm.pageobjects.*" junit="false" annotations="JDK">
<testng classpathref="/bgtest-path"
outputdir="${test-results.dir}"
haltonfailure="true"
useDefaultListeners="false"
listeners="org.uncommons.reportng.HTMLReporter,org.uncommons.reportng.JUnitXMLReporter">
<xmlfileset dir="." includes="testng.xml"/>
<sysproperty key="org.uncommons.reportng.title" value="My Test Report"/>
</testng>
<classes>
<class name="com.pcrm.pageobjects.HomeTest"/>
<methods>
<include name="testManadatoryFieldsOnHomePage"/>
<include name="testIsLogoDisplayed"/>
<include name="testUrlCheck"/>
</methods>
Но когато изпълних този xml файл, той не генерира отчети ReportNG. какво не е наред Помощта се оценява.