Inserting an Information Message Into the Test Log

Applies to TestComplete 15.73, last modified on March 04, 2025

The following code inserts a message into the test log. The message text (first parameter) will state the current horizontal mouse coordinate. The attached remark (second parameter) will give the current date and time.

JavaScript, JScript

function TestProc()
{
  Log.Message(Sys.Desktop.MouseX, aqDateTime.Now());
}

Python

def TestProc():
  Log.Message(Sys.Desktop.MouseX, aqDateTime.Now())

VBScript

Sub TestProc
  Log.Message Sys.Desktop.MouseX, aqDateTime.Now
End Sub

DelphiScript

procedure TestProc;
begin
  Log.Message(Sys.Desktop.MouseX, aqDateTime.Now());
end;

C++Script, C#Script

function TestProc()
{
  Log["Message"](Sys["Desktop"]["MouseX"], aqDateTime["Now"]());
}

Highlight search results