This functions reads the XML definitions for default RTest objects.

# S4 method for RTestCase
readXMLInputData(object)

Arguments

object

(object) The RTestCase-class object

Value

(ANY) If multiple datasets are defined a list will be returned containing all datasets with the same order as in the XML file. Else, if only a single is defined, the dataset itself will be returned.

Details

Input datasets are contained below the XML element 'input-data' and can be used by any test packages and functions of the respective test case adapter (i.e. by the functions of the objects inheriting the class 'RTestCase'). By default major R data types are predefined under the node and can be read by this method. Thereby, the type of the imported datasets is determined by the XML element names. This method runs through all XML items, parses the item and converts it into the respective R object.
The following element types are supported:

  • variableXML: variable, XSD: RTestData_variable, RTest: xmlReadData_variable

  • vectorXML: vector, XSD: RTestData_vector, RTest: xmlReadData_vector

  • data.frameXML: data.frame, XSD: RTestData_data.frame, RTest: xmlReadData_data.frame

  • listXML: list, XSD: RTestData_list, RTest: xmlReadData_list

See also

RTestCase-class