Verify Method

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

Description

The Verify method checks if the given job can be executed by the network suite. Namely, for each enabled task of the job, it performs initialization actions described in Verifying Tasks, Jobs, Hosts and Network Suite.

Declaration

JobObj.Verify()

JobObj An expression, variable or parameter that specifies a reference to a Job object
Result Boolean

Applies To

The method is applied to the following object:

Result Value

True if the network suite can run the job, and False otherwise.

Remarks

The Verify method does not return the result until all tasks, jobs and the network suite are in the Idle state. For instance, in the following code --

JavaScript, JScript

NetworkSuite.Jobs(1).Run(false);

NetworkSuite.Jobs(2).Verify; // This line is executed once Job1 is over
NetworkSuite.Jobs(2).Run();

Python

NetworkSuite.Jobs[1].Run(False)
NetworkSuite.Jobs[2].Verify # This line is executed once Job1 is over
NetworkSuite.Jobs[2].Run()

VBScript

NetworkSuite.Jobs(1).Run(False)

NetworkSuite.Jobs(2).Verify ' This line is executed once Job1 is over
NetworkSuite.Jobs(2).Run

DelphiScript

NetworkSuite.Jobs(1).Run(False);

NetworkSuite.Jobs(2).Verify; // This line is executed once Job1 is over
NetworkSuite.Jobs(2).Run;

C++Script, C#Script

NetworkSuite["Jobs"](1)["Run"](false);

NetworkSuite["Jobs"](2)["Verify"]; // This line is executed once Job1 is over
NetworkSuite["Jobs"](2)["Run"]();

-- Job2 will not run until the execution of Job1 is over.

You cannot verify the job from the OnNetJobStateChange, OnNetSuiteStateChange and OnNetTaskStateChange event handlers.

See Also

Distributed Testing
Job.Run
Host.Verify
Task.Verify
NetworkSuite.Verify

Highlight search results