Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex object from library returned as string #55

Open
Hi-Fi opened this issue Feb 18, 2021 · 0 comments
Open

Complex object from library returned as string #55

Hi-Fi opened this issue Feb 18, 2021 · 0 comments

Comments

@Hi-Fi
Copy link
Collaborator

Hi-Fi commented Feb 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant