Logging 在SeleniumWebDriver中通过ant构建运行测试用例时,未生成日志
当测试用例通过SeleniumWebDriver中的AntBuild运行时,不会生成日志,但是如果相同的测试用例通过testng正常运行,那么日志工作正常。请为这个问题提供一些解决方案。Logging 在SeleniumWebDriver中通过ant构建运行测试用例时,未生成日志,logging,ant,selenium-webdriver,Logging,Ant,Selenium Webdriver,当测试用例通过SeleniumWebDriver中的AntBuild运行时,不会生成日志,但是如果相同的测试用例通过testng正常运行,那么日志工作正常。请为这个问题提供一些解决方案。 <target name="testngRun"> <taskdef classpathref="classpath" resource="testngtasks"/> <testng classpathref="classpath" haltO
<target name="testngRun">
<taskdef classpathref="classpath" resource="testngtasks"/>
<testng classpathref="classpath" haltOnfailure="false" outputDir="${testNGreport}"> <!-- Are you adding this property? -->
<xmlfileset dir="." includes="testng.xml"/>
</testng>
</target>
将允许您将结果存储在特定位置。
如果希望以标准格式存储结果(测试输出)
只需在上面一行回复:
<testng classpathref="classpath" haltOnfailure="false" outputDir="test-output">