Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 658
Cường Nguyễn Avatar asked Oct 22 '25 16:10

Cường Nguyễn


1 Answers

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.

like image 199
Bryan Oakley Avatar answered Oct 25 '25 08:10

Bryan Oakley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!