Package com.qcefast.fastXml
Class JAXBUtils
- java.lang.Object
-
- com.qcefast.fastXml.JAXBUtils
-
public class JAXBUtils extends java.lang.Object
This class is used for parsing and marshallingFastXml
drivers.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description JAXBUtils()
-
Method Summary
Modifier and Type Method Description java.util.List<FastXml>
getFastXmlDrivers(FastRunProperties fastRunProperties)
Returns a list of FastXml from the specified directoryvoid
marshallFastXml(FastXml fastXml, java.lang.String location)
Writes a fastXml java object as a .xml file to the specified locationvoid
marshallFastXml(TestFileLog testFileLog)
Writes updated TestScript to the testEvidence folderFastXml
parseFastXml(java.io.File file)
Creates a FastXml java object using xml driverFunctionalTestStep
parseFunctionalTestStepFromFastXml(java.io.File file)
Parse functional test step from fast xml functional test step.FastXml
setUpFastXml(FastXml fastXml, FastRunProperties fastRunProperties)
Updates a fastXml for functionalSteps that may be using datasets.
-
-
-
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
-
setUpFastXml
public FastXml setUpFastXml(FastXml fastXml, FastRunProperties fastRunProperties) throws FastException
Updates a fastXml for functionalSteps that may be using datasets. Also setsTestStepFields
for eachTestStep
- Parameters:
fastXml
- AFastXml
objectfastRunProperties
- properties the fastXml are going to be run with- Returns:
- An updated
FastXml
- 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 objectlocation
- 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
-
-