reportportal / agent-js-playwright

Agent to integrate Playwright with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-playwright
Apache License 2.0
34 stars 14 forks source link

[Need Help] Is there an option to configure structure of tests pushed on report portal using agent-js-playwright plugin? #124

Open venom0107 opened 1 year ago

venom0107 commented 1 year ago

Hi Folks,

I want to structure the way report is shown over report portal. The way it currently works is Browser Name -> FileName (with File Path) -> test.describe -> tests

Now since the data is shown by Spec Name (File Name in my case), I'm having trouble reviewing the reports.

My folder structure is like this: Screenshot 2023-10-17 at 1 39 25 AM

What I want is to have the clubbing of test cases based on this folder structure. So if page verification cases are executed, the structure should be like this:

features (shows all subfolders inside report portal with passed/failed cases) If we drill down, pageVerification should have passed/failed cases visibility, and then if I go deep it should show tests related to dateRangeHistory.spec.ts inside pageVerification.

The current structure is like this on Report Portal:

Screenshot 2023-10-17 at 1 43 46 AM

Is there a way to achieve this by playing around with the plugin implementation, or is any other way possible?

venom0107 commented 1 year ago

Hey @AmsterGet, is the label meant for me to check the UI? And if possible, can you provide some suggestions too.

AmsterGet commented 1 year ago

Hi @venom0107 ! Thanks for the ticket! It's label for our internal triaging processes and means that UI team will check the issue (the UI team is responsible for js agents as well as for UI). In fact I need some time to think about your request and check what capabilities Playwright's reporter system offers to us that can be used to address your request.