SoapUITest Object

Applies to TestComplete 12.60, last modified on September 17, 2018

Description

The SoapUITest object provides a scripting interface to a functional or security API test created with ReadyAPI or SoapUI and added to your TestComplete project.

To get the object in scripts:

TestObj = ReadyAPICollection_Name.Test_Name

The object contains only one method, Execute, that runs the test.

The SoapUITest object is available only if your project has the ReadyAPI or SoapUI project item.

Members

Example

The following example runs a functional API test.

JavaScript, JScript

function Test()
{
  …
  // Start the API test
  ReadyAPI1.Test1.Execute();
  …
}

Python

def Test():
  # Start the API test 
  ReadyAPI1.Test1.Execute()

VBScript

Sub Test
  …
  ' Start the API test
  ReadyAPI1.Test1.Execute
  …
End Sub

DelphiScript

procedure Test();
begin
  …
  // Start the API test
  ReadyAPI1.Test1.Execute;
  …
end;

C++Script, C#Script

function Test()
{
  …
  // Start the API test
  ReadyAPI1["Test1"]["Execute"]();
  …
}

See Also

Running ReadyAPI and SoapUI Tests

Highlight search results