Run Method (BrowserTestedApp Object)

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

Use the Run method to launch the web browser specified by the BrowserType property and open the web page specified by the PageAddress property in the browser.

Declaration

BrowserTestedAppObj.Run(Count, IgnoreRunning, Timeout)

BrowserTestedAppObj An expression, variable or parameter that specifies a reference to a BrowserTestedApp object
Count [in]    Optional    Integer Default value: -1   
IgnoreRunning [in]    Optional    Boolean Default value: False   
Timeout [in]    Optional    Integer Default value: -1   
Result A Browser object

Applies To

The method is applied to the following object:

Parameters

The BrowserTestedApp.Run method has three optional parameters. Currently, all of them are ignored and reserved for future implementation.

Count

IgnoreRunning

Timeout

Result Value

A Browser object that corresponds to the launched web browser instance and provides access to the open web pages.

Remarks

  • This method is available for Web applications only if the Use special runtime object check box is selected in the TestedApps editor. Otherwise, the Run method is used.

  • Sometimes, your application may hang when you use the TestedApp.Run method. The issue is that to call the application process, this method uses the WaitForInputIdle method, which is part of Win32 API. When WaitForInputIdle hangs, TestComplete hangs as well. To avoid this, use the following workaround: create a batch file (.bat) that will call your application and add this file to the list of tested applications instead of your application.

  • To close the application under test, you can use the TestedApp.Close or TestedApp.Terminate method. To close any process in the system, call Process.Close or Process.Terminate.

See Also

Terminate Method
Close Method
Close Action (Process and Browser Objects)
Terminate Method (Process and Browser Objects)
Editing Web Application Parameters

Highlight search results