reportportal / agent-python-pytest

Framework integration with PyTest
Apache License 2.0
94 stars 103 forks source link

Each test item has detailed logs in RP, but the launch lacks logs in LOG VIEW #352

Closed SteffieLi closed 10 months ago

SteffieLi commented 10 months ago

Hi,

After I used agent-python-pytest to import test results to report portal, for every launch in my RP project, there is no logs.

image

But when I go to each test item, there are detailed logs.

image

Is this normal? I'm not sure if there's a configuration setting I've set incorrectly.

Here is my pytest.ini:

[pytest] addopts = -v -s --capture=tee-sys -n 8 --dist=loadgroup --reruns 1 --reportportal --headed --video on

rp_uuid = fb586627-32be-47dd-93c1-678873458a5f rp_endpoint = http://192.168.1.10:8080 rp_project = user_personal rp_launch = local - debug rp_ignore_attributes = 'usefixture' rp_is_skipped_an_issue = False rp_hierarchy_code = True rp_log_level = INFO

HardNorth commented 10 months ago

@SteffieLi Yes, it is expected. RP agents put logs to the corresponding item in which context they were reported. What makes you think different?

SteffieLi commented 10 months ago

I just thought that all logs would also be displayed at the launch level. Thanks!