IScriptTestCaseObject

class

IScriptTestCaseObject.

IScriptTestCaseObject

Bases: object

Class provides methods for manipulating test case objects and run them completly or just specific test sets / test runs.

resource_references

Gets a sequence of the referenced IScriptTestResourceObject names.

Type

description

The description of this test case.

Type

string

is_parameterized_test_case_feature_activated

Retrieves or sets a value indicating the "parameterized test case feature" is activated.

Type

bool

test_data_variable_name

Retrieves or sets the name of the test data variable.

Type

string

test_data_type_name

Retrieves or sets the data type (DUT) used the definition of test runs.

Type

string

test_set_references

Retrieves a sequence of the referenced IScriptTestSetObject names.

Type

List of string

run

application=None

Starts executing the TestCase on the active application. This method instantly returns; execution runs asynchronously.

Parameters

application (IExtendedObject<IScriptObject>) -- The application object to use. If this parameter is omitted, the active application is used. (This parameter is optional.)

Returns

The result of the test run.

Return type
Reports

TestStartImpossibleException -- Reported when test execution could not be started. This can have several reasons (not logged in, object to test cannot be executed, no task referencing the test suite, ...)

Note

When a TestStartImpossibleException is reported, no test result has been created.

run_partly

test_set

run_id=0

application=None

Starts executing the TestCase on the active application. This method instantly returns; execution runs asynchronously.

Parameters
  • test_set (IExtendedObject<IScriptObject>) -- The test set to execute.

  • run_id (uint) -- Index of the run in the context of the specified test set. If this parameter is omitted or 0 is passed, the runs of the specified test set are executed. (This parameter is optional.)

  • application (IExtendedObject<IScriptObject>) -- The application object to use. If this parameter is omitted, the active application is used. (This parameter is optional.)

Returns

The result of the test run.

Return type
Reports

TestStartImpossibleException -- Reported when test execution could not be started. This can have several reasons (not logged in, object to test cannot be executed, no task referencing the test suite, ...)

Note

When a TestStartImpossibleException is reported, no test result has been created.

prepare

Retrieves the 'Prepare' test method or null (None) if the method does not exist.

Type

IScriptObject

execute

Retrieves the 'Execute' test method or null (None) if the method does not exist.

Type

IScriptObject

finalize

Retrieves the 'Finalize' test method or null (None) if the method does not exist.

Type

IScriptObject

cleanup

Retrieves the 'Cleanup' test method or null (None) if the method does not exist.

Type

IScriptObject