# How to re-run failed test cases

Leapwork comes with a REST API, allowing any third-party system to schedule and run automation flows on the platform and retrieve the results. Rarely, runs that are scheduled through a third-party system may fail and we may need to rerun those failed test cases of the schedule.

In Leapwork, we can manually re-run failed flows of a schedule.

- To re-run the failed test case manually, go to the Reporting section.

We can expand the **Group by** selector and filter by Schedule.

Right-click on any of the scheduled flows to see several ways of acting on the flow, including the option to re-run the selected flow.

### The following options are available for each flow, pertaining to re-run:

- **Re-run selected flow(s)**: Selecting this option will re-run the selected flow in the schedule.
- **Re-run failed flow(s)**: Selecting this option will re-run all the failed flows in the schedule.
- **Re-run schedule**: Selecting this option will run our entire schedule again.

**For clarification, please contact our [Priority Support](mailto:prioritysupport@leapwork.com "mailto:prioritysupport@leapwork.com").**
