Have setup jenkins pipline with my robot framework but my project structure is
Parent folder/
│
├── module 1/
│ ├── TC1.robot
│ └── TC2.robot
│
└── module 2/
├── TC1.robot
└── TC2.robot
I am running command to execute test cases in below way
robot -d results path/to/module1/
then all test cases get executed and same for module2 but then I do rebot to merge all test case. I would like to get some input on how can I execute all test cases in one go in jenkins and if some test cases fail I should be able to re execute and rebot all test cases and send final report.
I tried to write execute as windows command in jenkins. Path to all module test cases rerun failed test cases rebot
but that script has become long. can someone please provide best way to execute?