Public Member Functions | |
def | __init__ |
Constructor of xmlManipulator. | |
def | loadXMLFile |
Creates XML element tree from XML file using peachXmlReader. | |
def | storeXMLFile |
Stores content of our XML element tree into XML file using peachXmlWriter. | |
def | findRootElement |
Returns node element which tag is named "Peach". | |
def | findServerAgent |
Returns node element which tag is named "Agent" and has attribute "name=ServerAgent". | |
def | findClientAgent |
Returns node element which tag is named "Agent" and has attribute "name=ClientAgent". | |
def | findAgent |
Returns node element which tag is named "Agent" and has value attribute "name" same as given param. | |
def | findPublisher |
Returns node element which tag is named "Publisher" and lies within tag named "Test". | |
def | findLogger |
Returns node element which tag is named "Logger" and lies within tag named "Run". | |
def | setLogger |
Sets value of attribute "value" of tag is named "Logger" and lies within tag named "Run". | |
Public Attributes | |
window | |
Main Window of an application. | |
tree | |
XML Tree which was created by peachXmlReader and is associated with this structure. |
Class used for storing/loading content of Main Widow to/from peach XML file. It's abstract class and is mutual parent of recordingXmlManipulator and fuzzingXmlManipulator.
def xmlmanipulators::xmlManipulator::__init__ | ( | self, | ||
window | ||||
) |
Constructor of xmlManipulator.
self | The object pointer. | |
window | Main Window of an application. |
def xmlmanipulators::xmlManipulator::findAgent | ( | self, | ||
root, | ||||
agentName, | ||||
silent = False | ||||
) |
Returns node element which tag is named "Agent" and has value attribute "name" same as given param.
self | The object pointer. | |
agentName | Desired "name" attribute value. | |
root | Node where to search for agent subelement. (No recursive search is performed.) | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::xmlManipulator::findClientAgent | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Returns node element which tag is named "Agent" and has attribute "name=ClientAgent".
self | The object pointer. | |
root | Node where to search for agent subelement. (No recursive search is performed.) | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::xmlManipulator::findLogger | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Returns node element which tag is named "Logger" and lies within tag named "Run".
self | The object pointer. | |
root | Node where to search for run subelement. (No recursive search is performed.) | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::xmlManipulator::findPublisher | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Returns node element which tag is named "Publisher" and lies within tag named "Test".
self | The object pointer. | |
root | Node where to search for test subelement. (No recursive search is performed.) | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::xmlManipulator::findRootElement | ( | self | ) |
Returns node element which tag is named "Peach".
This element is later referred as root.
self | The object pointer. |
def xmlmanipulators::xmlManipulator::findServerAgent | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Returns node element which tag is named "Agent" and has attribute "name=ServerAgent".
self | The object pointer. | |
root | Node where to search for agent subelement. (No recursive search is performed.) | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::xmlManipulator::loadXMLFile | ( | self, | ||
path, | ||||
silent = False | ||||
) |
Creates XML element tree from XML file using peachXmlReader.
self | The object pointer. | |
path | Path to XML file to be loaded. | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::xmlManipulator::setLogger | ( | self, | ||
root, | ||||
loggerPath, | ||||
silent = False | ||||
) |
Sets value of attribute "value" of tag is named "Logger" and lies within tag named "Run".
self | The object pointer. | |
root | Node where to search for run subelement. (No recursive search is performed.) | |
silent | Indicates whether to display error QMessageBox on failure. | |
loggerPath | New value for attribute "value". |
def xmlmanipulators::xmlManipulator::storeXMLFile | ( | self, | ||
path, | ||||
silent = False | ||||
) |
Stores content of our XML element tree into XML file using peachXmlWriter.
self | The object pointer. | |
path | Path to XML where to store the tree. | |
silent | Indicates whether to display error QMessageBox on failure. |
XML Tree which was created by peachXmlReader and is associated with this structure.
Main Window of an application.