Package com.qcefast.fastXml
Class FastXml
- java.lang.Object
-
- com.qcefast.fastXml.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 Summary
Constructors Constructor Description FastXml()
-
Method Summary
Modifier and Type Method Description void
execute()
Executes all the TestScripts in this FastXml.java.lang.String
getAut()
Gets aut.java.lang.String
getDateCreated()
Gets date created.java.lang.String
getDescription()
Gets description.java.lang.String
getDriverLocation()
Gets driver location.DriverType
getDriverType()
Gets driver type.java.util.Date
getEndTime()
Gets end time.java.lang.String
getEnvironment()
Gets environment.FastRunProperties
getFastRunProperties()
Gets fastRunPropertiesjava.lang.String
getFrameworkVersion()
Gets framework version.java.lang.String
getMessage()
Gets message.java.lang.String
getRunDateTime()
Gets run date time.java.lang.String
getRunId()
Gets run id.java.util.Date
getStartTime()
Gets start time.Status
getStatus()
Gets status.java.util.List<TestScript>
getTestScripts()
Gets test scripts.java.lang.String
getTestSetName()
Gets test set name.java.lang.String
getTestType()
Gets test type.java.lang.String
getUser()
Gets user.java.lang.String
getWebAppVersion()
Gets web app version.void
setAut(java.lang.String aut)
Sets aut.void
setDateCreated(java.lang.String dateCreated)
Sets date created.void
setDescription(java.lang.String description)
Sets description.void
setDriverLocation(java.lang.String driverLocation)
Sets driver location.void
setDriverType(DriverType driverType)
Sets driver type.void
setEndTime(java.util.Date endTime)
Sets end time.void
setEnvironment(java.lang.String environment)
Sets environment.void
setFastRunProperties(FastRunProperties fastRunProperties)
Sets fastRunPropertiesvoid
setFrameworkVersion(java.lang.String frameworkVersion)
Sets framework version.void
setMessage(java.lang.String message)
Sets message.void
setRunDateTime(java.lang.String runDateTime)
Sets run date time.void
setRunId(java.lang.String runId)
Sets run id.void
setStartTime(java.util.Date startTime)
Sets start time.void
setStatus(Status status)
Sets status.void
setTestScripts(java.util.List<TestScript> testScripts)
Sets test scripts.void
setTestSetName(java.lang.String testSetName)
Sets test set name.void
setTestType(java.lang.String testType)
Sets test type.void
setUser(java.lang.String user)
Sets user.void
setWebAppVersion(java.lang.String webAppVersion)
Sets web app version.
-
-
-
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 thisFastXml
- 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 thisFastXml
- 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 thisFastXml
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 thisFastXml
- 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 thisFastXml
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 thisFastXml
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 thisFastXml
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 thisFastXml
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 thisFastXml
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 thisFastXml
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 thisFastXml
- Since:
- 1.0.0
-
getStatus
public Status getStatus()
Gets status.
-
setStatus
public void setStatus(Status status)
Sets status.
-
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 thisFastXml
- Since:
- 1.0.0
-
getTestScripts
public java.util.List<TestScript> getTestScripts()
Gets test scripts.- Returns:
- The
TestScript
's that are contained in thisFastXml
- Since:
- 1.0.0
-
setTestScripts
public void setTestScripts(java.util.List<TestScript> testScripts)
Sets test scripts.- Parameters:
testScripts
- TheTestScript
's that thisFastXml
would be executing with- Since:
- 1.0.0
-
getDriverType
public DriverType getDriverType()
Gets driver type.- Returns:
- The
DriverType
that thisFastXml
was created from - Since:
- 1.0.0
-
setDriverType
public void setDriverType(DriverType driverType)
Sets driver type.- Parameters:
driverType
- TheDriverType
that thisFastXml
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 thisFastXml
- Since:
- 1.0.0
-
execute
public void execute() throws FastException
Executes all the TestScripts in this FastXml.Failed
TestStep
s withFailType
:- 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
TestScript
s in aFastXml
- Throws:
FastException
- - if error occurs during execution- Since:
- 1.0.0
-
getStartTime
public java.util.Date getStartTime()
Gets start time.- Returns:
- The
Date
thisFastXml
began executing - Since:
- 1.0.0
-
setStartTime
public void setStartTime(java.util.Date startTime)
Sets start time.- Parameters:
startTime
- TheDate
thisFastXml
begins executing- Since:
- 1.0.0
-
getEndTime
public java.util.Date getEndTime()
Gets end time.- Returns:
- The
Date
thisFastXml
stopped executing - Since:
- 1.0.0
-
setEndTime
public void setEndTime(java.util.Date endTime)
Sets end time.- Parameters:
endTime
- TheDate
thisFastXml
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
-
-