Namespace: OpenEdge.ABLUnit.Runner
Type: Class TestConfig
Parent Classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object


Copyright (c) 2013-2015,2020 by Progress Software Corporation. All rights reserved.
File:TestConfig
Author(s):psajja
Created:Wed Nov 20 15:56:07 IST 2013
Notes:The JSON format should be in the following format:
{
"options": {
"output": {
"location": "<path-to-results>", // default: present working directory
"fileName": "<file-name>", // default: results
"format": "<file-extension>" // default: xml
},
"quitOnEnd": <boolean>, // default: true
"writeLog": <boolean>, // default: false
"showErrorMessage": <boolean>, // default: true
"throwError": <boolean>, // default: false
"xref": {
"useXref": <boolean>, // default false
"xrefLocation": "<path-to-xref-files>", // default: same as source file (PWD/SRC)
"xrefExtension": "<file-extension>", // default: xref (PDSOE uses <file>.xref.xml)
"xrefThrowError": <boolean> // default: false
}
},
"tests": [
{
"test": "<class>.cls"
},
{
"test": "<procedure>.p"
},
{
"folder": "<path-to-tests>"
},
{
"test": "<class>.cls",
"cases": [
"<case-name>"
]
}
]
}
Current documentation can be found at the following location:
https://docs.progress.com/bundle/developer-studio-olh/page/Run-test-cases-from-the-command-prompt.html



Method Summary
  Options Name Purpose
  CHARACTER GetResultsFile () This method will return the results file name.
  Initialize () This method parses and initializes the properties from JSON config.

Constructor Summary
  Options Name Purpose
  TestConfig (JsonObject)

Property Summary
  Options Name Purpose
  CHARACTER outputFormat
  CHARACTER outputLocation
  LOGICAL quitOnEnd
  CHARACTER ResultsFileName
  LOGICAL showErrorMessage
  Progress.Json.ObjectModel.JsonArray testsJson
  LOGICAL throwError
  LOGICAL useXref
  LOGICAL writeLog
  CHARACTER xrefExtension
  CHARACTER xrefLocation
  LOGICAL xrefThrowError


Method Detail
Top

CHARACTER GetResultsFile ()

Purpose: This method will return the results file name.
Notes:
Returns CHARACTER
 
Top

Initialize ()

Purpose: This method parses and initializes the properties from JSON config.
Notes:


Constructor Detail
Top

TestConfig (JsonObject)

Purpose:
Notes:
Parameters:
inputJson Progress.Json.ObjectModel.JsonObject
 


Property Detail
Top

CHARACTER outputFormat

Returns CHARACTER
 
Top

CHARACTER outputLocation

Returns CHARACTER
 
Top

LOGICAL quitOnEnd

Returns LOGICAL
 
Top

CHARACTER ResultsFileName

Returns CHARACTER
 
Top

LOGICAL showErrorMessage

Returns LOGICAL
 
Top

Progress.Json.ObjectModel.JsonArray testsJson

Returns Progress.Json.ObjectModel.JsonArray
 
Top

LOGICAL throwError

Returns LOGICAL
 
Top

LOGICAL useXref

Returns LOGICAL
 
Top

LOGICAL writeLog

Returns LOGICAL
 
Top

CHARACTER xrefExtension

Returns CHARACTER
 
Top

CHARACTER xrefLocation

Returns CHARACTER
 
Top

LOGICAL xrefThrowError

Returns LOGICAL