Namespace: Consultingwerk.Studio.PackageReferences
Class 
PackageDependencyReport Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:PackageDependencyReport
Purpose:Looks for the dependencies present in a given fileset and compares them to expected dependencies
Author(s):Sebastian Wandel / Consultingwerk Ltd.
Created:Wed Sep 16 12:01:32 CEST 2020



Top Method Summary
Options Name Purpose
# CheckDependency (character, character, character) Checks whether a given filename is a legal dependency, if not it adds it to the report
+ GenerateReport () Generates the report from found dependencies
# CHARACTER GetFilenameFromTypeName (character) Returns the filename for a given typename
# Consultingwerk.Studio.ProparseApi.INode ParseFile (character) Parses a file, returning the top-node
# ParseMethodParamList (INode, character, character) Parses a node of type Method_param_list and adds classes passed as QSTRINGs to the found dependencies
# PopulateUsing (INode, table, integer) Populates the eUsing-table starting from a given node
# ProcessNode (INode, character) Processes a node recursively, looking for dependencies

Top Constructor Summary
Options Name Purpose
+ PackageDependencyReport (table, table, dataset) Constructor for the PackageDependencyReport class


Method Detail
Top

PROTECTED CheckDependency (character, character, character)

Purpose: Checks whether a given filename is a legal dependency, if not it adds it to the report
Notes: Ignores duplicates

Parameters:
pcTestcase CHARACTER
Class of the current testcase
pcFound CHARACTER
Name of the file to check
pcType CHARACTER
The type-attribute for a potential failure
Top

PUBLIC GenerateReport ()

Purpose: Generates the report from found dependencies
Notes:

Top

PROTECTED CHARACTER GetFilenameFromTypeName (character)

Purpose: Returns the filename for a given typename
Notes:

Parameters:
pcTypeName CHARACTER
The typename whoes filename is sought
Returns CHARACTER
The filename for pcTypeName
Top

PROTECTED Consultingwerk.Studio.ProparseApi.INode ParseFile (character)

Purpose: Parses a file, returning the top-node
Notes:

Parameters:
pcFilename CHARACTER
The name of the file to parse
Returns Consultingwerk.Studio.ProparseApi.INode
The files top-node
Top

PROTECTED ParseMethodParamList (INode, character, character)

Purpose: Parses a node of type Method_param_list and adds classes passed as QSTRINGs to the found dependencies
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
The Node of type Method_param_list
pcTestcase CHARACTER
Class of the current Testcase
pcClass CHARACTER
Name of the class whose methods param list is being parsed
Top

PROTECTED PopulateUsing (INode, table, integer)

Purpose: Populates the eUsing-table starting from a given node
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
The node from which to start
eUsing TEMP-TABLE eUsing
The temp-table to populate
piSequence INTEGER
Starting number for the sequence field of the tamp-table
Top

PROTECTED ProcessNode (INode, character)

Purpose: Processes a node recursively, looking for dependencies
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
The current Node
pcTestcase CHARACTER
Class of the current testcase


Constructor Detail
Top

PUBLIC PackageDependencyReport (table, table, dataset)

Purpose: Constructor for the PackageDependencyReport class
Notes: Binds to the temp-tables and the dataset and ensures the ConfigurationProvider is available

Parameters:
Package_ttFileNames TEMP-TABLE Package_ttFileNames
Temp-table with the files in the package
Expected_ttFileNames TEMP-TABLE Expected_ttFileNames
Temp-table for the expected dependencies
dsTestsuites DATASET dsTestsuites
Dataset for the report


ProDataset Detail

ProDataset dsTestsuites

Member tables: eTestsuite, eTestcase


Temp-Table Detail

Temp-Table eTestcase

Defined in:

Temp-Table eTestsuite

Defined in:

Temp-Table eUsing

Defined in:

Temp-Table Expected_ttFileNames

Defined in:

Temp-Table Package_ttFileNames

Defined in:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:22:41