robotframework / robotframework/RIDE
Autocomplete - keyword order issues
@Nyral is already working on this.
Since Sep 6, 2019.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.