# 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 [Testing Spark Jobs using test cases](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/testing-spark-jobs-using-test-cases).

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.

### In this section

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