From: Sharon L. <lu...@us...> - 2007-08-15 22:56:33
|
As you noted, the <function-prolog>, <function-epilog>, descriptions for function arguments, etc elements are there so that you can create fully documented testcases using the STAXDoc tool. However, you can also write STAX service extensions to define additional elements. This is described in the STAX Extensions Developer's Guide at http://staf.sourceforge.net/current/staxdg.html. This document describes how you create extensions for STAX. Extensions to the STAX service can be written which define new elements that can be used in a STAX xml file. STAX service extensions are specified when registering the STAX service and the STAX DTD is dynamically generated when the STAX service is registered such that it includes the new elements. -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 Nathan Parrish <npa...@sp...> Sent by: sta...@li... 08/15/2007 05:48 PM To sta...@li... cc Subject [staf-users] extending stax DTD or otherwise having stax coexist with other XML tags I am in the fantastic position of starting from a greenfield to build out test infrastructure, and am pretty excited about what I can do with STAF/STAX (I evaluated it a year back at a previous position, but transitioning from the extant (crap) infrastructure was infeasible). I would love to be able to integrate STAF/STAX with testcase management, including things like having automated testruns automatically recording pass-fail results into a database. automatic recording of results seems indubitably doable, but I'd like to go one further and actually have testcase definition and implementation coupled into a single entity, i.e. an XML document which contains both a description of the testcase (coverage, hardware requirements, other classification) and the actual test definition in terms of a stax task. my question is whether there is an existing way to embed additional tags into a stax xml file (I know I could just hide stuff in a <!-- --> comment, but that creates problems sending the file through a standard XML processor). it seems like the <function-prolog> and staxdoc stuff points in the direction I want to go, but really I'd like to define an entity under, say <testcase>. another thought is creating a larger document that incorporates both the descriptive element and the stax element, and write some wrapper that extracts the stax element before submitting it. thanks in advance for any ideas or pointers in the right direction, nathan ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ staf-users mailing list sta...@li... https://lists.sourceforge.net/lists/listinfo/staf-users |