robotframework / robotframework/RIDE

"Set Test Variable" - RIDE incorrectly gives error message "Argument: name Unknown variable"

Open
#1,351 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Originally submitted to Google Code by WillDe... on 2 Dec 2013

Version - RIDE 1.2.2 running on Python 2.7.6
Robot Version - Robot Framework 2.8.2

  1. Create a new test, test suite, etc
  2. Add 2 lines:
    Set Test Variable ${LoginUrl} http://google.com
    Open Browser ${LoginUrl}

Problem - both field are purple (indicating a bad value), and if you hover over them they say:
"Argument: name Unknown variable"
"Argument: url Unknown variable"

(See attached .png file for screenshot)

Thing is -

  1. This is completely valid syntax
  2. If you run it - it run just fine. RobotFramework runs this, despite RIDE saying there's an error.

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 two-line example in RIDE 1.2.2 with Python 2.7.6 and Robot Framework 2.8.2, focusing on validation of Set Test Variable and Open Browser arguments. Trace why valid variables are marked unknown even though Robot Framework runs the test successfully; done means the false error indicators and hover messages no longer appear.

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.