OpenEdge.ABLUnit.Writer.ResultsWriter
- Last Updated: November 12, 2026
- 4 minute read
- OpenEdge
- Version 13.1
- Documentation
|
Method Summary
| Options | Name | Purpose | |
|---|---|---|---|
| AddChildEntities (TestEntity, handle) |
/**
* Writes the details of a particular test case into the given handle
*
* @param TestEntity The test entity being written
* @param handle The parent XML node
*/
|
||
| AddChildEntities (TestEntity, handle, ICollection) |
|
||
| AddTestCase (handle, TestEntity, handle) |
/**
* Creates the <testcase> tag element for every test method or test procedure.
*
* @param handle An X-NODEREF
* @param TestEntity The entity for which to write results
* @param handle The parent X-NODEREF
*/
|
||
| AddTestCase (handle, TestEntity, handle, ICollection) |
|
||
| HANDLE CreatePropertiesElement (handle) |
/**
* Creates a properties element, which has some runtime properties added
*
* @param handle The XML document the <properties> element is added to
* @return handle The <properties> element
*/
|
||
| HANDLE CreatePropertiesElement (handle, ICollection) |
|
||
| HANDLE CreateSkippedElement (handle, character) |
/**
* Adds a "skipped" element with a message attribute
*
* @param handle the X-DOC handle
* @param character A message string. If an unknonw string is send, no message attribute is added.
* @return handle The skipped element
*/
|
||
| HANDLE CreateSkippedElement (handle, character, ICollection) |
|
||
| HANDLE CreateTraceElement (handle, TestTestResult, character) |
/**
* Creates the trace element with the given name and result in the xml file . Applicable for both error and exception
* nodeName: the name of the node "error" or "failure".
*
* @param handle The XML document
* @param TestTestResult The test result
* @param character The name for this trace node (error/failure)
* @return handle The newly-populated/created trace
*/
|
||
| HANDLE CreateTraceElement (handle, TestTestResult, character, ICollection) |
|
||
| HANDLE CreateXmlDoc () |
/**
* Creates an X-DOCUMENT
*
* @param ICollection A collection to hold any X-DOC or X-NODEREF handles for cleanup after writing of the doc
* @return handle The newly created X-DOCUMENT handle
*/
|
||
| HANDLE CreateXmlDoc (ICollection) |
|
||
| HANDLE CreateXmlNode () |
/**
* Creates an X-NODEREF
*
* @return handle The newly created X-NODEREF handle
*/
|
||
| HANDLE CreateXmlNode (ICollection) |
|
||
| CHARACTER FormatDecimalValue (decimal) |
/**
* Formats a decimal value to a string with period as decimal separator
* This ensures XML schema compliance regardless of -NumDec parameter
*
* @param decimal The decimal value to format
* @return character The formatted string with period decimal separator
*/
|
||
| CHARACTER GetHostname () |
/**
* Gets the hostname for the current machine.
* Caches the value in a private class variable.
*
* @return character The hostname or localhost if unavailable
*/
|
||
| CHARACTER GetTimestamp () |
/**
* Generates an ISO8601 timestamp for the current date/time
*
* @return character Timestamp in format YYYY-MM-DDTHH:mm:ss
*/
|
||
| CHARACTER RemoveFileExtension (character) |
/**
* Removes any file extension from a given string, eg. removes ".r" from r-code file.
*
* @param character The string value from which to remove the extension
* @return character The string without the file extension
*/
|
||
| WriteToFile (character, TestEntity) |
/**
* Writes the test results in the xml file
*
* @param character The XML file name
* @param TestEntity The test to write (root)
*/
|
||
| LONGCHAR WriteToLongchar (TestEntity) |
/**
* Writes the test results to a longchar
*
* @param TestEntity The test to write (root)
* @return longchar The XML output, with a UTF-8 codepage
*/
|
||
| HANDLE WriteXml (TestEntity) |
/**
* Writes the TestEntity as XML
*
* @param TestEntity The test to write (root)
* @return handle The XML document (X-DOC)
*/
|
||
| HANDLE WriteXml (TestEntity, ICollection) |
|
Method Detail