-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
Description
Describe the bug
No error message or exception when trying to send log to report portal through below function.
Steps to Reproduce
Below are the functions to reproduce the issue:
def start(self,launch_name, launch_description, test_name, test_description):
# Start launch.
launch = self.client.start_launch(name=launch_name,
start_time=timestamp(),
description=launch_description)
if launch == None:
print(f"RP - Failed to start launch")
self.item_id = self.client.start_test_item(name=test_name,
description=test_description,
start_time=timestamp(),
item_type="STEP")
if self.item_id == None:
print(f"RP - Failed to start test item")
else:
print(f"RP - Test Item started successfully: {self.item_id}")
def logStep(self, step_description):
# Create text log message with INFO level.
response = self.client.log(time=timestamp(),
message= step_description,
level="INFO", item_id= self.item_id)
if response == None :
print(f"RP - Failed to log step: - {response}")
else:
print(f"RP - Step logged successfully: {response}")
Expected behavior
After launching the launch and adding new test item, log is successfully sent.
Actual behavior
After launching the launch and adding new test item, but log is not successfully sent and no error message for why log was not successfully from log() function.
Package versions
Include version info of the following packages: reportportal-client - 5.6.5
Additional context
Add any other context about the problem here.