Is there a way that I can create a test suite and add test cases to it through command?
What i want is that whatever test cases are failed in my CI-CD pipeline, I want to re-execute them (only failed tests). I want to create a test suite, add those failed TCs in it and re-execute the stage. All in CI-CD so Im looking for such command.
If you develop a script to read the JUnit_Report.xml file, then you can find which test cases of which test case failed so that you want to run again later.
This requirement has been mentioned before - build a test suite programmatically (with and easy way to take fails form one suite and pass them to a retest-suite).
I would not mind repeating all test cases, regardless passed or failed in the previous run, every time I run a test suite. Especially in a CI/CD process, I would not mind the burden of redoing already-passed tests because my machine takes it and I can be away from the redo.