TestedAppWebParams Object

Applies to TestComplete 15.31, last modified on March 17, 2022
This object is obsolete. See the Remarks section below.

Description

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

See Editing Web Application Parameters for details.

Members

Remarks

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

  • The TestedAppWebParams object is legacy supported for backward compatibility only. For new Web 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.

Example

JavaScript, JScript

function Test()
{
  var TestApp = TestedApps.Items("SampleBrowser");

  // Obtains the Web application's parameters
  var WebParams = TestApp.Params.WebParams;

  // Modifies the parameters
  ...

  // Launches the tested application
  TestApp.Run();

}

Python

def Test():
  TestApp = TestedApps.Items["SampleBrowser"]
  # Obtains the Web application's parameters 
  WebParams = TestApp.Params.WebParams
  # Modifies the parameters 
  # ...
  # Launches the tested application 
  TestApp.Run()

VBScript

Sub Test

  Dim TestApp, WebParams
  Set TestApp = TestedApps.Items("SampleBrowser")

  ' Obtains the Web application's parameters
  Set WebParams = TestApp.Params.WebParams

  ' Modifies the parameters
  ...

  ' Launches the tested application
  TestApp.Run

End Sub

DelphiScript

procedure Test();
var TestApp, WebParams;
begin
  TestApp := TestedApps.Items('SampleBrowser');

  // Obtains the Web application's parameters
  WebParams := TestApp.Params.WebParams;

  // Modifies the parameters
  ...

  // Launches the tested application
  TestApp.Run();

end;

C++Script, C#Script

function Test()
{
  var TestApp = TestedApps["Items"]("SampleBrowser");

  // Obtains the Web application's parameters
  var WebParams = TestApp["Params"]["WebParams"];

  // Modifies the parameters
  ...

  // Launches the tested application
  TestApp["Run"]();

}

See Also

Editing Web Application Parameters
TestedAppParams Object
About Tested Applications

Highlight search results