使用类加载器AntClassLoader找不到Ant CompileTask

时间:2018-12-14 04:04:57

标签: jenkins build ant

有人可以帮助解决这个问题吗?

/jenkins/workspace/prover_job/prover-testcases/ANT/build.xml:7:使用类加载器AntClassLoader无法找到taskdef类com.provar.testrunner.ant.CompileTask []

Build.xml file:

   <project default="runtests">
   <property environment="env"/>
   <property name="provar.home" value="provar-code/ant"/>
   <property name="testproject.home" value="../prover-testcases"/>
   <property name="testproject.results" value="../prover- 
          testcases/ANT/Results"/>

<taskdef name="Provar-Compile" classname="com.provar.testrunner.ant.CompileTask" classpath="${provar.home}/ant-provar.jar"/>
<taskdef name="Run-Test-Case" classname="com.provar.testrunner.ant.RunnerTask" classpath="${provar.home}/ant-provar.jar;${provar.home}/ant-provar-bundled.jar;${provar.home}/ant-provar-sf.jar"/>
<taskdef name="Test-Cycle-Report" classname="com.provar.testrunner.ant.TestCycleReportTask" classpath="${provar.home}/ant-provar.jar;${provar.home}/ant-provar-bundled.jar;${provar.home}/ant-provar-sf.jar"/>

<target name="runtests">

    <Provar-Compile provarHome="${provar.home}" projectPath="${testproject.home}"/>

    <Run-Test-Case provarHome="${provar.home}" 
            projectPath="${testproject.home}" 
            resultsPath="${testproject.results}" 
            resultsPathDisposition="Increment" 
            testEnvironment="" 
            webBrowser="Chrome" 
            webBrowserConfiguration="Full Screen" 
            excludeCallableTestCases="false" 
            salesforceMetadataCache="Reuse" 
            projectCachePath="../../.provarCaches" 
            testOutputlevel="WARNING" 
            pluginOutputlevel="WARNING"
            stopTestRunOnError="false"
            invokeTestRunMonitor="true"
            licensePath="C:\Users\prudhvi.raju.chintam\Provar\.licenses\Provar License.properties"
            >

        <fileset dir="../tests/SalesTEST"><include name="NAMUSER SP4 Opp Business process steps .testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation KAMUSER customer Launch Date as Future Date.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation KAMUSER customer Launch Date today.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation KAMUSER with Commite Approved date As future Date.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation KAMUSER with Commite Approved date As Today.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation KAMUSER.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation NAMUSER Commite Approval Date Futuredate.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation NAMUSER Commite Approval Date today.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation NAMUSER customer Launch Date Future date.testcase"/></fileset><fileset dir="../tests/SalesTEST"><include name="sprint4 Opp creation NAMUSER customer Launch Date today.testcase"/></fileset>

    </Run-Test-Case>

</target>

谢谢。

0 个答案:

没有答案