Class ReadFileResourceFunction
java.lang.Object
org.citrusframework.functions.core.ReadFileResourceFunction
- All Implemented Interfaces:
Function
Function reads file from given file path and returns the complete file content as function result.
File content is automatically parsed for test variables.
File path can also have test variables as part of the file name or path.
The function accepts the following parameters:
- File path of the file resource to read
- Boolean value to indicate that the returned value should be base64 encoded. Defaults to false.
- Boolean value to indicate that a dynamic replacement should be performed before the content is base64 encoded. Defaults to false.
- Since:
- 2.4
-
Field Summary
Fields inherited from interface org.citrusframework.functions.Function
functions, logger, RESOURCE_PATH -
Constructor Summary
Constructors -
Method Summary