I have a xml function that is called at the end of my job. It calls
STAXUtilQueryAllTests to email a result.
<call function="'STAXUtilQueryAllTests'"/>
<script>[rc, result, totals, testcases] = STAXResult</script>
<script>[totalTests, totalPasses, totalFails] = totals</script>
<call function="'STAXUtilLogAndMsg'">
'Total Testcases: %s, Total Passes: %s, Total Fails: %s\nTestcases: %s' % \
(totalTests, totalPasses, totalFails, testcases)
</call>
<script>
from com.ibm.staf import STAFUtil
emailServiceMachine = 'local'
emailTo = 'm...@myself.com'
emailMessage = ('%s Started %s %s Completed Passed %s Failed %s %s' % \
(STAXJobLogName,STAXJobStartDate,STAXJobStartTime,totalPasses,totalFails,))
</script>
I'd like to be able to also email the JobLog output as this contains
details of any failures. What's the best way to go about doing this?
What would be better if I was able to only grab level = 'fail' out of
the JobLog.
Any recommendations appreciated.
Thanks,
Matt
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users