ExtendedLogging Property

Applies to TestComplete 14.10, last modified on June 5, 2019

Description

The ExtendedLogging property specifies whether the TestComplete report, generated when comparing XML documents with the Compare method of the XMLCheckpoint object, will include information on unchanged nodes of the compared documents. That is, if the nodes of the stored and actual documents are equal, they are included into the report along with information on the difference.

Declaration

XMLCheckpointOptionsObj.ExtendedLogging

Read-Write Property Boolean
XMLCheckpointOptionsObj An expression, variable or parameter that specifies a reference to an XMLCheckpointOptions object

Applies To

The property is applied to the following object:

Property Value

True if TestComplete will display information on unchanged nodes during comparison, and False otherwise.

Remarks

The XMLCheckpointOptions object provides access to a copy of the element’s data. Changes made to the comparison settings via the ExtendedLogging property will not be stored in the XMLCheckpoint element, nor they will be displayed in the XMLCheckpointOptions Element editor.

Example

The following example demonstrates how you can obtain the XMLCheckpointOtions object, set its ExtendedLogging property value to False and compare XMLCheckpoint with the XML document.

JavaScript, JScript

function ExtendedLoggingDemo()
{

  var XMLCheckpoint, XMLOptions, XMLDoc;
  // Obtains the XMLCheckpoint object.
  XMLCheckpoint = XML.MyXMLCheckpoint;
  // Obtains the XMLCheckpointOptions object.
  XMLOptions = XMLCheckpoint.Options;

  // Disables the ExtendedLogging XML checkpoint option.
  XMLOptions.ExtendedLogging = false;

  // Specifies the XML document path.
  XMLDoc = "D:\\Work Folder\\XMLFile.xml";
  // Compares MyXMLCheckpoint with the XML document.
  XMLCheckpoint.Compare(XMLDoc)

}

Python

def ExtendedLoggingDemo():
  # Obtains the XMLCheckpoint object.
  XMLCheckpoint = XML.MyXMLCheckpoint
  # Obtains the XMLCheckpointOptions object.
  XMLOptions = XMLCheckpoint.Options
  # Disables the ExtendedLogging XML checkpoint option.
  XMLOptions.ExtendedLogging = False
  # Specifies the XML document path.
  XMLDoc = "D:\\Work Folder\\XMLFile.xml"
  # Compares MyXMLCheckpoint with the XML document.
  XMLCheckpoint.Compare(XMLDoc)

VBScript

Sub ExtendedLoggingDemo
Dim XMLCheckpoint, XMLOptions, XMLDoc

  ' Obtains the XMLCheckpoint object.
  Set XMLCheckpoint = XML.MyXMLCheckpoint
  ' Obtains the XMLCheckpointOptions object.
  Set XMLOptions = XMLCheckpoint.Options

  ' Disables the ExtendedLogging XML checkpoint option.
  XMLOptions.ExtendedLogging = False

  ' Specifies the XML document path.
  XMLDoc = "D:\Work Folder\XMLFile.xml"
  ' Compares MyXMLCheckpoint with the XML document.
  XMLCheckpoint.Compare(XMLDoc)

End Sub

DelphiScript

procedure ExtendedLoggingDemo();
var XMLCheckpoint, XMLOptions, XMLDoc;
begin

  // Obtains the XMLCheckpoint object.
  XMLCheckpoint := XML.MyXMLCheckpoint;
  // Obtains the XMLCheckpointOptions object.
  XMLOptions := XMLCheckpoint.Options;

  // Disables the ExtendedLogging XML checkpoint option.
  XMLOptions.ExtendedLogging := False;

  // Specifies the XML document path.
  XMLDoc: = 'D:\Work Folder\XMLFile.xml';
  // Compares MyXMLCheckpoint with the XML document.
  XMLCheckpoint.Compare(XMLDoc);

end;

C++Script, C#Script

function ExtendedLoggingDemo()
{

  var XMLCheckpoint, XMLOptions, XMLDoc;
  // Obtains the XMLCheckpoint object.
  XMLCheckpoint = XML["MyXMLCheckpoint"];
  // Obtains the XMLCheckpointOptions object.
  XMLOptions = XMLCheckpoint["Options"];

  // Disables the ExtendedLogging XML checkpoint option.
  XMLOptions["ExtendedLogging"] = false;

  // Specifies the XML document path.
  XMLDoc = "D:\\Work Folder\\XMLFile.xml";
  // Compares MyXMLCheckpoint with the XML document.
  XMLCheckpoint["Compare"](XMLDoc)

}

See Also

About XML Collection
Creating XML Checkpoints
About XML Checkpoints
About Web Service Checkpoints

Highlight search results