Class FastXml


  • public class FastXml
    extends java.lang.Object
    Used to a represent a Fast xml driver. This driver is what drives to fast framework and tells it how to execute tests
    Since:
    1.0.0
    • Constructor Detail

      • FastXml

        public FastXml()
    • Method Detail

      • getWebAppVersion

        public java.lang.String getWebAppVersion()
        Gets web app version.
        Returns:
        The version of the UI that was used to create this FastXml driver
        Since:
        1.0.0
      • setWebAppVersion

        public void setWebAppVersion​(java.lang.String webAppVersion)
        Sets web app version.
        Parameters:
        webAppVersion - The version of the U.I. used to create this FastXml
        Since:
        1.0.0
      • getFrameworkVersion

        public java.lang.String getFrameworkVersion()
        Gets framework version.
        Returns:
        The version of the Fast framework that was used to execute this FastXml
        Since:
        1.0.0
      • setFrameworkVersion

        public void setFrameworkVersion​(java.lang.String frameworkVersion)
        Sets framework version.
        Parameters:
        frameworkVersion - The version of the Fast framework used to execute this FastXml
        Since:
        1.0.0
      • getEnvironment

        public java.lang.String getEnvironment()
        Gets environment.
        Returns:
        The environment this FastXml was intended to be executed in
        Since:
        1.0.0
      • setEnvironment

        public void setEnvironment​(java.lang.String environment)
        Sets environment.
        Parameters:
        environment - The environment this FastXml is intended to be executed in
        Since:
        1.0.0
      • getUser

        public java.lang.String getUser()
        Gets user.
        Returns:
        The user that created this FastXml
        Since:
        1.0.0
      • setUser

        public void setUser​(java.lang.String user)
        Sets user.
        Parameters:
        user - The user that created this FastXml
        Since:
        1.0.0
      • getDateCreated

        public java.lang.String getDateCreated()
        Gets date created.
        Returns:
        The date this FastXml was created
        Since:
        1.0.0
      • setDateCreated

        public void setDateCreated​(java.lang.String dateCreated)
        Sets date created.
        Parameters:
        dateCreated - The date this FastXml was created
        Since:
        1.0.0
      • getRunDateTime

        public java.lang.String getRunDateTime()
        Gets run date time.
        Returns:
        The date this FastXml was created
        Since:
        1.0.0
      • setRunDateTime

        public void setRunDateTime​(java.lang.String runDateTime)
        Sets run date time.
        Parameters:
        runDateTime - The date this FastXml was created
        Since:
        1.0.0
      • getTestSetName

        public java.lang.String getTestSetName()
        Gets test set name.
        Returns:
        The name of the Test Suite this FastXml is executing
        Since:
        1.0.0
      • setTestSetName

        public void setTestSetName​(java.lang.String testSetName)
        Sets test set name.
        Parameters:
        testSetName - The name of the Test Suite this FastXml is executing
        Since:
        1.0.0
      • getRunId

        public java.lang.String getRunId()
        Gets run id.
        Returns:
        The runId this FastXml is executing with
        Since:
        1.0.0
      • setRunId

        public void setRunId​(java.lang.String runId)
        Sets run id.
        Parameters:
        runId - The runId this FastXml is executing with
        Since:
        1.0.0
      • getTestType

        public java.lang.String getTestType()
        Gets test type.
        Returns:
        The type of tests this FastXml is executing
        Since:
        1.0.0
      • setTestType

        public void setTestType​(java.lang.String testType)
        Sets test type.
        Parameters:
        testType - The type of tests this FastXml is executing
        Since:
        1.0.0
      • getAut

        public java.lang.String getAut()
        Gets aut.
        Returns:
        The application this FastXml is executing against
        Since:
        1.0.0
      • setAut

        public void setAut​(java.lang.String aut)
        Sets aut.
        Parameters:
        aut - The application this FastXml will be executed against
        Since:
        1.0.0
      • getDescription

        public java.lang.String getDescription()
        Gets description.
        Returns:
        The description of this FastXml
        Since:
        1.0.0
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets description.
        Parameters:
        description - The description of this FastXml
        Since:
        1.0.0
      • getStatus

        public Status getStatus()
        Gets status.
        Returns:
        The Status for this FastXml before or after execution
        Since:
        1.0.0
      • setStatus

        public void setStatus​(Status status)
        Sets status.
        Parameters:
        status - The Status of this FastXml
        Since:
        1.0.0
      • getMessage

        public java.lang.String getMessage()
        Gets message.
        Returns:
        A message that may contain information about the execution for this FastXml
        Since:
        1.0.0
      • setMessage

        public void setMessage​(java.lang.String message)
        Sets message.
        Parameters:
        message - A message that may contain information about the execution for this FastXml
        Since:
        1.0.0
      • getTestScripts

        public java.util.List<TestScript> getTestScripts()
        Gets test scripts.
        Returns:
        The TestScript's that are contained in this FastXml
        Since:
        1.0.0
      • setTestScripts

        public void setTestScripts​(java.util.List<TestScript> testScripts)
        Sets test scripts.
        Parameters:
        testScripts - The TestScript's that this FastXml would be executing with
        Since:
        1.0.0
      • getDriverType

        public DriverType getDriverType()
        Gets driver type.
        Returns:
        The DriverType that this FastXml was created from
        Since:
        1.0.0
      • setDriverType

        public void setDriverType​(DriverType driverType)
        Sets driver type.
        Parameters:
        driverType - The DriverType that this FastXml was created from
        Since:
        1.0.0
      • getDriverLocation

        public java.lang.String getDriverLocation()
        Gets driver location.
        Returns:
        The location of the original .xml file for this FastXml
        Since:
        1.0.0
      • setDriverLocation

        public void setDriverLocation​(java.lang.String driverLocation)
        Sets driver location.
        Parameters:
        driverLocation - The location of the .xml file for this FastXml
        Since:
        1.0.0
      • execute

        public void execute()
                     throws FastException
        Executes all the TestScripts in this FastXml.

        Failed TestSteps with FailType:

        • FAIL_TCASE will skip the remainder of the current TestScript being ran
        • FAIL_TSUITE will throw a FastException with failType FAIL_TSUITE, and cease execution of all TestScripts in a FastXml
        Throws:
        FastException - - if error occurs during execution
        Since:
        1.0.0
      • getStartTime

        public java.util.Date getStartTime()
        Gets start time.
        Returns:
        The Date this FastXml began executing
        Since:
        1.0.0
      • setStartTime

        public void setStartTime​(java.util.Date startTime)
        Sets start time.
        Parameters:
        startTime - The Date this FastXml begins executing
        Since:
        1.0.0
      • getEndTime

        public java.util.Date getEndTime()
        Gets end time.
        Returns:
        The Date this FastXml stopped executing
        Since:
        1.0.0
      • setEndTime

        public void setEndTime​(java.util.Date endTime)
        Sets end time.
        Parameters:
        endTime - The Date this FastXml stops executing
        Since:
        1.0.0
      • getFastRunProperties

        public FastRunProperties getFastRunProperties()
        Gets fastRunProperties
        Returns:
        The FastRunProperties of this FastXml
        Since:
        1.0.0
      • setFastRunProperties

        public void setFastRunProperties​(FastRunProperties fastRunProperties)
        Sets fastRunProperties
        Parameters:
        fastRunProperties - Properties used to run FAST
        Since:
        1.0.0