If a test case fails due to an error, I fix the issue and want to rerun the test from the same session

While running test cases in Robot Framework, if a test case fails due to an error, I fix the issue and want to rerun the test from the same session. How can I achieve this?

Example:
An incorrect XPath in step 15 causes the failure, I want to fix the XPath and rerun the test starting from step 15 in the same session.

I am using the vscode.

Not possible afaik.

Hi,

Indeed I don’t think this is possible to “resume” as in tools like Test Complete for example.
Mainly because of variables and context (where you are in the test).

What is the purpose/goal for you?

  • Setup and build the test case sequentially and step by step
  • Or you need this when running tests on a regular basis?

In debug mode (with VSCode and Robotcode) after failure and fix you can copy the rest of test, and paste it in debug terminal and run the part.
You may have to redefine some variables, and will lose the debugging F11/breakpoints behavior but this works.

Regards
Charlie

3 Likes