Hello

I am new to STAF/STAX and am trying to implement a job as a STAX function.
First of all, I should like to get error information when the function call
fails. So far I am testing by calling my function without its required
arguments, but I can't for the life of me figure out how to get at the
error.

My STAX job definition is as simple as this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "stax.dtd">
<stax>
  <defaultcall function="NoOp"/>
  <function name="NoOp">
    <function-list-args>
      <function-required-arg name="arg1"/>
    </function-list-args>
    <nop/>
  </function>
</stax>


I execute it with the command 'staf local stax EXECUTE FILE
C:/Users/knuarv/STAX/test.xml MACHINE local WAIT RETURNRESULT'. The
following information is then printed:
Response
--------
{
  Job ID         : 51
  Start Date-Time: 20101006-12:41:27
  End Date-Time  : 20101006-12:41:27
  Status         : Terminated
  Result         : org.python.core.pyinsta...@de9738
  Testcase Totals: {
    Tests : 0
    Passes: 0
    Fails : 0
  }
}


How do I get the error information? I can see that it's failed, given that
the Status is 'Terminated', but I need more detail.

Thanks,
Arve
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to