reportportal / agent-ruby

Agent - Ruby Cucumber and RSpec formatters
Apache License 2.0
15 stars 43 forks source link

[QUESTION]: is there a way to Merge the Parallel threads in one #35

Open bheemreddy181-zz opened 5 years ago

DzmitryHumianiuk commented 5 years ago

@bheemreddy181 there 2 ways, how another integrations make this:

  1. Start launch in advance to threads. Share launch id with threads. Run threads. Finish launch once latest thread completed

  2. Run all threads separately. Collect IDs of launches or add specific tag to find launches later. Call Merge function via API for collected array of IDs.

http://reportportal.io/docs/Operations-under-launches%3Emerge-launches

cc @aliaksandr-trush

bheemreddy181-zz commented 5 years ago

@DzmitryHumianiuk Can I get some help on doing this on agent-ruby?

DzmitryHumianiuk commented 5 years ago

@bheemreddy181 we don’t have support team for that. But you can find some help in SLACK chat, within community.

Link available from landing page

aliaksandr-trush commented 5 years ago

@bheemreddy181 did you try ReportPortal::Cucumber::ParallelFormatter ? It's reporting all threads to a single launch.

If you need implement your own solution you can how it is already implemented in parallel_report.rb

bheemreddy181-zz commented 5 years ago

ReportPortal::Cucumber::ParallelFormatter does push each thread to one report on the dashboard it doesn't automatically merge the threads for me @aliaksandr-trush

and your statement above is wrong :-)

vasirajuv commented 5 years ago

Hi, My project starts multiple pytest executions in parallel. How can i send parallel execution results to same launch

bheemreddy181-zz commented 5 years ago

right now there isn't a way to do it unless someone contributes to this repo

vasirajuv commented 5 years ago

In that case can you please provide the details of the Merge API of ReportPortal? How to fetch launch ids from the parallel runs so that i can send them to the merge API?

bheemreddy181-zz commented 5 years ago

https://stackoverflow.com/questions/42110425/rest-api-documentation-for-reportportal, fetching launch ID's is something which we have to code for on this repo

vasirajuv commented 5 years ago

thanks @bheemreddy181, but i need to give the launch names (along with ids) to this API to merge, is there anyway to get these details from the present pytest run?