Skip to content

Provide custom error message to assertion keywords #162

Closed
@robinmatz

Description

@robinmatz

It would be a nice enhancement to be able to provide a custom error message to the keywords in assertion.py.

We have this feature in BuiltIn in Should Be Equal, Should Be True, and Length Should Be, to name a few.

We could introduce the same msg parameter to let the user provide a custom error message.

The following would be an example of this usage.

Row Count Is Equal To X    selectStatement   1    msg=my error message

I know you can work around this with Query and Length Should Be .

But wouldn't it be nice if the library provided this possibility out of the box?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions