This function checks to make sure all the form values have been filled in correctly
Function checkDialogInput As String
Process a screen of an application and generate the map for that screen
function CreateAppMap ( applicationName As String, screenName As String, windowCaption As String, Optional logLevel As Variant, Optional outputPath As Variant ) As Integer
Creates a GUI dialog that is used to control the application mapping process.
Function CreateAppMapDialog As Integer
Creates a new Map DOM document with the core processing instructions and the map node with the application name.
function createNewMapFile ( applicationName As String ) As Object
Make sure the friendly object name we’re about to use is unique.
Function ensureUniqueObjectName ( objectName As String ) As String
Returns a date/time stamp for the current time, like the standard ISO 8601 date/time format minus the timezone (CCYY-MM-DDTHH:MM:SS)
Function getDateStamp As String
Gets the default map path, which is {SQA_DIR_PROJECT}\testdata\maps.
Function getDefaultMapPath As String
Returns the attributes for the given map file
Function getMapFileAttributes ( mapFile As String ) As Integer
This function stores the coordinates of the object.
Function getObjectCoordinates( recStr As String ) As Object
Get’s all the objects details that we want to save and stores them in to objectNode.
Function getObjectDetails( recStr As String, objectNode As Object ) As Integer
This function will attempt to generate a user-friendly unique name for an object.
Function getObjectNameFromRecognition( recStr As String ) As String
Once a map has been loaded, this function is used to retrieve the recognition string for an object.
Function GetRecFromMap( screenName As String, objectName As String ) As String
Returns a new empty screen map node for the current screen.
function getScreenNode ( screenName As String ) As Object
Initializes the LogLevelNames array
Sub initLogLevelNames
Loads an application map DOM.
Sub LoadMap ( map As String, Optional logLevel As Variant )
A simple logging funtion to log strings to the global LogFile.
Sub logEntry ( logLevel As Integer, entry As String )
A simple logging funtion to log strings to the console.
Sub logToConsole ( logLevel As Integer, entry As String )
Open the map file given in the file name parameter and return it as an XMLDomDocument object.
function openMapFile ( mapFilePath As String, applicationName As String ) As Object
This is the callback function used to process the dialog generated by the CreateAppMapDialog function.
Function processMapDialog ( objectID As String, action As Integer, extraInfo As Long ) As Integer
This function is at the heart of the mapper.
Function processObject ( recStr as String, parentNode As Object ) As Integer
Attempts to save the new map DOM to file on disk.
function saveMapFile ( mapFilePath As String ) As Integer
This helper function for getObjectNameFromRecognition performs the actual search of the recognition string for the elements that will be used to create the object name.
Function searchRecognitionForName ( recStr As String, elementRE As String ) As String
This function will create a new dom element (using the node name we supply).
Function storeCDATAIntoNode ( nodeName As String, CDATA As String ) As Object
Stores the objects properties (as returned by SQAGetPropertyNames) into the object node
Function storeObjectProperties ( recStr As String, objectNode As Object ) As Integer
This function will create a new dom element (using the node name we supply).
Function storeTextIntoNode ( nodeName As String, data As String ) As Object
It happens sometimes that Robot finds a child with a Name property that looks like ‘Name=parentName.childName’.
Function stripParentFromChildInName( recStr As String ) As String
Uses the Snapshot function defined in the QuickSnap library to take a snapshot of an application given the applications parent window rec string.
Function takeSnapshot ( recStr As String, screenShotPath As String ) As Integer