public final class SeqOutPlugin extends PluginAncestor
provides mscript functions to output test sequences.
MScriptInterface.IGNORE_INHERITED_METHOD, MScriptInterface.NOT_MSCRIPT_METHOD, MScriptInterface.TO_PLUGIN
Constructor and Description |
---|
SeqOutPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
close()
INTERNAL USE ONLY
|
void |
enterInitialState()
INTERNAL USE ONLY
|
void |
exitFinalState()
INTERNAL USE ONLY
|
com.testoptimal.plugin.SeqOutPlugin.OutputFormat |
getOutputFormat()
returns the format chosen for the current plugin as specified in Model property dialog.
|
String |
getPluginDesc()
returns plugin description
|
String |
getPluginID()
returns the pluginIDs activated for the model.
|
void |
initialize(MbtScriptExecutor scriptExec_p)
INTERNAL USE ONLY
|
void |
setOutputFileJson(String outputFileName_p)
sets the output file name and file format to json file.
|
void |
setOutputFileTSV(String outputFileName_p)
sets the output file name and file format to tab separated file.
|
void |
setOutputFileTSV2(String outputFileName_p)
sets the output file name and file format to tab separated file with model information
added as a comment.
|
void |
setOutputFileTXT(String outputFileName_p)
sets the output file name and file format to text file.
|
void |
setOutputFileXLS(String outputFileName_p)
sets the output file name and file format to Excel xls file.
|
void |
setPathFlag(String flag_p)
either to prevent the current test case (path) from being removed as duplicates
or forces the current test case (path) to be removed.
|
static void |
shutdown()
INTERNAL USE ONLY
|
void |
splitStep()
to have each step instruction to be written to excel in a separate row.
|
void |
start()
INTERNAL USE ONLY
|
void |
startPath()
start a new test case/path.
|
void |
startStep()
Starting a new test step in the current test case.
|
void |
writeSetup(String message_p)
writes the suite setup instruction (PreAmble for entire test suite).
|
void |
writeStepAction(String msg_p)
writes a step instruction to test case report/dataset.
|
void |
writeStepAssert(String reqTag_p,
String msg_p,
String assertID_p)
writes an assert instruction to test case report/dataset.
|
void |
writeStepPrep(String msg_p)
writes a step instruction to test case report.
|
void |
writeSuiteSetup(String message_p)
adds the message to the test case setup instructions.
|
void |
writeSuiteTeardown(String message_p)
adds the message to the test case teardown instructions.
|
void |
writeTeardown(String message_p)
writes the suite tear down instruction (PostAmble for entire test suite).
|
public void initialize(MbtScriptExecutor scriptExec_p)
INTERNAL USE ONLY
public void start() throws Exception
INTERNAL USE ONLY
start
in class PluginAncestor
Exception
public void close()
INTERNAL USE ONLY
close
in class PluginAncestor
public com.testoptimal.plugin.SeqOutPlugin.OutputFormat getOutputFormat()
public static void shutdown()
INTERNAL USE ONLY
public void writeSetup(String message_p)
message_p
- public void writeTeardown(String message_p)
message_p
- public void writeSuiteSetup(String message_p)
message_p
- public void writeSuiteTeardown(String message_p)
message_p
- public void writeStepPrep(String msg_p)
msg_p
- public void writeStepAction(String msg_p)
msg_p
- public void writeStepAssert(String reqTag_p, String msg_p, String assertID_p) throws Exception
reqTag_p
- requirement tagmsg_p
- instructionassertID_p
- defect idException
public void enterInitialState()
INTERNAL USE ONLY
enterInitialState
in class PluginAncestor
public void exitFinalState()
INTERNAL USE ONLY
exitFinalState
in class PluginAncestor
public void startPath()
public void startStep()
public void setPathFlag(String flag_p)
Be aware that a test case (path) consists of multiple transitions. Example:
$SeqOut.setPathFlag('keep') or $SeqOut.setPathFlag('discard')
flag_p
- either keep
or discard
.public void splitStep()
public void setOutputFileTSV(String outputFileName_p) throws MBTAbort
MBTAbort
public void setOutputFileXLS(String outputFileName_p) throws MBTAbort
MBTAbort
public void setOutputFileJson(String outputFileName_p) throws MBTAbort
MBTAbort
public void setOutputFileTSV2(String outputFileName_p) throws MBTAbort
MBTAbort
public void setOutputFileTXT(String outputFileName_p) throws MBTAbort
MBTAbort
public String getPluginID()
getPluginID
in class PluginAncestor
public String getPluginDesc()
getPluginDesc
in class PluginAncestor
Copyright TestOptimal, LLC