robotframework / robotframework/robotframework.github.com
'Reverse List' does not return any values in the Variables - Lists examples
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 83
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
The example 2_Lists.robot in the Variables in the "Getting started" section contains a mistake, see https://robotframework.org/?tab=0&example=Variables#getting-started
Incorrect example:
Test with some Collections keywords
${list}= Create List 1 2 3
Append To List ${list} 4 5 6
${list2}= Create List 7 8 9
${new_list}= Combine Lists ${list} ${list2}
${reversed}= Reverse List ${new_list}
Log To Console ${reversed}
The keyword Combine Lists does not return any values, but only affects to the variable given to the keyword. As a result, the last line will log a None value.
Correction:
Reverse List ${new_list}
Log To Console The reversed list: ${new_list}
Contributor guide
No contributing guide indexed for this repository
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
Open the Variables “Getting started” example 2_Lists.robot and compare the Combine Lists/Reverse List lines with the issue. Update the example so Reverse List operates on new_list and the console logs that list, then verify the rendered example no longer prints None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100