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 theTestedAppWebParams
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 theTestedApps.AppName
object.
Example
JavaScript, JScript
{
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
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
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
{
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