I don't know if it would be faster if you used the STAF Ant Task or not as
I haven't run an ant script that submits STAF service requests the way you
are currently doing it. It would probably be best for you to try it out
and compare the performance (though my guess is that the there wouldn't be
a significant difference in performance).
Using the STAF Ant Task to submit the STAX EXECUTE request that you showed
could look similar to the following:
<taskdef name="staf"
classname="com.ibm.staf.ant.taskdef.STAF"/>
<target name="main">
<staf location="local"
service="STAX"
request="EXECUTE FILE ${qa.dir}${sep}${staxscript.file}
FUNCTION main ARGS
"'./TestSuite/${clientDir}/${propFileName}.properties'" JOBNAME
"${propFileName}" WAIT ${test.timeout} CLEARLOGS
${clear.stax.log} RETURNRESULT"
resultPrefix="staxexecute"/>
<echo>RC: ${staxexecute.rc}, Result: ${staxexecute.result}</echo>
</target>
See the STAF Ant Task User Guide at
http://staf.sourceforge.net/current/STAFAnt.htm for more information.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Tennis Smith <tennis_sm...@yahoo.com>
To: staf-users@lists.sourceforge.net,
Date: 03/23/2012 01:32 PM
Subject: [staf-users] Calling Directly Via Ant?
Hi,
I have inherited lots of legacy ant scripts which make staf/stax calls
like this:
<property name="CommandRun" value="local STAX EXECUTE FILE
${qa.dir}${sep}${staxscript.file} MACHINE local FUNCTION main ARGS "\
'./TestSuite/${clientDir}/${propFileName}.properties'" JOBNAME
"${propFileName}" WAIT ${test.timeout} CLEARLOGS
${clear.stax.log}"/>
<echo message="COMMAND RUN: ${CommandRun}"/>
<stopwatch name="test.timer" action="start"/>
<exec executable="staf.exe" resultproperty="result.out"><arg
line="${CommandRun}"/></exec>
It seems to make staf/stax much slower. Would test execution be any
faster if refactored to use the ant interface (STAFAnt.jar)? Would that be
a good idea, or is the above code the most efficient way to start
staf/stax tests from within ant?
--
Tks,
-Tennis
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users