I use robot framework at following environment.
- Python 2.7.6
- robotframework 2.8.7
- Ubuntu 14.04.3 LTS
I test REST API, with keyword like this.
MyKeyword
Send Request -> Check Response Status Code -> Return Response content
And I use this keyword in negative case like followings.
Run Keyword And Expect Error 400 != 201 MyKeyword @args
In this case, if status code is 401, robot fails with this messages.
Expected error '400 != 201' but got '401 != 201'.
But I want to check that request will be rejected because of client reason,
so I wish status code were 40X.
How can I set Run Keyword And Expect Error ambiguous expected message?