Italic Property

Applies to TestComplete 15.45, last modified on December 01, 2022

Description

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

Declaration

LogAttributesObj.Italic

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

Python

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

VBScript

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

See Also

Test Log
Log Object

Highlight search results