# tCollectAndCheck

Shows and validates the result of a component test.

tCollectAndCheck is available only in a test case about a given component and is added automatically to the test case you are using. For further information about test cases, see *Talend Studio User Guide*.

tCollectAndCheck receives output from a component being tested, loads given reference files to be compare with this output and returns whether the output matches the expected result.

For more technologies supported by Talend, see [Talend components](https://help.qlik.com/talend/r/en-US/7.3/components/technical).

Depending on the Talend product you are using, this component can be used in one, some or all of the following Job frameworks:

* Spark Batch: see [tCollectAndCheck properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/7.3/technical/tcollectandcheck-properties-for-apache-spark-batch).

  The component in this framework is available in all Talend products with Big Data and Talend Data Fabric.

* Spark Streaming: see [tCollectAndCheck properties for Apache Spark Streaming](https://help.qlik.com/talend/en-US/components/7.3/technical/tcollectandcheck-properties-for-apache-spark-streaming).

  This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.

### In this section

* [tCollectAndCheck properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/7.3/technical/tcollectandcheck-properties-for-apache-spark-batch)
* [tCollectAndCheck properties for Apache Spark Streaming](https://help.qlik.com/talend/en-US/components/7.3/technical/tcollectandcheck-properties-for-apache-spark-streaming)