How to execute test cases - 6.4

Talend Data Management Platform Studio User Guide

EnrichVersion
6.4
EnrichProdName
Talend Data Management Platform
task
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

You can run your test cases in different ways: from the Run view, from the Test Cases view, and from the Repository tree view.

Note

While you can run a test case from the Run view for debugging purposes, it is the standard way to run test cases from the Test Cases view. The Test Cases view allows you to add instances for the same test case and execute all of them simultaneously, and view the test case execution history.

To run a test case from the Run view

  1. Open the test case Job and go to the Run tab view.

  2. If you have defined different contexts for your test case, select the desired context for the test form the Context list.

  3. Click Run on the Basic Run vertical tab to run the test case like any other Job, or debug it on the Debug Run vertical tab view.

    The Run console shows whether the compared files are identical.

To run a test case from the Test Cases view

  1. Open the test case Job and go to the Test Cases view.

  2. Right-click the test case name on the left panel and select Run TestCase from the contextual menu.

    All the instances of the test case are executed at the same time. The right panel displays the test case execution results, including history execution information.

    To view the execution results of a test instance including the execution history, or the details of a particular execution, click the corresponding [+] button.

From the Test Cases view, you can also run a test instance individually. To do so, right-click the test instance on the left panel and select Run Instance from the contextual menu.

To run a test case or all test cases of a Job from the Repository tree view

  1. To run a particular test case, right-click the test case in the Repository tree view, and select Run TestCase from the contextual menu.

    To run all the test cases of a Job, right-click the Job and select Run All TestCases from the contextual menu.

  2. When the execution is complete, go to the Test Cases view to check the execution result.

    All the instances of the test case(s) are executed at the same time. The left panel displays the selected test case or all the test cases of the selected Job, and the right panel displays the test case execution results, including history execution information.