|
Options |
Name |
Purpose |
|
|
|
OpenEdge.Core.Collections.Array BuildAnnotationInfo (JsonObject)
|
/* Create an Array of AnnotationInfo objects from the JSON data
@param JsonObject The annotation JSON data
@return Array An array of annotation data. Will always be a valid object */
|
|
|
|
CHARACTER BuildAttributeValue (character, JsonObject)
|
/* Builds the attribute value, as ABLUnit expects it "value,value2" etc
The annotation data format is
"anno-name" :
{"x": "y"} // x=y split up
{"x": ["p", "q"]} // x=y split up
null // no parens in source
@param character The attribute name. If blank or null, the null string is returned
@param JsonObject The annotation data. If invalid, the null string is returned
@return character The attribute value, joined together */
|
|
|
|
OpenEdge.ABLUnit.Reflection.TypeInfo BuildTypeInfo (character, character)
|
/*------------------------------------------------------------------------------
Generates the procedure information in xref xml file
@param character The ABL program (.P, .CLS, or .R) file name
@return TypeInfo Unit test type info about the program
------------------------------------------------------------------------------*/
|
|
|
|
FindXrefFiles ()
|
This method will locate any local XREF files if configured to do so.
|
|
|
|
CHARACTER GetFullPathname (character)
|
This method will return the full path of a given file.
|
|
|
|
CHARACTER getRelativePathOfClasses (character)
|
/**
returns the relative path of the classes if the input is of qualified type.
**/
|
|
|
|
CHARACTER GetXRefFile (character, character)
|
/*------------------------------------------------------------------------------
This method should return a valid XREF path which physically exists on disk. As
XREF files can be created using different patterns for file extensions (based
on how the file was compiled), we need to create a couple of standard candiate
filenames using the expected file extension. The order for locating a valid XREF
file will use the following steps:
1. Use the given test case (type: class or procedure) replacing the file extension:
1a. Create a candidate filename using a common pattern for the PCTCompile task.
1b. Create a candidate filename using a common pattern for PDSOE/Explicit naming.
2. Search for a matching XREF filename in a list of potential, available files.
3. Return ? if no matching XREF file was located.
@param character The test case being examined for addition to ABLUnit
@param character The expected type of test case (class or proc[edure])
@return character The located XREF file (or ? if not found)
------------------------------------------------------------------------------*/
|
|
|
|
HandleTestSuiteClasses (TestEntity, character)
|
|
|
|
|
HandleTestSuiteProcedures (TestEntity, character)
|
|
|
|
|
LONGCHAR loadSerializedTree (TestEntity)
|
/*------------------------------------------------------------------------------
load serialized tree
------------------------------------------------------------------------------*/
|
|
|
|
OpenEdge.ABLUnit.Reflection.TypeInfo ParseXMLDocument (character)
|
/*------------------------------------------------------------------------------
Parses the XREF XML file for Test Methods and Procedures
------------------------------------------------------------------------------*/
|
|
|
|
OpenEdge.ABLUnit.Model.TestEntity populateTestModel (character, integer)
|
/*------------------------------------------------------------------------------
Runs the corresponding method based on the type of the testcase.
------------------------------------------------------------------------------*/
|
|
|
|
populateTestModel (character, integer, TestEntity)
|
/*------------------------------------------------------------------------------
populates the model based on the test input. looks at all the relavant test methods,internal procedures in the test input.
------------------------------------------------------------------------------*/
|
|
|
|
populateTestModelForInternalProcs (handle, character, ProcedureAnnotationInfo, TestInfo, logical, TestEntity)
|
|
|
|
|
populateTestModelForProcedureType (character, character, TestEntity)
|
/*------------------------------------------------------------------------------
Given a test procedure and test internal procedure, this method will store and
run the test procedures and calls a method which writes the results in the xml file
Notes:
------------------------------------------------------------------------------*/
|
|
|
|
populateTestModelForTestCase (character, character, TestEntity)
|
/*------------------------------------------------------------------------------
Compiles and call the corresponding method or internal procedure to run the testcase
------------------------------------------------------------------------------*/
|
|
|
|
populateTestModelForTestClass (character, character, TestEntity)
|
/*------------------------------------------------------------------------------
Given a testclass and test method, this method will store and
run the test methods and calls a method which writes the results in the xml file
------------------------------------------------------------------------------*/
|
|
|
|
populateTestModelForTestFolder (character, TestEntity)
|
/*------------------------------------------------------------------------------
populates the test model for the ABL Unit files inside the testfolder
------------------------------------------------------------------------------*/
|
|
|
|
populateTestModelForTestMethod (Object, character, ClassAnnotationInfo, TestInfo, logical, TestEntity)
|
|
|
|
|
populateTestModelForTestSuite (TestInfo, TestEntity)
|
/*
Iterates through all the test cases in the TestSuite annotations
*/
|
|
|
|
ProcessTestResult (TestEntity, TestTypeResult)
|
/* Processes a test entity's TestResult based on status
@param TestEntity The entity to process
@param TestTypeResult The summary to which this result aggregates */
|
|
|
|
RecurseDir (character, character)
|
This method will recurse into a directory and build a TT structure.
|
|
|
|
RunTests ()
|
This method runs the tests that are passed as JsonObject.
|
|
|
|
OpenEdge.ABLUnit.Results.TestTypeResult runtests (TestEntity, character)
|
/* Runs a TestEntity and aggregates results
@param TestEntity The entity being run (class/method/suite/root)
@param character The ABLUnit output file (not results.xml)
@return TestTypeResult The aggregate result for this test entity */
|
|
|
|
INTEGER ScoreMatches (Array, Array)
|
Produce a score for 2 files based on the # of matching directories.
|
|
|
|
updateFile (character, longchar, logical)
|
/*------------------------------------------------------------------------------
writes to the update file the given content. If override is true, the file is overwritten.
------------------------------------------------------------------------------*/
|
|
|
|
UpdateIgnoreDetails (TestTestResult, TestEntity, character, TestTypeResult)
|
|
|
|
|
updateStackTrace (Error, character, character)
|
/*------------------------------------------------------------------------------
updates stack trace with the given error in the given file
------------------------------------------------------------------------------*/
|
|
|
|
updateStackTrace (Stop, character, character)
|
/* Writes a stack trace for a stop condition
@param Progress.Lang.Stop THe stop condition
@param character The file into which to write
@param character The ID of the test entity */
|
|
|
|
updateStackTraceProperty ()
|
|