antcall运行报错 BUILD FAILED D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web3/build.xml:18: antcall task call ing its own parent target. ant 运行报错 BUILD FAILED D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web3/build.xml:19: ant task calling a target that depends on its parent target 'test'.
d,不过从前者的结果看,是不能call its own。因此我将原target test一样考贝一份取名test2。
test: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree sUCcessfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test2: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test2: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test2: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test2: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test2: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
interval: [echo] sleep 5 seconds [echo] continue
test: [jmeter] Executing test plan: D:/ProgramFiles/jakarta-jmeter-2.1.1/mytest/web 3/web1.jmx [jmeter] Created the tree successfully [jmeter] Starting the test [jmeter] Tidying up ... [jmeter] ... end of run [echo] jmeter web1.jmx finished
<antcall target="test2"/> <!--ant antfile="build.xml"/--> </target> <!--for execute target test many times,copy the target test to target test2--> <target name="test2"> <taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>