robotframework / robotframework/robotframework
Enhancement for validation keywords - support returning boolean value
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.9k
- Forks
- 2.6k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 10
Description
A couple of weeks ago i have raised an issue (find it here: #5478 ) for adding keywords which return only a boolean value instead of raising an error directly like some keywords from the OperatingSystem Library do currently, like e.g. File Exists or Directory Exists.
The issue got closed because it makes no sense to just duplicate those keywords with the only difference to return that boolean value.
Pekka's answer:
The issue needs to be solved in a more generic manner for all validation keywords which are currently just throwing an error message. A special syntax can be introduced to convert the failure / non-failure status to a boolean value which is returned in that case.
From my point of view, i would be fine with having a new keyword argument to define if an error should be raised or a boolean value should be returned - maybe this makes sense ?
This issue should be used to discuss the requirement & figure out the best-possible solution.
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
Start by reading issue #5478 and reviewing the validation keywords in the OperatingSystem Library, including File Exists and Directory Exists. Define a generic way to convert validation success or failure into a boolean without duplicating keywords; done means the behavior and syntax are agreed for the affected validation keywords.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100