Class ReadFileResourceFunction

  • All Implemented Interfaces:
    com.consol.citrus.functions.Function

    public class ReadFileResourceFunction
    extends Object
    implements com.consol.citrus.functions.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.
    Since:
    2.4
    Author:
    Christoph Deppisch
    • Constructor Detail

      • ReadFileResourceFunction

        public ReadFileResourceFunction()
    • Method Detail

      • execute

        public String execute​(List<String> parameterList,
                              com.consol.citrus.context.TestContext context)
        Specified by:
        execute in interface com.consol.citrus.functions.Function