Applies to TestComplete 14.10, last modified on May 13, 2019

Description

Use the TimeOutWarning property to prevent TestComplete from posting the Search for a Mapped Object Took Too Much Time warning to the log. This value is stored between tests, so enable it again if you plan to perform actions that normally do not cause the warning.

Declaration

NameMapping.TimeOutWarning

Read-Write Property Boolean

Applies To

The property is applied to the following object:

Property Value

True if the message is posted, false otherwise.

Example

The following code snippet disables posting the message before the test, and enables it afterwards.

JavaScript, JScript

function NameMappingSample()
{
  // Disable the message
  NameMapping.TimeOutWarning = false;

  // Perform test actions that take long to find an object
  // …

  // Enable the message
  NameMapping.TimeOutWarning = true;

  // Continue the test run

}

Python

def NameMappingSample():
  # Disable the message 
  NameMapping.TimeOutWarning = False
  # Perform test actions that take long to find an object 
  # ...
  # Enable the message 
  NameMapping.TimeOutWarning = True
  # Continue the test run

VBScript

Sub NameMappingSample

  ' Disable the message
  NameMapping.TimeOutWarning = false

  ' Perform test actions that take long to find an object
  ' …

  ' Enable the message
  NameMapping.TimeOutWarning = true

  ' Continue the test run

End Sub

DelphiScript

procedure NameMappingSample();
begin
  // Disable the message
  NameMapping.TimeOutWarning := false;

  // Perform test actions that take long to find an object
  // …

  // Enable the message
  NameMapping.TimeOutWarning := true;

  // Continue the test run

end;

C++Script, C#Script

function NameMappingSample()
{
  // Disable the message
  NameMapping.TimeOutWarning = false;

  // Perform test actions that take long to find an object
  // …

  // Enable the message
  NameMapping.TimeOutWarning = true;

  // Continue the test run

}

See Also

NameMapping.ConfigurationCount Property
NameMapping.ConfigurationNames Property
Name Mapping Configurations

Highlight search results