Download Designer 4.4

Transcript
Plugin API Reference Manual
boolean sectionInfo(java.lang.String section_name)
377
method
Section marker. Used by the ISO 9696-1 option to designate the three different sections of a
test case. The section_name argument can be either "Preamble", "Body", or "Postamble".
This method is called whenever a section begins; the end of a section is implicit at the
beginning of the next one, or at the end of the test case.
boolean testCaseDependency(java.lang.String prerequisite, java.lang.String dependent)
method
Output dependency information. The test case with automatically generated name prerequisite is a prerequisite for test case dependent; in other words, test case dependent would likely
fail during test execution if test case prerequisite fails. Note that it is possible that there are
both forward and backward dependencies in the test suite (relative to the order in which test
cases are published) even though the goal is to have only backward dependencies (later test
cases depend on earlier ones).
abstract boolean testStep(QMLRecord datum, java.lang.String thread, java.lang.String
port, boolean isFromTester, TimeStamp ts)
abstract method
Render a test step. This method is called zero or more times (usually more) after a call to
beginCase(). Return true to indicate success and false to indicate an abnormal condition (test
script generation will be aborted).
The purpose of a call of this method is to render a single test step, i.e. a single test message
either in the inbound or the outbound direction. The first argument datum is the datum that
is either the sent or the expected message. The string thread is the name of thread in the
model that is expected to send or receive the message. The string port is the inbound our
outbound port through which the datum must be or should be transported. The
isFromTester flag indicates the direction. This information is derived, because all the ports are
unidirectional on this level. Finally, timestamp is the required or expected time when the
message must be sent or received.