问题描述
我有一对夫妇通过Bitovi写在funcunit测试和后,终于让他们与phantomjs工作,我很想在一个詹金斯工作自动化。
这实际上媒体链接的作品,但我需要一种方法来可视化我的tesresults,让我读,它应该是可能的的xUnit插件詹金斯,但不要紧,什么类型的测试图案的我设置它,它或者说,它是空的或者它不是一个有效的XML。
下面你会发现我执行运行测试包的命令,并从XML文件
如果有人可以帮助我如何让这个节目,他的结果,我将非常感激,你可以对我有一个虚拟的啤酒!
干杯;)
命令:
CD / D D:\\詹金斯\\ \\工作funcunit测试\\ workspace下的\\ src \\主\\ web应用
调用JS funcunit /开/ phantomjs的http://本地主机:8080 / qunit / BudgetTest.html退房手续testresult.xml
COPY D:\\詹金斯\\工作\\ funcunit测试\\ workspace下的\\ src \\主\\ web应用程序\\ testresult.xml D:\\詹金斯\\工作\\ funcunit测试\\工作区\\ testresult.xml
XML:
<?XML版本=1.0编码=UTF-8&GT?;
<&测试包GT;
<测试套件时间=70.448测试=13错误=0失败=0的断言=115NAME =回归测试阶段1 - 预算>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Wijzigen simulatiegegevens - 后退按钮/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Bedrijfswagen electrische aandrijving/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Creatie fictieve werknemer/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =额外的信息BIJ参数/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Foutmelding maaltijdcheques/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Scherm betalingen Niet的东燃/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Selectie bestaande / fictieve卷宗overslaan VOOR boekhouder/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =标签effectieve uren/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =2 aanvragen呐elkaar +面包屑/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Simulatiegegevens aanpassen - Wettelijk samenwonen/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Simulatiegegevens wijzigen - Voltijdse arbeidsduur/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Simulatiegegevens wijzigen - Negatieve bedragen/>
< TestCase类=QUnit.phantomjs:回归测试阶段1 - 预算NAME =Loonsimulatie anuleren - werknemers Niet的geselecteerd/>
< /测试套件>
< /测试包>
毕竟这是一个funcunit故障类不在测试用例属性它必须识别TestClass,
我在funcunit修改output.js写类名和它的所有工作。此外,我已经提交了错误的开发人员和他们如何解决它,所以希望在futer释放它会消失:)
I have a couple of tests written in funcunit by Bitovi, and after finally getting them to work with phantomjs I would love to automate it in a Jenkins job.
This actually allready works but I need a way to visualize my tesresults, so I read that it should be possible with the XUnit plugin for Jenkins, but it doesn't matter to what type of test patter I set it, it either says it's empty or it's not a valid xml.
Below you'll find the command I execute for running the testsuite and the results from the xml file
If anyone could help me out how to let this show he results I would be really grateful and you can have a virtual beer on me!!!
Cheers ;)
COMMAND:
cd /D D:\Jenkins\jobs\funcunit-testing\workspace\src\main\webapp
call js funcunit/open/phantomjs http://localhost:8080/qunit/BudgetTest.html -out "testresult.xml"
COPY D:\Jenkins\jobs\funcunit-testing\workspace\src\main\webapp\testresult.xml D:\Jenkins\jobs\funcunit-testing\workspace\testresult.xml
XML:
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite time="70.448" tests="13" errors="0" failures="0" assertions="115" name="Regression tests Phase 1 - Budget">
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Wijzigen simulatiegegevens - back button" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Bedrijfswagen electrische aandrijving" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Creatie fictieve werknemer" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Extra info bij parameters" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Foutmelding maaltijdcheques" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Scherm betalingen niet tonen" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Selectie bestaande/fictieve dossiers overslaan voor boekhouder" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Labels effectieve uren" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="2 aanvragen na elkaar + breadcrumb" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Simulatiegegevens aanpassen - Wettelijk samenwonen" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Simulatiegegevens wijzigen - Voltijdse arbeidsduur" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Simulatiegegevens wijzigen - Negatieve bedragen" />
<testcase class="QUnit.phantomjs:Regression tests Phase 1 - Budget" name="Loonsimulatie anuleren - werknemers niet geselecteerd" />
</testsuite>
</testsuites>
Afterall it was a funcunit fault class isn't a property in testcase it has to be testclass,I've modified output.js in funcunit to write classname and it all worked. Also I've filed a bug with the developers and how they can fix it so hopefully in futer releases it'll be gone :)
这篇关于用的xUnit詹金斯结果整合funcunit不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!