testomatio / app

Testomat.io is a simplified test management system for your automated tests. Issues, project board & documentation. app.testomat.io
https://app.testomat.io
27 stars 2 forks source link

Automatic renaming of artifact #683

Open itz4blitz opened 1 year ago

itz4blitz commented 1 year ago

Is your feature request related to a problem? Please describe. We have parameterized tests which use several roles. Ex: Super Admin, Platform Admin, Worker. If a role fails in the test, it will continue and run the test for additional roles, and then mark the entire test as failed and show the parameter (role) it failed for during that run in the result.

In testomatio, we can see the trace files, videos, and screenshots from our S3 bucket. However, they contain the default GUID names from our test runner. Since we're using parameters in our test, it would be nice if we could set these parameter names for the files to allow us to more easily know which trace, screenshot, and video is from which of the parameterized roles in our test.

image

Describe the solution you'd like The ability to set parameter value in the artifact file name on testomatio side.

Describe alternatives you've considered In Playwright, it appears it may be possible to rename artifacts but it isn't such a straight forward process.

DavertMik commented 1 year ago

@Fro0z1k

We will need to refactor attachments to move them to a corresponding controller /attachments

there should be URLS

It should work with any model which has an attachment:

Check tests controller and testruns controller to see how it works now and how they can be refactored If possible, keep routing the same for our frontend