reportportal / agent-Python-RobotFramework

Robot Framework integration for Report Portal
Apache License 2.0
59 stars 33 forks source link

Listener has json issue on windows OS #4

Closed JuyoungAn closed 7 years ago

JuyoungAn commented 7 years ago

When I ran robot framework with report portal listener on Windows, I got error which is 'No JSON object could decoded'. It worked on Mac OS.

[OS] Windows 7 x86

[Ver] Python 2.7.13 RF 3.0.2 report portal listener 2.5.4

[Test Data] tp2.txt Test Cases test1 test keyword abcd

Keywords test keyword [Arguments] ${msg} log ${msg}

[Repro]

  1. run tp2.txt

    pybot -v RP_UUID:"xxx" -v RP_ENDPOINT:"xxx" -v RP_LAUNCH:"xxx" -v RP_PROJECT:"xxx" --listener robotframework_reportportal.listener tp2.txt

  2. Result

    image

ailjushkin commented 7 years ago

Try to run your code with Fiddler. Catch a request to RP, select and watch what was a value of a request uri.

It seems listener construct wrong request string and response comes empty, and because of that, empty response could not be decoded.

ailjushkin commented 7 years ago

And please update listener package through pip.

JuyoungAn commented 7 years ago

I upgraded the Listener and captured URI by Fiddler. Here is reportportal.zip. reportportal.zip

ailjushkin commented 7 years ago

I'm sorry. This is a problem with python client. We need to bump its version to be able to fix your problem. This: https://github.com/reportportal/client-Python/pull/3 And this: https://github.com/reportportal/agent-Python-RobotFramework/pull/5/files

DzmitryHumianiuk commented 7 years ago

@PositiveAlex done done

JuyoungAn commented 7 years ago

Version 2.5.5 is working very well. Thank you so much!

ailjushkin commented 7 years ago

It was nothing! Good to know πŸ‘

Π²Ρ‚, 21 ΠΌΠ°Ρ€Ρ‚Π° 2017, 3:38 Andrew notifications@github.com:

Closed #4 https://github.com/reportportal/agent-Python-RobotFramework/issues/4.

β€” You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/reportportal/agent-Python-RobotFramework/issues/4#event-1007748456, or mute the thread https://github.com/notifications/unsubscribe-auth/ADTVakYk0mVoazLvrw6SiJt9w1baJaHIks5rnxwigaJpZM4Mh96c .

--

Π‘ ΡƒΠ²Π°ΠΆΠ΅Π½ΠΈΠ΅ΠΌ, Илюшкин АлСксандр. E-mail: positivealex@gmail.com