-
Notifications
You must be signed in to change notification settings - Fork 86
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
robotframework and reportportal v5 reporting failing to get launch_id #66
Comments
@terminal-illness Currently, RP version 5 is not supported by Python client. |
Ah cool thanks, will it be supported anytime soon? I see the RP team have v5 in master. |
Yeah, we will update the client soon. |
Awesome thanks, please shout if you would like any assistance with testing. Should I close? or we leave it here until the update in case other guys having similar issues? |
Let's keep it for now. |
I can help you for any testing required I am facing below error while executing Robot framework test case (similar to @terminal-illness ) Command: robot --listener robotframework_reportportal.listener --variable RP_UUID:"UUID" --variable RP_ENDPOINT:"http://IP:8080" --variable RP_LAUNCH:"superadmin_TEST_EXAMPLE" --variable RP_PROJECT:"superadmin_personal" F:\Program\Robot\RF_Sample.robot Trace:The user can search for flights
|
@iamtech123 RP version 5 is not currently supported by the agent. |
@iivanou Thanks for the update. I can help you on any testing requirements. |
Now i am able to run the robot test cases with V5. Thank you very much for the support. |
@iamtech123 You are welcome! |
I did some debugging and it looks like start_launch, start_test_item, finish_test_item throw 400 responses when using reportportal_client to report to version 5 of reportportal. I can see in the url is going to api/v1. Not sure if there is a param to pass to tell the client lib its reporting to v5.
Changing the api/v2 doesn't help either. Looks like its failing to get the launch_id.
File "\venv\lib\site-packages\reportportal_client\service_async.py", line 234, in process_item
getattr(self.rp_client, method)(kwargs)
File "\venv\lib\site-packages\reportportal_client\service.py", line 160, in start_launch
self.launch_id = _get_id(r)
File "\venv\lib\site-packages\reportportal_client\service.py", line 32, in _get_id
return _get_data(response)["id"]
File "\venv\lib\site-packages\reportportal_client\service.py", line 55, in _get_data
raise ResponseError(error_messages[0])
reportportal_client.errors.ResponseError: Incorrect Request. [Field 'attributes[].value' should have size from '1' to '128'.] [Field 'attributes[].value' should not contain only white spaces and shouldn't be empty.]
\venv\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Traceback (most recent call last):
File "\venv\lib\site-packages\reportportal_client\service_async.py", line 234, in process_item
getattr(self.rp_client, method)(kwargs)
File "\venv\lib\site-packages\reportportal_client\service.py", line 223, in start_test_item
item_id = _get_id(r)
File "\venv\lib\site-packages\reportportal_client\service.py", line 32, in _get_id
return _get_data(response)["id"]
File "\venv\lib\site-packages\reportportal_client\service.py", line 55, in _get_data
raise ResponseError(error_messages[0])
reportportal_client.errors.ResponseError: Incorrect Request. [Field 'launchUuid' should not be null.]
Traceback (most recent call last):
File "\venv\lib\site-packages\reportportal_client\service_async.py", line 234, in process_item
getattr(self.rp_client, method)(**kwargs)
File "\venv\lib\site-packages\reportportal_client\service.py", line 223, in start_test_item
item_id = _get_id(r)
File "\venv\lib\site-packages\reportportal_client\service.py", line 32, in _get_id
return _get_data(response)["id"]
File "************\venv\lib\site-packages\reportportal_client\service.py", line 55, in _get_data
raise ResponseError(error_messages[0])
reportportal_client.errors.ResponseError: Incorrect Request. [Field 'launchUuid' should not be null.]
**************\venv\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
**************\venv\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
\venv\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
\venv\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
...
<Response [201]>
Traceback (most recent call last):
File "\venv\lib\site-packages\reportportal_client\service_async.py", line 233, in process_item
self._post_log_batch()
File "\venv\lib\site-packages\reportportal_client\service_async.py", line 203, in _post_log_batch
self.rp_client.log_batch(self.log_batch)
File "**\venv\lib\site-packages\reportportal_client\service.py", line 335, in log_batch
return _get_data(r)
File "\venv\lib\site-packages\reportportal_client\service.py", line 58, in _get_data
"\n - ".join(["Multiple errors:"] + error_messages))
reportportal_client.errors.ResponseError: Multiple errors:
%%%%%%%%%%%%%%
The text was updated successfully, but these errors were encountered: