public class ImpexKeywordLibrary extends AbstractKeywordLibrary implements ImpExAdaptorAware, RobotTestContextAware
| Constructor and Description |
|---|
ImpexKeywordLibrary() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateImpExFromTemplate(java.lang.String templatePath,
java.lang.String[] params) |
protected java.io.OutputStream |
getImpExLogOutputStream(java.lang.String resourceName) |
protected TemplateProcessor |
getImpexTemplateProcessor() |
protected void |
importImpExFromInputStream(java.lang.String resourceName,
java.io.InputStream inputStream) |
protected void |
importImpExFromInputStream(java.lang.String resourceName,
java.io.InputStream inputStream,
java.lang.String expectedException) |
void |
importImpExFromResource(java.lang.String resourceName)
Imports an ImpEx from a classpath resource
|
void |
importImpExFromResourceNotFailingIfResourceDoesNotExist(java.lang.String resourceName)
Imports an ImpEx from a classpath resource, not failing when impex does not exist.
|
void |
importImpExFromVariable(java.lang.String templatePath,
java.lang.String impex,
java.lang.String expectedException)
Imports an ImpEx from a String variable
|
void |
resetImpExLegacyMode()
Resets the legacy mode for ImpEx imports to the setting before the last
setImpExLegacyMode(String) call. |
void |
setImpExAdaptor(ImpExAdaptor impexAdaptor) |
void |
setImpExLegacyMode(java.lang.String legacyMode)
Switches the legacy mode for ImpEx imports on/off.
|
void |
setRobotTestContext(RobotTestContext robotTestContext) |
public java.lang.String generateImpExFromTemplate(java.lang.String templatePath,
java.lang.String[] params)
throws java.io.IOException
java.io.IOExceptionprotected java.io.OutputStream getImpExLogOutputStream(java.lang.String resourceName)
throws java.io.IOException
java.io.IOExceptionprotected TemplateProcessor getImpexTemplateProcessor() throws java.io.IOException
java.io.IOExceptionprotected void importImpExFromInputStream(java.lang.String resourceName,
java.io.InputStream inputStream)
throws ImpExException,
java.io.IOException
ImpExExceptionjava.io.IOExceptionprotected void importImpExFromInputStream(java.lang.String resourceName,
java.io.InputStream inputStream,
java.lang.String expectedException)
throws java.io.IOException
java.io.IOExceptionpublic void importImpExFromResource(java.lang.String resourceName)
throws ImpExException,
java.io.IOException
resourceName - name of the classpath resource which contains the ImpExImpExExceptionjava.io.IOExceptionpublic void importImpExFromResourceNotFailingIfResourceDoesNotExist(java.lang.String resourceName)
throws ImpExException,
java.io.IOException
resourceName - name of the classpath resource which contains the ImpExImpExExceptionjava.io.IOExceptionpublic void importImpExFromVariable(java.lang.String templatePath,
java.lang.String impex,
java.lang.String expectedException)
throws ImpExException,
java.io.IOException
templatePath - path to the ImpEx velocity templateimpex - the ImpEx to importexpectedException - the expected exception type (null if no exception is expected)ImpExExceptionjava.io.IOExceptionpublic void setImpExLegacyMode(java.lang.String legacyMode)
legacyMode - possible values "true" or "false" (case is ignored)public void resetImpExLegacyMode()
setImpExLegacyMode(String) call.public void setImpExAdaptor(ImpExAdaptor impexAdaptor)
setImpExAdaptor in interface ImpExAdaptorAwarepublic void setRobotTestContext(RobotTestContext robotTestContext)
setRobotTestContext in interface RobotTestContextAwareCopyright © 2018 SAP SE. All Rights Reserved.