org.easetech.easytest.loader

Class XMLDataLoader

    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
        An instance of logger associated with the test framework.
    • Constructor Detail

      • XMLDataLoader

        public XMLDataLoader()
    • Method Detail

      • loadData

        public Map<String,List<Map<String,Object>>> loadData(Resource resource)
        Load the data from the given resource
        Specified by:
        loadData in interface Loader
        Parameters:
        resource - the instance of the resource from which to load the data
        Returns:
        the loaded data
      • writeData

        public void writeData(Resource resource,
                     Map<String,List<Map<String,Object>>> actualData,
                     String... methodNames)
        Write Data to the existing XML File.
        Specified by:
        writeData in interface Loader
        Parameters:
        resource - to which the data needs to be written
        methodNames - the name of the methods to write data for
        actualData - the actual data that needs to be written to the file.

Copyright © 2014. All rights reserved.