reportportal / agent-Python-RobotFramework

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

Executing tests with pabot results in multiple launch entries #48

Closed bioneyez closed 4 years ago

bioneyez commented 4 years ago

I've encountered the following problem: When I execute the tests using pabot then there is a launch entry for each test case instead of just one.

How can I resolve this issue?

iivanou commented 4 years ago

@bioneyez You can contribute to the agent.

iivanou commented 4 years ago

What are your versions of both client and agent?

bioneyez commented 4 years ago

Agent

Name: robotframework-reportportal
Version: 5.0.0

Client

Name: reportportal-client
Version: 5.0.1

I've looked into the issue and found the following: https://libraries.io/pypi/robotframework-reportportal-ng

But it seems like it's discontinued. There is an example script to run with pabot, but I don't know if it is still relevant using the official agent or not. Furthermore there is a bunch of function imported from helper and I couldn't find any implementations for them.

Thanks for the help.

iivanou commented 4 years ago

The package you found is a separate package. It's not possible to create the single launch using pabot due to

the specific of Robot Framework architecture, Pabot separates your test suites on multiple tests and runs it in separate processes of pybot.

Launch creation should be done on the pabot side before starting suites in the separate threads, providing them with the launch id. Unfortunately, we can't implement this inside of the agent.

bioneyez commented 4 years ago

Yes I was aware that this is a separate package, but I wanted to make sure that nothing of this sort is implemented. Thanks for the clarification.