# Why is my retry failed executions setting in Katalon executing all test cases again?

**URL:** <https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465>\
**Category:** Miscellaneous\
**Created:** [September 23, 2024, 7:53am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465 "2024-09-23T07:53:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmyakala](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/pmyakala/32/23870_2.png) [@pmyakala](https://forum.katalon.com/u/pmyakala)\
**Post date:** [September 23, 2024, 7:53am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/1 "2024-09-23T07:53:14Z")

</div>

I just want to know which option to use for below scenario:  
Created multiple test cases as a suite, But in test cases folder given tag is applied to multiple scenarios(Like One Test case Folder Test case having one tag name with multiple scenarios (1 Test case equals to multiple scenarios with one tag)) bcz i have **around 2000plus scenarios for that individual tag for every scenario is not consider** Configured as **retry failed executions only in katalon** it’s not working  
What’s happening is It executing again all (passed and failed ) cases in that test case

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [September 23, 2024, 7:53am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/2 "2024-09-23T07:53:14Z")

</div>

Hi there, 👋

Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.

In the meantime, you can _double-check_ your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out **[this posting guide](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919)** to **help us help you better!**

Thanks! 🕶  
Katalon Community team

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [September 24, 2024, 5:37am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/3 "2024-09-24T05:37:35Z")

</div>

Could you share more info how you have configured?

---

<div class="post-metadata">

**Author:** ![pmyakala](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/pmyakala/32/23870_2.png) [@pmyakala](https://forum.katalon.com/u/pmyakala)\
**Post date:** [September 25, 2024, 4:51am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/4 "2024-09-25T04:51:52Z")

</div>

# ================================= **in Feature File:**

**Feature: Sample testing**  
@Smoke  
Scenario: Scenario1 testing  
@Smoke  
Scenario: Scenario2 testing  
@Smoke  
Scenario: Scenario3 testing

**Feature: Sanity Testing**  
@Sanity  
Scenario: Testing1  
@Sanity  
Scenario: Testing2

# ================================ **In Test cases Folder:**

Created **test\_Sample1** as Testcase Name in that **CucumberKW.runFeatureFolderWithTags(‘Include/features’, “@Smoke”)**  
Created **test\_Sample2** as Testcase Name in that **CucumberKW.runFeatureFolderWithTags(‘Include/features’, “@Sanity”)**

# ============================================== **In TestSuite Folder:**

Added:  
test\_Sample1  
test\_Sample2  
Clicked on **Execution Information**  
1)selected **Retry after executing all**  
2)selected **retry failed executions only** given input as **1**

In The Above scenario:  
In Feature: Sample testing **one case failed** and other **two passed** but in **retry** execution it again **executing all 3 cases**

---

<div class="post-metadata">

**Author:** ![phil.henderson](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/phil.henderson/32/23869_2.png) [@phil.henderson](https://forum.katalon.com/u/phil.henderson)\
**Post date:** [September 25, 2024, 4:52am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/5 "2024-09-25T04:52:19Z")

</div>

When I watch test suites run on Test cloud it seems to replay the whole suite multiple times even if no failures. The test reports however shows they only ran each test once

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [September 25, 2024, 6:06am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/6 "2024-09-25T06:06:54Z")

</div>

> [@pmyakala](#):
>
> 1)selected **Retry after executing all**  
> 2)selected **retry failed executions only** given input as **1**

Can you share screenshot of this configuration?

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [September 25, 2024, 6:08am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/7 "2024-09-25T06:08:53Z")

</div>

> [@pmyakala](#):
>
> 2)selected **retry failed executions only** given input as **1**

Can you try only with this option selected?

---

<div class="post-metadata">

**Author:** ![pmyakala](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/pmyakala/32/23870_2.png) [@pmyakala](https://forum.katalon.com/u/pmyakala)\
**Post date:** [September 25, 2024, 6:55am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/8 "2024-09-25T06:55:22Z")

</div>

![config](https://europe1.discourse-cdn.com/katalon/original/3X/6/2/62485b85772577ebf9d38b768a03757af1102d08.png)

Can’t select that one, bcz it is a sub section attched screenshot, I need to run only failed cases not all in testcase

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [September 26, 2024, 6:08am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/9 "2024-09-26T06:08:12Z")

</div>

what happens if you select RETRY FAILED EXECUTIONS IMMEDIATELY?

---

<div class="post-metadata">

**Author:** ![depapp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/depapp/32/29178_2.png) [@depapp](https://forum.katalon.com/u/depapp)\
**Post date:** [October 9, 2026, 9:14am UTC](https://forum.katalon.com/t/why-is-my-retry-failed-executions-setting-in-katalon-executing-all-test-cases-again/147465/10 "2026-10-09T09:14:52Z")

</div>

hi @pmyakala

katalon’s retry works at test case level, and your whole runFeatureFolderWithTags call is one test case, so a retry has no choice but to run all 3 scenarios again. katalon cannot see inside cucumber.

use cucumber’s own rerun plugin instead. first runner writes the failed scenarios to a file:

```groovy
@RunWith(Cucumber.class)
@CucumberOptions(features = 'Include/features', glue = '', tags = '@Smoke',
    plugin = ['pretty', 'rerun:Reports/rerun-smoke.txt'])
public class SmokeRunner {}

```

second runner reads that file:

```groovy
@RunWith(Cucumber.class)
@CucumberOptions(features = '@Reports/rerun-smoke.txt', glue = '',
    plugin = ['pretty'])
public class SmokeRerun {}

```

two test cases, `CucumberKW.runWithCucumberRunner(SmokeRunner)` then `CucumberKW.runWithCucumberRunner(SmokeRerun)`, in that order in the suite, and turn katalon’s retry off. the rerun only touches scenarios that failed, which is what you asked for. with 2000 scenarios you probably also want to split the one big tag into a few runner test cases anyway, so a single failure does not take an hour to retry.
