|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScriptGenerator
All classes that generate MaxQ scripts must implement this interface. Then they may be listed in generator.classnames in maxq.properties.
Notes: - In practice derived classes are descendents of @AsbtractCodeGenerator. - All generators must put their classname somewhere in the script. This is used to recognise which generator to use when a script is reloaded and recording is resumed.
GeneratorFactory
Field Summary | |
---|---|
static java.lang.String |
EOL
|
Method Summary | |
---|---|
void |
close()
Called when a generator is no longer needed. |
void |
doLoad()
Called after a new script has been loaded from file. |
void |
doNew()
Called when a new script needs to be begun. |
void |
doSave(java.lang.String path,
java.lang.String fileName)
Notifies the generator that the script is about to be saved. |
void |
doStartRecording()
Called before any processRequest() calls. |
void |
doStopRecording()
Called after the last processResponse() call, but may be followed by another doStartRecording() to start the process over again. |
java.lang.String[] |
getValidFileExtensions()
Returns an array of valid file extensions for the type of code generator in use. |
java.lang.String |
parseTestName()
Parses the name of the test out of the script. |
Methods inherited from interface com.bitmechanic.maxq.ProxyServer.Observer |
---|
processRequest, processResponse |
Field Detail |
---|
static final java.lang.String EOL
Method Detail |
---|
java.lang.String[] getValidFileExtensions()
java.lang.String parseTestName()
void doStartRecording()
void doStopRecording()
void doNew()
void doSave(java.lang.String path, java.lang.String fileName)
void doLoad()
void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |