Skip to content

Terminology configuration to support usage in generic automation #2788

Closed

Description

@pekkaklarck

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.

Activity

  1. added this to the milestone on Mar 19, 2018
  2. pekkaklarck commented on Mar 19, 2018

    @pekkaklarck
    MemberAuthor

    We haven't yet made final decision what terms to use but this is the current thinking:

    • Instead of test case we are planning to use task. This may still change is a better term is found.
    • We need a new term for test suite. One possibility is just to use suite. Any other ideas?
    • We have decided to keep using the term keyword.
  3. pekkaklarck commented on Mar 19, 2018

    @pekkaklarck
    MemberAuthor

    How to handle the actual configuration is a more complicated topic. Here are some ideas:

    • Recognize tasks by *** Tasks *** header.
    • Make it an error to have both tasks and tests in same execution. This includes tests and tasks in different files executed together.
    • When tasks are executed, change terminology in generated logs/reports as well.
    • Possibly support (or even require) new extension. Most likely better use the existing --extension option instead.
  4. boakley commented on Mar 27, 2018

    @boakley

    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.

  5. pekkaklarck commented on Mar 27, 2018

    @pekkaklarck
    MemberAuthor

    Definitely not removing the Test Case table or doing anything else that would be backwards incompatible. The rough plan at the moment is this:

    1. 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".

    2. Make it an error to have both Task and Test Case tables in one execution round, even if they would be in different files.

    3. 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.

  6. adam-wypych commented on Mar 28, 2018

    @adam-wypych

    Do you plan to any changes regarding this feature in ( Test ) Listener API?

  7. pekkaklarck commented on Mar 28, 2018

    @pekkaklarck
    MemberAuthor

    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.

  8. pekkaklarck commented on May 18, 2018

    @pekkaklarck
    MemberAuthor

    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:

    1. 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".

    2. Make it an error to have both Task and Test Case tables in one execution round, even if they would be in different files.

    3. 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.

    4. 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.

    5. 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:

    pip install https://github.com/robotframework/robotframework/archive/rpa.zip
    
  9. pekkaklarck commented on May 30, 2018

    @pekkaklarck
    MemberAuthor

    Decided to name the option to turn the generic automation more --rpa. Short and easy to understand for anyone in the domain.

  10. 13 remaining items

  11. pekkaklarck commented on Jun 11, 2018

    @pekkaklarck
    MemberAuthor

    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.

  12. pekkaklarck commented on Jun 13, 2018

    @pekkaklarck
    MemberAuthor

    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.

  13. added a commit that references this issue on Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions