Bold Property

Applies to TestComplete 14.71, last modified on April 22, 2021

Description

The Bold property specifies whether the text of a message or a folder to be posted to the test log will be displayed in bold font.

Declaration

LogAttributesObj.Bold

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 in bold font, and False otherwise. The default value is False.

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.Bold = true;
  // Applies these attributes to a message
  Log.Message("My Text", "", pmNormal, attr);
}

Python

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

VBScript

Sub LogAttributes()
  ' Specifies new attributes
  Set attr = Log.CreateNewAttributes
  attr.Bold = 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.Bold := 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["Bold"] = true;
  // Applies these attributes to a message
  Log["Message"]("My Text", "", pmNormal, attr);
}

See Also

Test Results
Log Object

Highlight search results