How to setting test suite to run sequence


As picture,
** How to config TestSuite to execute test case as sequence**
Start → TC1–> TC2–> TC3 —> Next Loop (Depend on DataFile)
Start → TC1–> TC2–> TC3 —> Next Loop

But in the test log will see step as
Start → TC1 → TC1 → TC2 —> TC3 —> TC3

TestSuite.png

2 Likes

I have the same problem. How to solve this?

You can’t control test suite execution flow. Test Cases are executed from top to bottom according to its order.

Regards

Chanin and Roberta,

The execution approach is designed as Alex’s comment. Since each test case in test suite might have different data file so it could not run the whole flow and then start a new one.

One possible solution is create a new test case, ie TC, in which, we call those 3 test cases in order. Then we could add this TC into the test suite and execute with single data file.

It’s 2025 now –- do we have any better solution for this requirement? I feel, if we have to create the master test case then what’s the difference between it and Test Suite?

Based on the Katalon Studio documentation, I can now explain the issue you’re experiencing and provide the solution.

Problem Analysis

You want to execute test cases in sequence:

Start → TC1 → TC2 → TC3 → Next Loop (based on DataFile)

But you’re seeing duplicates in the test log:

Start → TC1 → TC1 → TC2 → TC3 → TC3

This typically occurs when:

  1. Test cases are added multiple times to the test suite
  2. Data-driven testing is configured incorrectly - causing test cases to execute multiple times per data row
  3. Retry logic is enabled - causing duplicate executions on failure

Solution: Configure Test Suite for Sequential Execution

Step 1: Create Test Suite with Correct Test Case Order

According to the Manage Test Suites documentation:

  1. Open your test suite
  2. In the Execution Information panel, add test cases in the order you want them executed:
    • No. 1 → TC1
    • No. 2 → TC2
    • No. 3 → TC3

Important: Each test case should appear only ONCE in the list. Do not add the same test case multiple times.


Step 2: Configure Data-Driven Testing (If Using DataFile)

If you want to loop through multiple data rows, follow the Data-Driven Testing in Test Suite guide:

  1. Click “Show Data Binding” in the test suite editor
  2. Select each test case and choose “Use Variables and Binding at Suite Test Case”
  3. Add your data file in the Test Data table
  4. Map variables to data columns using the Variable Binding section
  5. Run the test suite

Expected Result: The test suite will execute TC1 → TC2 → TC3 for each row in your data file, without duplicates.


Step 3: Verify Execution Order in Log Viewer

After execution, check the Log Viewer to confirm the correct sequence:

Test Suite Execution:
├─ Data Row 1:
│  ├─ TC1 (0.360s) ✓
│  ├─ TC2 (0.200s) ✓
│  └─ TC3 (0.150s) ✓
├─ Data Row 2:
│  ├─ TC1 (0.360s) ✓
│  ├─ TC2 (0.200s) ✓
│  └─ TC3 (0.150s) ✓

Common Causes of Duplicate Test Cases in Logs

Issue Cause Solution
TC1 → TC1 → TC2 → TC3 → TC3 Test cases added multiple times Remove duplicate entries from test suite
Repeated execution per data row Data binding misconfigured Ensure “Use Variables and Binding at Suite Test Case” is selected
Extra executions Retry logic enabled Check Execution Information for retry settings