Package step.plugins.compare
Class AbstractCompareFunctionType<P extends step.functions.Function>
- java.lang.Object
-
- step.functions.type.AbstractFunctionType<CompareFunction>
-
- step.plugins.compare.AbstractCompareFunctionType<P>
-
- Direct Known Subclasses:
ImageCompareFunctionType
,PdfTestFunctionType
public abstract class AbstractCompareFunctionType<P extends step.functions.Function> extends step.functions.type.AbstractFunctionType<CompareFunction>
-
-
Field Summary
Fields Modifier and Type Field Description protected ch.exense.commons.app.Configuration
configuration
protected step.grid.filemanager.FileVersionId
handlerJar
protected java.io.File
scenarioDir
-
Constructor Summary
Constructors Constructor Description AbstractCompareFunctionType(java.io.File scenarioDir, ch.exense.commons.app.Configuration configuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addFileAsAttachment(step.functions.io.Input<?> input, java.io.File file, java.lang.String attachmentName)
void
beforeFunctionCall(CompareFunction function, step.functions.io.Input<?> input, java.util.Map<java.lang.String,java.lang.String> properties)
protected void
checkFiles(java.io.File actualFile, java.io.File expectedFile)
CompareFunction
copyFunction(CompareFunction function)
protected java.lang.String
createScenarioFile(CompareFunction function)
void
deleteFunction(CompareFunction function)
protected abstract java.lang.String
getActualFileName()
protected abstract java.lang.String
getAgentScenarioDirProperty()
protected abstract java.lang.String
getExpectedFileName()
protected abstract java.lang.String
getHandlerChain()
java.lang.String
getHandlerChain(CompareFunction function)
protected abstract java.lang.String
getHandlerJar()
step.grid.filemanager.FileVersionId
getHandlerPackage(CompareFunction function)
java.util.Map<java.lang.String,java.lang.String>
getHandlerProperties(CompareFunction function)
protected abstract java.lang.String
getScenarioDirProperty()
protected java.io.File
getSessionDir(CompareFunction function)
void
init()
abstract CompareFunction
newFunction()
void
setupFunction(CompareFunction function)
CompareFunction
updateFunction(CompareFunction function)
protected void
updateScenarioName(CompareFunction function)
-
-
-
Method Detail
-
getHandlerJar
protected abstract java.lang.String getHandlerJar()
-
getHandlerChain
protected abstract java.lang.String getHandlerChain()
-
getScenarioDirProperty
protected abstract java.lang.String getScenarioDirProperty()
-
getAgentScenarioDirProperty
protected abstract java.lang.String getAgentScenarioDirProperty()
-
getActualFileName
protected abstract java.lang.String getActualFileName()
-
getExpectedFileName
protected abstract java.lang.String getExpectedFileName()
-
init
public void init()
- Overrides:
init
in classstep.functions.type.AbstractFunctionType<CompareFunction>
-
getHandlerChain
public java.lang.String getHandlerChain(CompareFunction function)
- Specified by:
getHandlerChain
in classstep.functions.type.AbstractFunctionType<CompareFunction>
-
getHandlerPackage
public step.grid.filemanager.FileVersionId getHandlerPackage(CompareFunction function)
- Overrides:
getHandlerPackage
in classstep.functions.type.AbstractFunctionType<CompareFunction>
-
getHandlerProperties
public java.util.Map<java.lang.String,java.lang.String> getHandlerProperties(CompareFunction function)
- Specified by:
getHandlerProperties
in classstep.functions.type.AbstractFunctionType<CompareFunction>
-
beforeFunctionCall
public void beforeFunctionCall(CompareFunction function, step.functions.io.Input<?> input, java.util.Map<java.lang.String,java.lang.String> properties) throws step.functions.type.FunctionExecutionException
- Overrides:
beforeFunctionCall
in classstep.functions.type.AbstractFunctionType<CompareFunction>
- Throws:
step.functions.type.FunctionExecutionException
-
checkFiles
protected void checkFiles(java.io.File actualFile, java.io.File expectedFile) throws step.functions.type.FunctionExecutionException
- Throws:
step.functions.type.FunctionExecutionException
-
addFileAsAttachment
protected void addFileAsAttachment(step.functions.io.Input<?> input, java.io.File file, java.lang.String attachmentName)
-
newFunction
public abstract CompareFunction newFunction()
- Specified by:
newFunction
in classstep.functions.type.AbstractFunctionType<CompareFunction>
-
setupFunction
public void setupFunction(CompareFunction function) throws step.functions.type.SetupFunctionException
- Overrides:
setupFunction
in classstep.functions.type.AbstractFunctionType<CompareFunction>
- Throws:
step.functions.type.SetupFunctionException
-
createScenarioFile
protected java.lang.String createScenarioFile(CompareFunction function) throws step.functions.type.SetupFunctionException
- Throws:
step.functions.type.SetupFunctionException
-
updateFunction
public CompareFunction updateFunction(CompareFunction function) throws step.functions.type.FunctionTypeException
- Overrides:
updateFunction
in classstep.functions.type.AbstractFunctionType<CompareFunction>
- Throws:
step.functions.type.FunctionTypeException
-
updateScenarioName
protected void updateScenarioName(CompareFunction function) throws step.functions.type.FunctionTypeException
- Throws:
step.functions.type.FunctionTypeException
-
copyFunction
public CompareFunction copyFunction(CompareFunction function) throws step.functions.type.FunctionTypeException
- Overrides:
copyFunction
in classstep.functions.type.AbstractFunctionType<CompareFunction>
- Throws:
step.functions.type.FunctionTypeException
-
deleteFunction
public void deleteFunction(CompareFunction function)
- Overrides:
deleteFunction
in classstep.functions.type.AbstractFunctionType<CompareFunction>
-
getSessionDir
protected java.io.File getSessionDir(CompareFunction function)
-
-