Error! 'if ($testNgXslt.testDetailsFilter) then $testNgXslt.testDetailsFilter else 'FAIL,PASS,SKIP''

来源:互联网 发布:淘宝可以相似图片搜索 编辑:程序博客网 时间:2024/05/17 23:55
Buildfile: D:\develop\0822TestAuto\TestAutomation\build.xml
setClassPath:
init:
runTestNG:
     [echo] Running testng......
   [testng] [TestNG] Running:
   [testng]   D:\develop\0822TestAuto\TestAutomation\src\TestNG.xml
   [testng] yes,it's test1!!!
   [testng] yes,it's test2!!
   [testng] ===============================================
   [testng] Suite
   [testng] Total tests run: 1, Failures: 0, Skips: 0
   [testng] ===============================================
mail:
     [xslt] Processing D:\develop\0822TestAuto\TestAutomation\test-output\testng-results.xml to D:\develop\0822TestAuto\TestAutomation\test-output\index.html
     [xslt] Loading stylesheet D:\develop\0822TestAuto\TestAutomation\test-output\testng-results.xsl
     [xslt] : Error! 'if ($testNgXslt.testDetailsFilter) then $testNgXslt.testDetailsFilter else 'FAIL,PASS,SKIP'' 中的语法错误。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 22: 对 XPath 表达式 'if ($testNgXslt.testDetailsFilter) then $testNgXslt.testDetailsFilter else 'FAIL,PASS,SKIP'' 进行语法分析时出错。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 22: 缺少所需属性 'select'。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 13: <xsl:output> 元素的 method 属性具有值 'xhtml'。该值必须是 'xml', 'html', 'text' 或 qname-but-not-ncname 之一
     [xslt] : Error! 'if (suite/@url) then document(suite/@url)/suite else suite' 中的语法错误。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 227: 对 XPath 表达式 'if (suite/@url) then document(suite/@url)/suite else suite' 进行语法分析时出错。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 227: 缺少所需属性 'select'。
     [xslt] : Error! 'if (test/@url) then document(test/@url)/test else test' 中的语法错误。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 516: 对 XPath 表达式 'if (test/@url) then document(test/@url)/test else test' 进行语法分析时出错。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 516: 缺少所需属性 'select'。
     [xslt] : Error! 'if (compare($sortByStartTime, 'true') = 0) then @started-at else ''' 中的语法错误。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 725: 对 XPath 表达式 'if (compare($sortByStartTime, 'true') = 0) then @started-at else ''' 进行语法分析时出错。
     [xslt] : Error! 'if (compare($testNgXslt.sortTestCaseLinks, 'true') = 0) then @name else ''' 中的语法错误。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 842: 对 XPath 表达式 'if (compare($testNgXslt.sortTestCaseLinks, 'true') = 0) then @name else ''' 进行语法分析时出错。
     [xslt] : Error! 'null' 中的语法错误。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 846: 对 XPath 表达式 'null' 进行语法分析时出错。
     [xslt] : Error! 'if ($totalCount > 0) then format-number($passedCount div $totalCount, '###%') else '100%'' 中的语法错误。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 932: 对 XPath 表达式 'if ($totalCount > 0) then format-number($passedCount div $totalCount, '###%') else '100%'' 进行语法分析时出错。
     [xslt] : Error! file:/D:/develop/0822TestAuto/TestAutomation/test-output/testng-results.xsl: line 932: 缺少所需属性 'select'。
     [xslt] : Fatal Error! 无法编译样式表
     [xslt] Failed to process D:\develop\0822TestAuto\TestAutomation\test-output\testng-results.xml


BUILD FAILED
D:\develop\0822TestAuto\TestAutomation\build.xml:12: The following error occurred while executing this line:
D:\develop\0822TestAuto\TestAutomation\build.xml:27: The following error occurred while executing this line:
D:\develop\0822TestAuto\TestAutomation\build.xml:33: Fatal error during transformation


Total time: 2 seconds