Icon

01_​Validating_​KNIME_​Workflows

Validating KNIME Workflows

This workflow demonstrates how to take a standard KNIME workflow and adapt it to be used with the KNIME Testing Framework. This allows automatic testing that the workflow is still producing the expected results.

Validating the correctness of KNIME workflowsThis workflow demonstrates a technique to validate that KNIME Workflows are doingwhat they are supposed to do. The key is the use of a reference set of input data andthe Table Difference Checker in the "Run Tests if Necessary" wrapped metanode atthe end of the workflow.The workflow itself is not particularly interesting, but it could easily be adapted to douseful things. The changes that need to be made to test different functionality are tochange the reference input data loaded in the "Choose dataset" wrapped metanodeand the golden table (reference output data) loaded in the "Run Tests if Necessary"wrapped metanode.Extensions required;KNIME Testing Framework This is the interesting bit of the workflow DESIGNER: providegolden table file here USER: provide datafile here USER: here are theresults! DESIGNER: providereference data filehere Test configurationUser provided dataDisplayresults Choose dataset Run Tests ifNecessary TestflowConfiguration Math Formula Column Filter Row Filter Column Resorter Table Reader Table View(JavaScript) Validating the correctness of KNIME workflowsThis workflow demonstrates a technique to validate that KNIME Workflows are doingwhat they are supposed to do. The key is the use of a reference set of input data andthe Table Difference Checker in the "Run Tests if Necessary" wrapped metanode atthe end of the workflow.The workflow itself is not particularly interesting, but it could easily be adapted to douseful things. The changes that need to be made to test different functionality are tochange the reference input data loaded in the "Choose dataset" wrapped metanodeand the golden table (reference output data) loaded in the "Run Tests if Necessary"wrapped metanode.Extensions required;KNIME Testing Framework This is the interesting bit of the workflow DESIGNER: providegolden table file here USER: provide datafile here USER: here are theresults! DESIGNER: providereference data filehere Test configurationUser provided dataDisplayresults Choose dataset Run Tests ifNecessary TestflowConfiguration Math Formula Column Filter Row Filter Column Resorter Table Reader Table View(JavaScript)

Nodes

Extensions

Links