RunProjectItem method to execute test(s) provided by the specified project item. The method does not pause the program execution until the test run is over. It returns immediately after the test run started. If the method cannot initiate the test run, an error occurs. You can handle it using the means of the scripting language you use (see Handling Exceptions in Scripts).
|IntegrationObj||An expression, variable or parameter that specifies a reference to an Integration object|
The method is applied to the following object:
The method has the following parameters:
Specifies the name of the project to which the desired project item belongs.
Specifies the name of the desired project item.
Call this method only if TestComplete is not running any tests. Else, an error will occur. To check whether TestComplete is running tests, use the
RunProjectItem returns immediately after the test run has started or if it has failed to start. The method does not pause the program execution until the test run is over. To wait until the test run finishes, you can call the
IsRunning property in a loop. See Working With TestComplete via COM for more information.