# Single --rerunfailed command based on any execution type

**URL:** <https://forum.robotframework.org/t/single-rerunfailed-command-based-on-any-execution-type/5200>\
**Category:** Robot Framework\
**Created:** [22 January 2023 13:07 UTC](https://forum.robotframework.org/t/single-rerunfailed-command-based-on-any-execution-type/5200 "2023-01-22T13:07:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_k](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@a\_k](https://forum.robotframework.org/u/a_k)\
**Post date:** [22 January 2023 13:07 UTC](https://forum.robotframework.org/t/single-rerunfailed-command-based-on-any-execution-type/5200/1 "2023-01-22T13:07:23Z")

</div>

Hi,  
Is there a single command to re-run failed test cases from the original\_result\_output.xml files generated by following execution types:

1. Execution by tags:

> robot --report original\_result\_report.html --output original\_result\_output.xml -i \<test\_tags\> tests

_Rerun_: works fine

> robot --report report.html --output rerun\_output.xml -R original\_result\_output.xml tests

1. Execution by Robot file:

> robot --report original\_result\_report.html --output original\_result\_output.xml \<path\_to\_robot\_file\>

_Rerun_: Same command as for tags-execution doesn’t work

> robot --report report.html --output rerun\_output.xml -R original\_result\_output.xml tests

Error:

> '[ERROR] Suite ‘Tests’ contains no tests matching name \<test\_suite\_name.test\_case\_name, …\>

_Rerun_: providing path to the robot file from original execution makes it work

> robot --report report.html --output rerun\_output.xml -R original\_result\_output.xml \<path\_to\_robot\_file\>

1. Specific test cases:

> robot --report original\_result\_report.html --output original\_result\_output.xml --test \<test\_id\> \<path\_to\_robot\_file\>

_Rerun_: also works only when providing a path to robot file from original execution

> robot --report report.html --output rerun\_output.xml -R original\_result\_output.xml \<path\_to\_robot\_file\>

_Rerun_: Same command as for tags-execution also doesn’t work and throws the same error

> robot --report report.html --output rerun\_output.xml -R original\_result\_output.xml tests

Error:

> '[ERROR] Suite ‘Tests’ contains no tests matching name \<test\_suite\_name.test\_case\_name, …\>

Is there any way to same command for tags/test\_names/path\_to\_files executions for re-running tests based on output.xml?
