Closed ecarmiel closed 3 years ago
The warning message come from following block of codes. try: response_body = response.json() except ValueError: response_body = response.text if response_body: logger.warn( "Response body content is not JSON. "
Thanks, DoanhPoPu
The warning message come from following block of codes. try: response_body = response.json() except ValueError: response_body = response.text if response_body: logger.warn( "Response body content is not JSON. "
- "Content-Type is: %s" % response.headers["Content-Type"] ) If we're going to support more data format, so the Json validation should be executed if response data is Json. If not, we need to skip validations.
Thanks, DoanhPoPu
Is there a way i can remove this WARN from my tests ?
We need to ask owner @asyrjasalo to change the log level to info (Change logger.warn --> logger.info) It will NOT show into the robot results
We'll probably add a keyword or other customization option to change the log level for the warning.
This has been implemented and merged to Eficode fork of this repository. We'll create a release PR to this repo once we get the release content ready.
Hi i wrote a test for http response 404 , the robot test is passing but there is a Warning. the response i'm getting isn't json but text/plain this is from the server.
My test: