public interface XmlDataProvider extends SeLionDataProvider
Modifier and Type | Method and Description |
---|---|
Object[][] |
getAllKeyValueData()
Generates a two dimensional array for TestNG DataProvider from the XML data representing a map of name value
collection.
|
getAllData, getDataAsHashtable, getDataByFilter, getDataByIndex, getDataByIndex, getDataByKeys
Object[][] getAllKeyValueData()
XmlFileSystemResource
to be instantiated using its constructors with
parameter Class<?> cls
and set to KeyValueMap.class
. The implementation in this method is tightly
coupled with KeyValueMap
and KeyValuePair
.
The hierarchy and name of the nodes are strictly as instructed. A name value pair should be represented as nodes
'key' and 'value' as child nodes contained in a parent node named 'item'. A sample data with proper tag names is
shown here as an example :-
k1 val1 k2 val2 k3 val3
Copyright © 2016 PayPal Open Source. All rights reserved.