Не указаны наборы, классы, методы или jar-файл для одной цели, но не для другой цели в том же файле build.xml
Вот фрагмент из моего файла Build.xml.
Я получаю эту ошибку для цели run-arJob-invalid-card-tests, но не для run-arJob-happy-tests. Пожалуйста, дайте мне знать, что я делаю не так.
У меня есть еще 4 цели ниже в том же формате, и для всех я получаю ту же ошибку, кроме первой.
<?xml version="1.0"?>
<project name="PeriodicalsPrintJobTests-1.0" basedir="."
default="release" xmlns:ht="happytrails">
<property name="allow.empty.sources.dir" value="true" />
<import file="${happytrails.root}/happytrails.xml" />
<!-- Define HappierTrails property overrides here -->
<property name="tests.additional.jvmargs" value="" />
<property name="findbugs.failOnError" value="false" />
<property name="checkstyle.failOnError" value="false" />
<ht:import file="happier-trails.xml" />
<!-- For more information on targets and how to override them, see https://w.amazon.com/index.php/HappierTrails-3.0/Targets -->
<!-- Define HappierTrails property overrides here -->
<taskdef resource="testngtasks">
<classpath>
<pathelement
location="/brazil-pkg-cache/packages/TestNG/TestNG-6.x.201428.0/RHEL5_64/DEV.STD.PTHREAD/build/lib/TestNG-6.x.jar" />
</classpath>
</taskdef>
<target name="run-arJob-happy-tests" depends="release">
<testng haltonfailure="no" failureproperty="test.failed">
<classpath>
<pathelement path="${classes.dir}" />
<pathelement path="${testclasses.dir}" />
<pathelement path="${bp:run.classpath}" />
<pathelement path="${bp:testrun.classpath}" />
<pathelement path="${classpath}" />
</classpath>
<xmlfileset dir="${basedir}"
includes="configuration/Tests/ARHappyOrderScenario.xml" />
<jvmarg value="-DorderNumber=903-5317016-0661468" />
<jvmarg value="-DtoAddress=groankit@amazon.com" />
<jvmarg value="-DfromAddress=groankit@amazon.com" />
<jvmarg value="-DccAddress=groankit@amazon.com" />
</testng>
<copy todir="${output.dir}/brazil-unit-tests">
<fileset dir="test-output">
</fileset>
</copy>
<fail message="Test failure detected, check test results." if="test.failed" />
</target>
<target name="run-arJob-incorrect-card-tests" depends="release">
<testng haltonfailure="no" failureproperty="test.failed">
<classpath>
<pathelement path="${classes.dir}" />
<pathelement path="${testclasses.dir}" />
<pathelement path="${bp:run.classpath}" />
<pathelement path="${bp:testrun.classpath}" />
<pathelement path="${classpath}" />
</classpath>
<xmlfileset dir="${output.dir}"
includes="configuration/Tests/ARIncorrectCardOrderScenario.xml" />
<jvmarg value="-DOrderNumber=902-5140430-0411021" />
<jvmarg value="-DtoAddress=groankit@amazon.com" />
<jvmarg value="-DfromAddress=groankit@amazon.com" />
<jvmarg value="-DccAddress=groankit@amazon.com" />
</testng>
<copy todir="${output.dir}/brazil-unit-tests">
<fileset dir="test-output">
</fileset>
</copy>
<fail message="Test failure detected, check test results." if="test.failed" />
</target>