robotframework / robotframework/RIDE

Renaming an argument should also rename its usage in the keyword

Open
#1,531 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

analyze enhancement prio-medium
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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.