Closed allen1986 closed 2 years ago
Hi @allen1986
Should Be Equal As Strings
is a builtin keyword, not a keyword in this library. $.code
doesn't evaluate into your response since the builtin keyword doesn't know anything about your response object.
You can store the response into a variable and then evaluate if that is equal to your expected value, e.g
${code}= Output $.code
Should Be Equal As Strings ${code} 40001
or you can use the String
or Integer
keywords directly to check whether the code is expected, e.g.
String $.code 40001
Closing issue as there is no new information.
I got wrong response when use RESTInstance GET method, the response contains some weird chracter seems like color code. below is test case and response: