Class JAXBUtils


  • public class JAXBUtils
    extends java.lang.Object
    This class is used for parsing and marshalling FastXml drivers.
    Since:
    1.0.0
    • Constructor Detail

      • JAXBUtils

        public JAXBUtils()
    • Method Detail

      • parseFastXml

        public FastXml parseFastXml​(java.io.File file)
                             throws FastException
        Creates a FastXml java object using xml driver
        Parameters:
        file - The xml driver
        Returns:
        FastXml object
        Throws:
        FastException - If an error occurs during execution
        Since:
        1.0.0
      • getFastXmlDrivers

        public java.util.List<FastXml> getFastXmlDrivers​(FastRunProperties fastRunProperties)
                                                  throws FastException
        Returns a list of FastXml from the specified directory
        Parameters:
        fastRunProperties - The properties that the xml drivers will be run with
        Returns:
        List of FastXml
        Throws:
        FastException - If an error occurs during execution
        Since:
        1.0.0
      • marshallFastXml

        public void marshallFastXml​(TestFileLog testFileLog)
                             throws FastException
        Writes updated TestScript to the testEvidence folder
        Parameters:
        testFileLog - the test file log
        Throws:
        FastException - If an error occurs during execution
        Since:
        1.0.0
      • marshallFastXml

        public void marshallFastXml​(FastXml fastXml,
                                    java.lang.String location)
                             throws FastException
        Writes a fastXml java object as a .xml file to the specified location
        Parameters:
        fastXml - A fastXml java object
        location - The location to write the .xml representation of the passed in fastXml java object
        Throws:
        FastException - If an error occurs during execution
        Since:
        1.0.0
      • parseFunctionalTestStepFromFastXml

        public FunctionalTestStep parseFunctionalTestStepFromFastXml​(java.io.File file)
                                                              throws FastException
        Parse functional test step from fast xml functional test step.
        Parameters:
        file - A fastXml file containing only 1 testscript which only has 1 functionalTestStep
        Returns:
        Returns the functionalTestStep
        Throws:
        FastException - If an error occurs during execution
        Since:
        1.0.0