jrobotremoteserver icon indicating copy to clipboard operation
jrobotremoteserver copied to clipboard

Complex object from library returned as string

Open Hi-Fi opened this issue 4 years ago • 0 comments

When running basic test like this:

Get Google
    Create Session    google    ${sessionURL}
    ${resp}    Get Request    google    /
    Should Be Equal As Strings    ${resp.status_code}    200
    Log    ${resp.content}

Using HttpRequestLibrary remotely with jrobotremoteserver 4.0.1 I'm getting error: Jython runner: Resolving variable '${resp.status_code}' failed: AttributeError: 'unicode' object has no attribute 'status_code' Python 3 runner: Resolving variable '${resp.status_code}' failed: AttributeError: 'str' object has no attribute 'status_code'

Seems that there's some type conversion done incorrectly at the response handling.

Hi-Fi avatar Feb 18 '21 18:02 Hi-Fi