TestedAppClickOnceParams Object

Applies to TestComplete 15.47, last modified on January 20, 2023
This object is obsolete. See the Remarks section below.

Description

The TestedAppClickOnceParams object lets you get or set properties of ClickOnce applications in the Tested Applications collection. To obtain the TestedAppClickOnceParams object in tests, use one of the following properties:

See Editing Desktop Application Parameters for details.

Remarks

  • The TestedApps.AppName.Params property and the TestedAppClickOnceParams object are available for the ClickOnce application under test only if the Use special runtime object setting is disabled for this application in the TestedApps editor.

  • The TestedAppClickOnceParams object is legacy supported for backward compatibility only. For new ClickOnce applications, it is recommended to turn on the Use special runtime object option in the TestedApps editor and get and set application properties directly via the TestedApps.AppName object.

Members

Example

The following script modifies the Wait timeout option of the MyApp ClickOnce application and then launches it. The example assumes that the Use special runtime object option is disabled for the application in the TestedApps editor.

JavaScript, JScript

function Test()
{
  TestedApps.MyApp.Params.ActiveParams.WaitTimeout = 60000; // 1 min

  TestedApps.MyApp.Run();
}

Python

def Test():
  TestedApps.MyApp.Params.ActiveParams.WaitTimeout = 60000 # 1 min
  TestedApps.MyApp.Run()

VBScript

Sub Test
  TestedApps.MyApp.Params.ActiveParams.WaitTimeout = 60000 ' 1 min

  TestedApps.MyApp.Run
End Sub

DelphiScript

procedure Test;
begin
  TestedApps.MyApp.Params.ActiveParams.WaitTimeout := 60000; // 1 min

  TestedApps.MyApp.Run;
end;

C++Script, C#Script

function Test()
{
  TestedApps["MyApp"]["Params"]["ActiveParams"]["WaitTimeout"] = 60000; // 1 min

  TestedApps["MyApp"]["Run"]();
}

See Also

Testing ClickOnce Applications
About Tested Applications
Editing Desktop Application Parameters

Highlight search results