Stax job to push back logs not running via RQM.
Archana Singh (1●3●3)
| asked Mar 15 '13, 5:45 a.m.
retagged Apr 04 '13, 10:25 a.m. by Lisa Caten (342●9●13)
I am trying to call a STAX Task via RQM which calls a STAX Job to execute a function namely "ExecuteTest". This function "ExecuteTest" has a stafcmd for pushing back the logs to requesting machine as follows:
<sequence>
<script>
from time import strftime # Only need to do once
import re
currTimestamp = strftime("%Y-%m-%d %H:%M:%S")
currTimestamp = re.sub('[\D]', '', currTimestamp)
logFile = currTimestamp+"buildDownload.log"
</script>
<!-- Use the STAF variables and resolve them at runtime instead of using hardcoded paths -->
<message>'Starting process ant -buildfile C:/DETestSuite/buildDownload/buildDownload.xml >>C:/DETestSuite/buildDownload/%s' % (logFile)</message>
<process name="'RemoteUnameProcess'">
<location>Host</location>
<command mode="'shell'">'ant -buildfile C:/DETestSuite/buildDownload/buildDownload.xml >>C:/DETestSuite/buildDownload/%s' % (logFile)</command>
<stdout>'~/temp.out'</stdout>
<stderr mode="'stdout'" />
<returnstdout />
</process>
<stafcmd>
<location>Host</location>
<service>'FS'</service>
<request>'COPY FILE C:/DETestSuite/buildDownload/%s TODIRECTORY C:/DETestSuite/logs ' % (logFile)</request>
</stafcmd>
<message>'Process execution over!'</message>
<message>STAXResult</message>
</sequence>
Now, this script runs fine outside RQM i.e. via STAXMonitor and copies the logs to the C:/DETestSuite/logs folder but when i run the same script via RQM the logs folder is not populated with the generated log.
Please help me to resolve this issue to the earliest.
Thanks.
|
One answer
Hi Archana,
Not sure if this helps but here is a link to the RQM STAF/STAX page: http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/index.jsp?topic=%2Fcom.ibm.rational.test.lm.doc%2Ftopics%2Fc_int_stafstax.html. |
Comments
Hi Archana
Rajat