Testing Jobs and Services using test cases
Talend Studio comes with a test framework that allows you to create test cases to test your Jobs and Services during Continuous Integration development to make sure they will function as expected when they are actually executed to handle large datasets.
This feature is not shipped with Talend Studio by default. You need to install it using the Feature Manager. For more information, see Installing features using the Feature Manager.
By creating a test case, you can verify whether the following will work as expected:
- a data flow
- one or more components
- multiple subJobs
Note that when you create a test case for one or more components that do not constitute a data flow or for multiple subJobs, the Create a Test Skeleton check box will not be operable and you need to complete the test case by adding components of your choice manually.
This section describes how to create, set up, and execute a test case based on the tMap Job example elaborated in Data Integration Job Examples.
To test a service, open the data service Job and follow the same procedure as the data integration Job to create, set up, and execute a test case for the data service Job.
Before creating a test case for a Job, make sure all the components of your Job have been configured.