Skip to content

Complex object from library returned as string #55

Description

@Hi-Fi

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions