Namespace: OpenEdge.ABLUnit.Runner
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

PUBLIC CHARACTER GetResultsFile ()

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

PRIVATE Initialize ()

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


Constructor Detail
Top

PUBLIC TestConfig (JsonObject)

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


Property Detail
Top

PUBLIC CHARACTER outputFormat

Returns CHARACTER
Top

PUBLIC CHARACTER outputLocation

Returns CHARACTER
Top

PUBLIC LOGICAL quitOnEnd

Returns LOGICAL
Top

PUBLIC CHARACTER ResultsFileName

Returns CHARACTER
Top

PUBLIC LOGICAL showErrorMessage

Returns LOGICAL
Top

PUBLIC Progress.Json.ObjectModel.JsonArray testsJson

Returns Progress.Json.ObjectModel.JsonArray
Top

PUBLIC LOGICAL throwError

Returns LOGICAL
Top

PUBLIC LOGICAL useXref

Returns LOGICAL
Top

PUBLIC LOGICAL writeLog

Returns LOGICAL
Top

PUBLIC CHARACTER xrefExtension

Returns CHARACTER
Top

PUBLIC CHARACTER xrefLocation

Returns CHARACTER
Top

PUBLIC LOGICAL xrefThrowError

Returns LOGICAL


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0