class
IScriptTestObjectContainer2.
IScriptTestObjectContainer2
Bases: object
This allows objects to create test objects (e.g. TestCases), the methods will be availabe in the project root as well as applications, and folders below them.
create_test_case
name
create_prepare
create_execute
create_finalize
create_cleanup
Creates a TestCase with the specified name.
name (string) -- The name.
create_prepare (bool) -- Defines if the test-method "Prepare" is created.
create_execute (bool) -- Defines if the test-method "Execute" is created.
create_finalize (bool) -- Defines if the test-method "Finalize" is created.
create_cleanup (bool) -- Defines if the test-method "Cleanup" is created.
The IScriptObject of the newly created TestCase.
IExtendedObject
Exception -- Any exception which might occur (e. G. if the name is not an IEC identifier, or an object with the same name already exists within the same namespace, or the object cannot be created under this parent.
create_test_resource
name
create_prepare
create_cleanup
Creates a TestResource with the specified name.
name (string) -- The name.
create_prepare (bool) -- Defines if the test-method "Prepare" is created.
create_cleanup (bool) -- Defines if the test-method "Cleanup" is created.
The IScriptObject of the newly created TestResource.
IExtendedObject
Exception -- Any exception which might occur (e. G. if the name is not an IEC identifier, or an object with the same name already exists within the same namespace, or the object cannot be created under this parent.