StrikeOut Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The StrikeOut property specifies whether the text of a message or a folder to be posted to the test log will be displayed strikeout.

Declaration

LogAttributesObj.StrikeOut

Read-Write Property Boolean
LogAttributesObj An expression, variable or parameter that specifies a reference to a LogAttributes object

Applies To

The property is applied to the following object:

Property Value

True if the text of a message or a folder to be posted to the test log will be displayed strikeout, and False otherwise.

Example

The code below defines new log attributes and then applies these attributes to a message posted to the test log.

JavaScript, JScript

function LogAttributes()
{
  // Specifies new attributes
  var attr = Log.CreateNewAttributes();
  attr.StrikeOut = true;
  // Applies these attributes to a message
  Log.Message("My Text", "", pmNormal, attr);
}

Python

def LogAttributes():
  # Specifies new attributes
  attr = Log.CreateNewAttributes()
  attr.StrikeOut = True
  # Applies these attributes to a message
  Log.Message("My Text", "", pmNormal, attr)

VBScript

Sub LogAttributes()
  ' Specifies new attributes
  Set attr = Log.CreateNewAttributes
  attr.StrikeOut = true
  ' Applies these attributes to a message
  Call Log.Message("My Text", , , attr)
End Sub

DelphiScript

function LogAttributes;
var attr;
begin

  // Specifies new attributes
  attr := Log.CreateNewAttributes;
  attr.StrikeOut := true;
  // Applies these attributes to a message
  Log.Message('My Text', '', pmNormal, attr);

end;

C++Script, C#Script

function LogAttributes()
{
  // Specifies new attributes
  var attr = Log["CreateNewAttributes"]();
  attr["StrikeOut"] = true;
  // Applies these attributes to a message
  Log["Message"]("My Text", "", pmNormal, attr);
}

See Also

Test Log
Log Object

Highlight search results