Hi Royy,

Welcome to STAF/STAX.

You can redirect the output you get from a STAX GET RESULT request (or any 
other STAF service request) to a file to save it in a plain text format. 
Or, if you're submitting the STAX GET RESULT request via a program (e.g. 
Java, C/C++, Python, Perl, or Tcl), STAF provides APIs for each of these 
languages that allow you unmarshall the result string to convert it into a 
data structure, e.g. a map containing the various fields, with some fields 
being strings, lists, or a map) using the unmarshall function so that you 
could manipulate the data or transform it to whatever format you like. For 
more information, see the STAF User Guide for the language of your choice 
(e.g. "STAF Java User's Guide", "STAF Python User's Guide" "STAF Perl 
User's Guide") accessible via the STAF/STAX Documentation web page at 
http://staf.sourceforge.net/docs.php

The STAX job results are also provided in the STAX Job Log which can be 
accessed using the STAF LOG service to query the log.  Since the STAX Job 
Log is a STAF log, you could use a log utility provided by STAF to view or 
format STAF log files as talked about in section "9.0 Log Utilities" in 
the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDRUTILS.  For example, 
STAF provides a STAFLogFormatter Java class which can be used to format a 
STAX log (which is a binary file that has been created by the STAF Log 
service) as html or text.  For more detailed information on using the 
STAFLogFormatter Java class, see section "3.6.3 Class STAFLogFormatter" in 
the "STAF Java User's Guide" at 
http://staf.sourceforge.net/current/STAFJava.htm#Header_STAFLogFormatter.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   royy walls <ckn...@gmail.com>
To:     staf-users@lists.sourceforge.net, 
Date:   01/14/2014 04:10 PM
Subject:        [staf-users] STAX reporting.



Hello Experts,

I am new to STAF/STAX. I am trying to automate testcases using STAF/STAX.

I was able to write testcase and and was also able to execute it 
successfully.

Following the output I'm getting:-

{
  Job ID         : 2
  Start Date-Time: 20101028-14:39:49
  Stop Date-Time : 20101028-14:40:09
  Status         : Normal
  Result         : Success!
  Job Log Errors : []
  Testcase Totals: {
    Tests : 2
    Passes: 20
    Fails : 0
  }
  Testcases      : [
    {
      Testcase Name   : client1.Test1
      Passes          : 15
      Fails           : 0
      Start Date-Time : 20101028-14:39:49
      Elapsed Time    : 00:00:19
      Starts          : 1
      Status Date-Time: 20101028-14:40:08
      Last Status     : pass
      Information     :
      Testcase Stack  : [
        client1
        Test1
      ]
    }
    {
      Testcase Name   : client1.Test2
      Passes          : 5
      Fails           : 0
      Start Date-Time : 20101028-14:39:50
      Elapsed Time    : 00:00:17
      Starts          : 1
      Status Date-Time: 20101028-14:40:07
      Last Status     : pass
      Information     :
      Testcase Stack  : [
        client1
        Test2
      ]
    }
  ]
}


Now I need output of the testcase execution (above) in xml format or
any other presentable format (cvs etc).

Is there any way using which I can convert the testcase execution
output to some presentable format ?

Is STAX provides any facility so that I can get testcase execution
output into .xml or any other presentable format ?


Regards,
ROYY

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk

_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to