public class BehaviourScriptParser extends ServiceSpecParser
BehaviourScript
object,
or serialize back into XML again.passwordHandler
Constructor and Description |
---|
BehaviourScriptParser(PasswordHandler thePasswordHandler)
Create a new instance of BehaviourScriptParser.
|
Modifier and Type | Method and Description |
---|---|
BehaviourScript |
parse(org.licas_xml.abs.Element scriptXml)
Parse the file path to create a test script for creating the test scenario from.
|
BehaviourScript |
parseFile(java.lang.String filePath)
Parse the file path to create a test script for creating the test scenario from.
|
org.licas_xml.abs.Element |
serialize(BehaviourScript testScript,
boolean forDisplay)
Serialize the test script into XML.
|
parse, serialize
public BehaviourScriptParser(PasswordHandler thePasswordHandler)
thePasswordHandler
- for storing passwords.public org.licas_xml.abs.Element serialize(BehaviourScript testScript, boolean forDisplay) throws java.lang.Exception
testScript
- the test script to serialize.forDisplay
- if true, create output for display purposes only.java.lang.Exception
- any error.public BehaviourScript parseFile(java.lang.String filePath) throws java.lang.Exception
filePath
- the script file path.java.lang.Exception
- any error.public BehaviourScript parse(org.licas_xml.abs.Element scriptXml) throws java.lang.Exception
scriptXml
- the script document in XML format.java.lang.Exception
- any error.