Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Logging 在SeleniumWebDriver中通过ant构建运行测试用例时,未生成日志_Logging_Ant_Selenium Webdriver - Fatal编程技术网

Logging 在SeleniumWebDriver中通过ant构建运行测试用例时,未生成日志

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

当测试用例通过SeleniumWebDriver中的AntBuild运行时,不会生成日志,但是如果相同的测试用例通过testng正常运行,那么日志工作正常。请为这个问题提供一些解决方案。


  <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">