0

我的目标是在 Jenkins 上运行 TestBox 脚本。但是使用 https://testbox.ortusbooks.com/content/running_tests/ant_runner.html
中的 Ant 脚本 作为模板,我得到了这个错误

BUILD FAILED C:\public\data\trunk\AutomatedTesting\Box_Unit_Tests\build.xml:38:对实体“bundles”的引用必须以 ';' 结尾 分隔符。

使用此脚本:

<?xml version="1.0" encoding="UTF-8"?>
<project name="testbox-ant-runner" default="init" basedir=".">

     <!-- THE URL TO THE RUNNER, PLEASE CHANGE ACCORDINGLY-->
     <property name="basedir"             value="C:\public\data\trunk\AutomatedTesting\Box_Unit_Tests" />
     <property name="url.runner"        value="C:\public\data\ColdBox\testbox\test-harness\runner.cfm?"/>
     <!-- FILL OUT THE BUNDLES TO TEST, CAN BE A LIST OF CFC PATHS -->
     <property name="test.bundles"      value="http://localhost/application/testing/TestBox/Hello.cfc?method=runRemote" />
     <!-- FILL OUT THE DIRECTORY MAPPING TO TEST -->
     <property name="test.directory"    value="test.specs" />
     <!-- FILL OUT IF YOU WANT THE DIRECTORY RUNNER TO RECURSE OR NOT -->
     <property name="test.recurse"      value="true" />
     <!-- FILL OUT THE LABELS YOU WANT TO APPLY TO THE TESTS -->
     <property name="test.labels"       value="" />
     <!-- FILL OUT THE TEST REPORTER YOU WANT, AVAILABLE REPORTERS ARE: ANTJunit, Codexwiki, console, dot, doc, json, junit, min, raw, simple, tap, text, xml -->
     <property name="test.reporter"     value="simple" />
     <!-- FILL OUT WHERE REPORTING RESULTS ARE STORED -->
     <property name="report.dir"        value="${basedir}\results" />
     <property name="junitreport.dir"   value="${report.dir}\junitreport" />

     <target name="init" description="Init the tests">
          <mkdir dir="${junitreport.dir}" />
          <tstamp prefix="start">
               <format property="TODAY" pattern="MM-dd-YYYY hh:mm:ss aa"/>
          </tstamp>
          <concat destfile="${report.dir}\Latestrun.log">Tests ran at ${start.TODAY}</concat>
     </target>

    <target name="run">
        <get dest="${report.dir}/results.html"
             src="${url.runner}&bundles=${test.bundles}&reporter=${test.reporter}"
             verbose="true"/>

        <-- Create fancy junit reports -->
      <junitreport todir="${junitreport.dir}">
           <fileset dir="${report.dir}">
                <include name="TEST-*.xml"/>
           </fileset>
           <report format="frames" todir="${junitreport.dir}">
                <param name="TITLE" expression="My Awesome TestBox Results"/>
           </report>
      </junitreport>
    </target>

</project>

有什么想法吗?

4

0 回答 0