Each function shall be tested using the following structure:
1 Input
The function input consists of:
• context object (ctx)
• explicit input arguments / parameters
• configuration / function parameter tree
• external dependencies, if applicable
2 Processing
The function is expected to:
• read relevant input values
• apply its defined logic
• update or return output fields
• optionally call external systems
3 Output
The function output may be:
• modified context object
• returned object/value
• persisted data
• produced Kafka message
• logged execution result
Generic Function Test Model.docx
Each function shall be tested using the following structure:
1 Input
The function input consists of:
• context object (ctx)
• explicit input arguments / parameters
• configuration / function parameter tree
• external dependencies, if applicable
2 Processing
The function is expected to:
• read relevant input values
• apply its defined logic
• update or return output fields
• optionally call external systems
3 Output
The function output may be:
• modified context object
• returned object/value
• persisted data
• produced Kafka message
• logged execution result
Generic Function Test Model.docx