reportportal/client-Python

Test result is not coming in Report portal

manvendravsingh opened this issue · 1 comments

Describe the bug
I am using Demo report portal site with pytest integration for my project. Following the steps in documentation and using the flsg "--reportportal" but my test results are not coming in report portal.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Generate API Key, and put the rp_endpoint, rp_api_key, rp_project, rp_launch properties in pytest.ini
  2. created a logger fixture.
  3. use that fixture in test
  4. run pytest using command - pytest --reportportal

Expected behavior
I am expecting Report portal should show the test result in launch.

Actual behavior
Launch and Test results are not available on reportportal

Package versions
Include version info of the following packages: reportportal-client
plugins: depends-1.0.1, html-1.22.0, metadata-2.0.4, reportportal-5.1.8

Additional context
Cases are executing successfully.
C:\Users*\PycharmProjects\MyProject> pytest --reportportal
============================= test session starts =============================
platform win32 -- Python 3.7.0, pytest-3.10.1, py-1.11.0, pluggy-1.0.0 -- C:\Users*
*\AppData\Local\Programs\Python\Python37\python.exe
cachedir: .pytest_cache
metadata: {'Python': '3.7.0', 'Platform': 'Windows-10-10.0.19041-SP0', 'Packages': {'pytest': '3.10.1', 'pluggy': '1.0.0'}, 'Plugins': {'depends': '1.0.
1', 'html': '1.22.0', 'metadata': '2.0.4', 'reportportal': '5.1.8'}}
rootdir: C:\Users\masing\PycharmProjects\MyProject, inifile: pytest.ini
plugins: depends-1.0.1, html-1.22.0, metadata-2.0.4, reportportal-5.1.8
collected 2 items

test_sample.py::TestSample::test_sampleTest1
------------------------------- live log setup --------------------------------
conftest.py 18 INFO Test Started
-------------------------------- live log call --------------------------------
test_sample.py 10 INFO This is Sample Test 1
PASSED [ 50%]
test_sample.py::TestSample::test_sampleTest2
-------------------------------- live log call --------------------------------
PASSED [100%]
------------------------------ live log teardown ------------------------------
conftest.py 20 INFO Test End

========================== 2 passed in 0.04 seconds ===========================

@manvendravsingh Please don't duplicate issues, or this will be treated as spam.