RunProject Method

Applies to TestComplete 14.10, last modified on June 5, 2019

Description

Use the RunProject method to execute test items provided by the specified project. 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).

Declaration

IntegrationObj.RunProject(ProjectName)

IntegrationObj An expression, variable or parameter that specifies a reference to an Integration object
ProjectName [in]    Required    String    
Result None

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

ProjectName

Specifies the name of the desired project. This project must belong to the project suite opened in TestComplete.

Result Value

None.

Remarks

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 IsRunning property.

RunProject 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.

Example

To view an example that demonstrates how to use the RunProject method, see the Working With TestComplete via COM - Overview help topic.

See Also

Working With TestComplete via COM - Overview
RunProjectSuite Method
RunProjectItem Method
RunProjectTestItem Method
RunRoutine Method
RunRoutineEx Method
Halt Method
Stop Method
GetLastResultDescription Method

Highlight search results