# tCollectAndCheck

コンポーネントテストの結果を表示し、検証します。

tCollectAndCheckは特定のコンポーネントに関するテストケースでのみ利用可能で、使うテストケースに自動的に追加されます。テストケースの詳細は、[テストケースを使ってSparkジョブをテスト](https://help.qlik.com/talend/r/ja-JP/8.0/studio-user-guide/testing-spark-jobs-using-test-cases)をご覧ください。

tCollectAndCheckはテスト中のコンポーネントから出力を受け取り、この出力と比較される特定の参照ファイルをロードし、出力が予想された結果と一致するかどうかの情報を返します。

### このセクション内

* [Apache Spark BatchのtCollectAndCheckプロパティ](https://help.qlik.com/talend/ja-JP/components/8.0/technical/tcollectandcheck-properties-for-apache-spark-batch)
* [Apache Spark StreamingのtCollectAndCheckプロパティ](https://help.qlik.com/talend/ja-JP/components/8.0/technical/tcollectandcheck-properties-for-apache-spark-streaming)