agent-ruby icon indicating copy to clipboard operation
agent-ruby copied to clipboard

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

Open bheemreddy181-zz opened this issue 6 years ago • 10 comments

bheemreddy181-zz avatar Mar 15 '19 18:03 bheemreddy181-zz

@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

DzmitryHumianiuk avatar Mar 18 '19 11:03 DzmitryHumianiuk

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

bheemreddy181-zz avatar Mar 18 '19 16:03 bheemreddy181-zz

@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

DzmitryHumianiuk avatar Mar 18 '19 18:03 DzmitryHumianiuk

@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

aliaksandr-trush avatar Mar 18 '19 19:03 aliaksandr-trush

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 :-)

bheemreddy181-zz avatar Mar 18 '19 19:03 bheemreddy181-zz

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

vasirajuv avatar Jun 21 '19 16:06 vasirajuv

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

bheemreddy181-zz avatar Jun 21 '19 16:06 bheemreddy181-zz

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?

vasirajuv avatar Jun 21 '19 16:06 vasirajuv

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

bheemreddy181-zz avatar Jun 21 '19 16:06 bheemreddy181-zz

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?

vasirajuv avatar Jun 21 '19 17:06 vasirajuv