ParameterSetAnalysisPackage¶
- class ParameterSetAnalysisPackage¶
- Attributes¶
Returns access to the package attributes definitions specified within the parameter set and the referenced package attribute definition files.
- Returns:
Package attribute interface of the parameter set
- Return type:
- GlobalConstants¶
Returns access to the global constants definitions specified within the parameter set and the referenced global constants definition files.
- Returns:
Global constants interface of the parameter set
- Return type:
- Mapping¶
Returns access to the mapping of the parameter set.
- Returns:
Mapping interface of the parameter set
- Return type:
- MappingFiles¶
Returns access to the mapping file list of the parameter set.
- Returns:
Mapping file list object of the parameter set
- Return type:
- Parameters¶
Returns access to the package parameters definitions specified within the parameter set and the referenced package parameters definition files.
- Returns:
Package parameters interface of the parameter set
- Return type:
- Clone()¶
Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.
- Returns:
A copy of this object
- Return type:
- GetIndex()¶
Returns the zero based index in the parent.
- Returns:
Zero based index
- Return type:
int
- GetLineNo()¶
Returns the line number within its project.
- Returns:
Line number
- Return type:
int
- GetName()¶
Returns the name of the project component.
- Returns:
Name of the component
- Return type:
str
- GetPackage()¶
Returns the referenced package.
- Note:
The returned package object is a reference. If this object is used to manipulate the content all references in this project are affected.
- Returns:
The referenced package of type
Packageor the referenced analysis package of typeAnalysisPackage- Return type:
- GetParent()¶
Returns the parent project component.
- Returns:
Parent component
- Return type:
- GetTestCaseId()¶
Returns the test case id of the parameter record.
- Returns:
Test case id
- Return type:
str
- GetTestScriptId()¶
Returns the test script id of the corresponding package.
- Returns:
Test script id
- Return type:
str
- GetType()¶
- Returns the type (class name) of the project component, e.g.
“ConfigChange”
“ParameterSet”
“PackageCall”
“Project”
“PackageGenerator”
- Returns:
Type (class name) of the project component
- Return type:
str
- IsEnabled()¶
Returns the state of the test step.
- Returns:
True if test step is enabled, otherwise False
- Return type:
bool
- IsReported()¶
Returns whether the test step will be reported. If it has a parent test step, this function will only return true if both this test step and the parent test step should be reported.
- Returns:
True if test step will be reported, otherwise False
- Return type:
bool
- RemoveFromProject()¶
Removes this component from the project.
- Raises:
ApiError – if the component is not part of any project
-
SetEnabled(state=
True)¶ Enable or disable the test step.
- Parameters:
- state : bool¶
True (=Default) to enable, False to disable the test step.
-
SetReported(state=
True)¶ Enable or disable the reporting of the test step. If it has a parent test step, its reporting must also be enabled in order to have this test step appear in the report.
- Parameters:
- state : bool¶
True (=Default) to enable, False to disable the reporting of the test step.
- SetTestCaseId(testCaseId)¶
Sets the independent test case id of the parameter record.
- Parameters:
- testCaseId : str¶
Test case id
- Returns:
True if the update was successful
- Return type:
boolean