Class ReadFileResourceFunction

java.lang.Object
org.citrusframework.functions.core.ReadFileResourceFunction
All Implemented Interfaces:
Function

public class ReadFileResourceFunction extends Object implements 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:
  1. File path of the file resource to read
  2. Boolean value to indicate that the returned value should be base64 encoded. Defaults to false.
  3. Boolean value to indicate that a dynamic replacement should be performed before the content is base64 encoded. Defaults to false.
Since:
2.4
  • Constructor Details

    • ReadFileResourceFunction

      public ReadFileResourceFunction()
  • Method Details