robotframework / robotframework/RIDE
Renaming an argument should also rename its usage in the keyword
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 385
- Avg merge
- 13m
- Merged PRs (30d)
- 2
Description
Assume you have a keyword in a robot-test files that defines an argument ${arg}. Typically, this argument is used (at least) once in the code of the keyword.
Now if you rename the argument via robotide (e.g. to ${argument}), its usage is NOT renamed at the same time, which produces a syntax error. It would be desirable that all usages of this argument are also updated.
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.
Research direction
Reproduce the issue in RIDE by renaming a keyword argument such as ${arg} to ${argument}; no file or test is named in the report. Trace the argument-renaming entry point and how keyword body usages are represented. Done means usages are updated with the argument and the resulting Robot Framework data has no syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100