Search code examples
robotframework

What is the Different between Tasks and Test Cases in Robot Framework?


I am learning the Robot Framework for my automation test cases. I found some code has sections that is Tasks. I want to know if they are different and how to use them in the correct way?


Solution

  • The only difference is the name, and the fact that tests are created in a tests section (e.g. *** Test Cases ***) and tasks are created in a tasks section (e.g. *** Tasks ***). Otherwise, they are identical.

    This is from the robot framework user guide:

    For most parts creating tasks works the same way as creating tests and the only real difference is in terminology. Tasks can also be organized into suites exactly like test cases.