robotframework / robotframework/RIDE

Autocomplete - keyword order issues

Open
#1,628 0 comments 0 reactions 1 assignee View on GitHub

@Nyral is already working on this.

Since Sep 6, 2019.

enhancement prio-low
Dominant language
Python
Stars
1k
Forks
385
Avg merge
13m
Merged PRs (30d)
2

Description

Having some problem with autocompletion order of keywords.

The structure I use is using PageObjects structure, i.e.

  • Sources
    -- Test Cases
    --- Suite 1
  • Resources
    -- common.robot
    -- portal.robot
    -- PageObjects
    --- administration.institution.businessunits.businessunit.robot
    --- administration.institution.businessunits.robot
    --- administration.institution.users.robot
    --- administration.institution.users.user.robot
    --- administration.robot
    --- footer.robot
    --- landingpage.robot
    --- modal-dialog.robot
    --- screening.robot
    --- topnav.robot
    --- aaa.default.robot

In the PO resources I have several keywords, like "view details", "get count of xyz", "click button A", "click button B" etc. In all the .robo files I have manually sorted the keywords alphabetically (A-Z)

When in the upper level file, portal.robot I define keywords and try to use autocompletion I'd expect it to be sorted by alphabet but it's not (in fact I don't know what's the order, can't evaluate it).
Example:

In the keyword "X1 " in portal.robot I put string "Admin" and use autocomplete (Ctrl+Space). This is the list I get:

administration.institution.users --> few keywords from this file
administration.robot --> few keywords from this file
administration.institution.businessunits --> few keywords from this file
administration.institution.users --> few keywords from this file
administration --> few keywords from this file
administration.institution.users --> few keywords from this file
[...]

The logical order for me would be:
administration --> all keywords
administration.institution.businessunits --> all keywords
administration.institution.businessunits.businessunit --> all keywords
administration.institution.users --> all keywords
administration.institution.users.user --> all keywords

or all the keywords begininning with the gives string in alphabetic order.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.