You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminology configuration to support usage in generic automation #2788
There's interest to extend Robot Framework's usage from test automation to generic automation like Robotic Process Automation (RPA). In Robot Framework itself the first step into that direction is making terminology configurable so that, for example, instead of talking about test cases, it's possible to use a term like task.
More changes to the core framework are possible in the future, and external libraries and tools will also be created/enhanced as part of this project. Notice that the plan is not to change Robot Framework's focus away from test automation but rather to extend the focus into new but highly related automation activities. The planned changes will be backwards compatible and won't affect the usage in test automation.
This whole initiative will be sponsored by a group of Robot Framework Foundation member companies. The plan is to include the terminology configuration/changes in RF 3.1 and have it released in June 2018. Let us know if there are others interested in being part of the project.
I don't think this is clear. Are you going to deprecate the use of the Test table, or are you simply adding another new concept? I think it would be bad to ever get rid of the Test table, or any of the other existing tables.
Definitely not removing the Test Case table or doing anything else that would be backwards incompatible. The rough plan at the moment is this:
Introduce a new Task table. Everything else exactly like in the Test Case table, but seeing this header turns the framework into "generic automation mode".
Make it an error to have both Task and Test Case tables in one execution round, even if they would be in different files.
If in "generic automation mode", create slightly different log and report than normally. This mainly means using word "Task" instead of "Test" in various places.
UPDATE: See my newer comment below for an updated plan and the current status.
No. At least in the beginning we plan to keep using just the old terminology in options (e.g. --test), keywords (Set Test Variable) and so on. Aliases (e.g. --task, Set Task Variable) can be added in later releases if they are genuinely needed.
After thinking this a bit more and prototyping the implementation in the rpa branch, I think the plan explained in my earlier comment is fine, but I have some additions to it. This is the revisited plan:
Introduce a new Task table. Everything else exactly like in the Test Case table, but seeing this header turns the framework into "generic automation mode".
Make it an error to have both Task and Test Case tables in one execution round, even if they would be in different files.
Introduce new command line option to control the mode. When this option is used, both Task and Test Case tables can be used and on only the option controls the mode. This allows running existing tests (i.e. tasks) that also need to support older RF versions, and is also a workaround for editors not supporting the Task header initially.
If in "generic automation mode", create slightly different log and report than normally. This mainly means using word "Task" instead of "Test" in various places.
Introduce --task command line option as an alias for --test. Similar aliases can be added to other command line options and keywords in the future based on needs.
Related to the option to set the mode (point 3. above), we still need to decide is this option a flag that takes no arguments like --xxx, or should accept the mode as argument like --mode xxx. The latter would be more flexible if we were to add more modes, but I doubt we ever need that. We obviously also need to decided the name of the option (or the mode). --rpa would be short simple, but I'm not sure do we want to get tied into that terminology in the long run. Something like --genericautomation is too long and cumbersome, and --tasks would be somewhat ambiguous and easily confuses with possible --task option (point 5. above). Comments about this are appreciated!
The current progress in the rpa branch is that points 1. and 4. are done. In addition to the missing 2., 3. and 5., the feature also needs tests and documentation. If you want to test the current functionality before it is merged to master and released, you can install the branch simply using this command:
Lot of fine-tuning done by the above commits. Most important changes:
Many error messages fixed to use "task" instead of "test" in RPA mode or changed them to be neutral. If you still encounter errors talking about tests when using the latest code (or alpha 2 or newer once the latest changes are released), please comment here.
It is an error to have tasks and tests in same file.
The main missing feature is supporting "Task Setup/Teardown/Template/Timeout" settings. Also documentation still missing.
The above commits added support for Task Setup/Teardown/Template/Timeout settings, changed test timeouts to be reported as task timeouts in the RPA mode, and also added Set Task Variable as an alias for Set Test Variable. These changes will be included in alpha 2 to be released next week, but those interested to test them can also install the latest code directly from GitHub.
All planned changes related to the RPA terminology are now done. Because we have separate issue #2855 about documentation, I consider this issue ready to be closed. If incorrect terminology is still found from error messages or elsewhere after the latest changes, please comment here. New functionality related to further RPA enhancements need to be submitted as separate issues.
Activity
pekkaklarck commentedon Mar 19, 2018
We haven't yet made final decision what terms to use but this is the current thinking:
pekkaklarck commentedon Mar 19, 2018
How to handle the actual configuration is a more complicated topic. Here are some ideas:
*** Tasks ***header.--extensionoption instead.boakley commentedon Mar 27, 2018
I don't think this is clear. Are you going to deprecate the use of the
Testtable, or are you simply adding another new concept? I think it would be bad to ever get rid of theTesttable, or any of the other existing tables.pekkaklarck commentedon Mar 27, 2018
Definitely not removing the
Test Casetable or doing anything else that would be backwards incompatible. The rough plan at the moment is this:Introduce a new
Tasktable. Everything else exactly like in theTest Casetable, but seeing this header turns the framework into "generic automation mode".Make it an error to have both
TaskandTest Casetables in one execution round, even if they would be in different files.If in "generic automation mode", create slightly different log and report than normally. This mainly means using word "Task" instead of "Test" in various places.
UPDATE: See my newer comment below for an updated plan and the current status.
adam-wypych commentedon Mar 28, 2018
Do you plan to any changes regarding this feature in ( Test ) Listener API?
pekkaklarck commentedon Mar 28, 2018
No. At least in the beginning we plan to keep using just the old terminology in options (e.g.
--test), keywords (Set Test Variable) and so on. Aliases (e.g.--task,Set Task Variable) can be added in later releases if they are genuinely needed.Allow running "tasks" in addition to "tests".
pekkaklarck commentedon May 18, 2018
After thinking this a bit more and prototyping the implementation in the rpa branch, I think the plan explained in my earlier comment is fine, but I have some additions to it. This is the revisited plan:
Introduce a new
Tasktable. Everything else exactly like in theTest Casetable, but seeing this header turns the framework into "generic automation mode".Make it an error to have both
TaskandTest Casetables in one execution round, even if they would be in different files.Introduce new command line option to control the mode. When this option is used, both
TaskandTest Casetables can be used and on only the option controls the mode. This allows running existing tests (i.e. tasks) that also need to support older RF versions, and is also a workaround for editors not supporting theTaskheader initially.If in "generic automation mode", create slightly different log and report than normally. This mainly means using word "Task" instead of "Test" in various places.
Introduce
--taskcommand line option as an alias for--test. Similar aliases can be added to other command line options and keywords in the future based on needs.Related to the option to set the mode (point 3. above), we still need to decide is this option a flag that takes no arguments like
--xxx, or should accept the mode as argument like--mode xxx. The latter would be more flexible if we were to add more modes, but I doubt we ever need that. We obviously also need to decided the name of the option (or the mode).--rpawould be short simple, but I'm not sure do we want to get tied into that terminology in the long run. Something like--genericautomationis too long and cumbersome, and--taskswould be somewhat ambiguous and easily confuses with possible--taskoption (point 5. above). Comments about this are appreciated!The current progress in the rpa branch is that points 1. and 4. are done. In addition to the missing 2., 3. and 5., the feature also needs tests and documentation. If you want to test the current functionality before it is merged to master and released, you can install the branch simply using this command:
pekkaklarck commentedon May 30, 2018
Decided to name the option to turn the generic automation more
--rpa. Short and easy to understand for anyone in the domain.Allow running "tasks" in addition to "tests".
Finalizing support to run tasks in addition to tests.
13 remaining items
Neutral error messages regarding to tests/tasks.
Report correct mode in RPA mode with --dotted
Fix reading rpa info from output.xml with ExecutionResult.
Correct error msg with --rpa and --rerunfailed. See #2788.
Add rpa info to all suite objects. See #2788.
More error message fixes when using RPA mode. See #2788.
pekkaklarck commentedon Jun 11, 2018
Lot of fine-tuning done by the above commits. Most important changes:
Many error messages fixed to use "task" instead of "test" in RPA mode or changed them to be neutral. If you still encounter errors talking about tests when using the latest code (or alpha 2 or newer once the latest changes are released), please comment here.
It is an error to have tasks and tests in same file.
The main missing feature is supporting "Task Setup/Teardown/Template/Timeout" settings. Also documentation still missing.
RPA aliases for Test Setup/Teardown/Template/Timeout.
Add "Set Task Variable" alias for "Set Test Variable".
pekkaklarck commentedon Jun 13, 2018
The above commits added support for
Task Setup/Teardown/Template/Timeoutsettings, changed test timeouts to be reported as task timeouts in the RPA mode, and also addedSet Task Variableas an alias forSet Test Variable. These changes will be included in alpha 2 to be released next week, but those interested to test them can also install the latest code directly from GitHub.All planned changes related to the RPA terminology are now done. Because we have separate issue #2855 about documentation, I consider this issue ready to be closed. If incorrect terminology is still found from error messages or elsewhere after the latest changes, please comment here. New functionality related to further RPA enhancements need to be submitted as separate issues.
Avoid word "test" in Libdoc output when library has no own doc.
Document RPA functionality.