Powered by Zoomin Software. For more details please contactZoomin

OpenEdge ABL API Reference

OpenEdge.ABLUnit.Writer.JUnitXmlWriter

  • Last Updated: November 12, 2026
  • 3 minute read
    • OpenEdge
    • Version 13.1
    • Documentation
Namespace: OpenEdge.ABLUnit.Writer
Type: Class JUnitXmlWriter
Parent Classes:
Inherits: OpenEdge.ABLUnit.Writer.ResultsWriter


Copyright (c) 2026 by Progress Software Corporation. All rights reserved.
File:JUnitXmlWriter
Purpose:Writes a test run's output to a JUnit-complete XML format
Description:Represents the XML format expected by JUnit Complete for parsing
Created:2026-08-11
Notes:* The format of the XML is per the more strict Apache Ant JUnit schema:
https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd



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 */
  AddTestCase (handle, TestEntity, handle) /* Creates the <testcase> tag element for every test method or test procedure. This method processes test results in two stages: 1. Loop through all individual results and add child elements (<failure>, <error>, <skipped>) 2. Add <skipped> elements for tests that never ran (NotStarted or no results) @param handle An X-NODEREF @param TestEntity The entity for which to write results @param handle The parent X-NODEREF */
  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 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 CreateTestSuiteElement (TestEntity, handle, character, logical) /* Creates a testsuite element with common attributes @param TestEntity The entity being written @param handle The parent XML node @param character The name for the testsuite @param logical Whether to include the time attribute @return handle The created testsuite node */
  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 */
  CHARACTER FormatPackageName (character) /* Formats an absolute file path as a package name @param character The absolute file path @return character The formatted package name (dot-separated) */
  HANDLE WriteXml (TestEntity) /* Writes the TestEntity as XML @param TestEntity The test to write (root) @return handle The XML document (X-DOC) */

Method Detail
Top

AddChildEntities (TestEntity, handle)

/* Writes the details of a particular test case into the given handle
Parameters:
poEntity OpenEdge.ABLUnit.Model.TestEntity
 
phParentNode HANDLE
 
Top

AddTestCase (handle, TestEntity, handle)

/* Creates the <testcase> tag element for every test method or test procedure.
This method processes test results in two stages:
1. Loop through all individual results and add child elements (<failure>, <error>, <skipped>)
2. Add <skipped> elements for tests that never ran (NotStarted or no results)
Parameters:
phNode HANDLE
 
poEntity OpenEdge.ABLUnit.Model.TestEntity
 
phParentNode HANDLE
 
Top

HANDLE CreatePropertiesElement (handle)

/* Creates a properties element, which has some runtime properties added
Parameters:
phXmlDoc HANDLE
 
Returns HANDLE
  handle The <properties> element
Top

HANDLE CreateSkippedElement (handle, character)

/* Adds a 'skipped' element with a message attribute
Parameters:
phXmlDoc HANDLE
 
pcMessage CHARACTER
 
Returns HANDLE
  handle The 'skipped' element
Top

HANDLE CreateTestSuiteElement (TestEntity, handle, character, logical)

/* Creates a testsuite element with common attributes
Parameters:
poEntity OpenEdge.ABLUnit.Model.TestEntity
 
phParentNode HANDLE
 
pcName CHARACTER
 
plIncludeTime LOGICAL
 
Returns HANDLE
  handle The created testsuite node
Top

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'.
Parameters:
phXmlDoc HANDLE
 
poResult OpenEdge.ABLUnit.Results.TestTestResult
 
pcNodeName CHARACTER
 
Returns HANDLE
  handle The newly-populated/created trace
Top

CHARACTER FormatPackageName (character)

/* Formats an absolute file path as a package name
Parameters:
pcPath CHARACTER
 
Returns CHARACTER
  character The formatted package name (dot-separated)
Top

HANDLE WriteXml (TestEntity)

/* Writes the TestEntity as XML
Parameters:
poTestEntity OpenEdge.ABLUnit.Model.TestEntity
 
Returns HANDLE
  handle The XML document (X-DOC)


Alert