TestCenter Reference
|
Superclass for the field lists used in the field-value test case. More...
Public Member Functions | |
def | __init__ (self, name) |
Default constructor. More... | |
def | add (self, fieldInfo, index=None) |
Add the field with given info to the list. More... | |
def | remove (self, index) |
Remove the element at the given index. More... | |
def | swap (self, indexA, indexB) |
Swap the given two elements. More... | |
def | load (self, xmlNode) |
Load the given xmlNode. More... | |
def | save (self) |
Save the field information to XML. More... | |
Superclass for the field lists used in the field-value test case.
This class is derived from python's standard list.
Definition at line 533 of file FieldValueTests.py.
def TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.__init__ | ( | self, | |
name | |||
) |
Default constructor.
name | The name the list is stored under. |
Reimplemented in TestSupport.FieldValueTests.FieldValueTestCase.FieldValueList, and TestSupport.FieldValueTests.FieldValueTestCase.FieldList.
Definition at line 543 of file FieldValueTests.py.
References TestSupport.FieldValueTests.FieldValueTestCase.__name, and TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.__name.
def TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.add | ( | self, | |
fieldInfo, | |||
index = None |
|||
) |
Add the field with given info to the list.
If the index is greater than the length of the list or the index smaller than zero the new element is added as last or first element respectively.
fieldInfo | the information of the field to be added. |
index | The position the field is saved at. |
Definition at line 554 of file FieldValueTests.py.
References TestSupport.FieldValueTests.FieldValueTestCase.FieldList._add(), and TestSupport.FieldValueTests.FieldValueTestCase.FieldValueList._add().
Referenced by TestSupport.FieldValueTests.FieldValueTestCaseSet.copy().
def TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.load | ( | self, | |
xmlNode | |||
) |
Load the given xmlNode.
xmlNode | Node to load field information from. |
Definition at line 598 of file FieldValueTests.py.
References TestSupport.FieldValueTests.FieldValueTestCase.FieldList._loadField(), and TestSupport.FieldValueTests.FieldValueTestCase.FieldValueList._loadField().
def TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.remove | ( | self, | |
index | |||
) |
Remove the element at the given index.
index | The element's index. |
Definition at line 570 of file FieldValueTests.py.
def TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.save | ( | self | ) |
Save the field information to XML.
Definition at line 606 of file FieldValueTests.py.
References TestSupport.FieldValueTests.FieldValueTestCase.__name, TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.__name, TestSupport.FieldValueTests.FieldValueTestCase.FieldList._saveField(), TestSupport.FieldValueTests.FieldValueTestCase.FieldValueList._saveField(), TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase._type, TestSupport.FieldValueTests.FieldValueTestCase.FieldList._type, and TestSupport.FieldValueTests.FieldValueTestCase.FieldValueList._type.
Referenced by TestCenterAdvanced.Config.Configuration.__init__().
def TestSupport.FieldValueTests.FieldValueTestCase.FieldListBase.swap | ( | self, | |
indexA, | |||
indexB | |||
) |
Swap the given two elements.
indexA | The first element's index. |
indexB | The second element's index. |
Definition at line 584 of file FieldValueTests.py.