public abstract class AbstractSimpleScriptedTestProtocol extends AbstractProtocolTestFramework
AbstractProtocolTestFramework.preElements
and AbstractProtocolTestFramework.postElements
for extra elements not defined in the protocol
session file.postElements, preElements, runner, testElements
Constructor and Description |
---|
AbstractSimpleScriptedTestProtocol(HostSystem hostSystem,
String userName,
String password,
String scriptDirectory)
Sets up a SimpleFileProtocolTest which reads the protocol session from a
file of name "
|
Modifier and Type | Method and Description |
---|---|
protected void |
addTestFile(String fileName,
ProtocolSession session)
Finds the protocol session file identified by the test name, and builds
protocol elements from it.
|
protected void |
scriptTest(String fileName,
Locale locale)
Reads test elements from the protocol session file and adds them to the
AbstractProtocolTestFramework.testElements ProtocolSession. |
void |
tearDown() |
runSessions, setUp
public AbstractSimpleScriptedTestProtocol(HostSystem hostSystem, String userName, String password, String scriptDirectory) throws Exception
scriptDirectory
- name of the directory containing the scripts to be runfileName
- The name of the file to read protocol elements from.Exception
public void tearDown() throws Exception
tearDown
in class AbstractProtocolTestFramework
Exception
protected void scriptTest(String fileName, Locale locale) throws Exception
AbstractProtocolTestFramework.testElements
ProtocolSession. Then calls AbstractProtocolTestFramework.runSessions()
.locale
- execute the test using this localeException
protected void addTestFile(String fileName, ProtocolSession session) throws Exception
fileName
- The name of the file to readsession
- The ProtocolSession to add elements to.Exception
Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.