The Network Suite functionality is deprecated. We don’t recommend using it for distributed testing. Consider using a CI/CD system for managing distributed tests. See Migrating Distributed Tests to CI/CD Systems for details. In case you need to run web tests on multiple environments in parallel, you can also try using your project’s Execution Plan. |
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