You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Y'all are gonna need to rethink the patterning with the getFailed|passed|CustomScreenshots methods
We've got suite scopes demarcated by [suite] in the test name in addition to splitting out by describe blocks. glob tends to cause some major issues with the way you guys do
will return empty for us with our filenames of pattern
[smoke] -- [smoke] (failed).png
, but only when you combine the ${} interp with the globbing in the same operation.
I'd recommend going with a two stage filter.
Where the glob.sync(pattern1) gets you all the failed, then the filter picks out the one that includes the test name, then hope someone isn't clever and names the describe block the same thing as the it block.
Really not sure why the globbing doesn't like it, and just had to toy with the Node REPL for a while to home in on it, but that's causing us to not get our screenshots into reportportal.
It's an artifact of a test grouping initiative forever ago, so it's not that for us to clear that out of our test repository in it's entirety, but if it comes to that, it just may be what we have to do.
Lemme know if you need more info.
The text was updated successfully, but these errors were encountered:
Hello @rdyercrx !
The screenshot mechanism has been completely rewritten and released in version 5.1.2.
Have you tried using it?
Please check your issue with the latest agent version.
Looking forward to your feedback!
Y'all are gonna need to rethink the patterning with the getFailed|passed|CustomScreenshots methods
We've got suite scopes demarcated by [suite] in the test name in addition to splitting out by describe blocks. glob tends to cause some major issues with the way you guys do
will return empty for us with our filenames of pattern
[smoke] -- [smoke] (failed).png
, but only when you combine the ${} interp with the globbing in the same operation.
I'd recommend going with a two stage filter.
Where the glob.sync(pattern1) gets you all the failed, then the filter picks out the one that includes the test name, then hope someone isn't clever and names the describe block the same thing as the it block.
Really not sure why the globbing doesn't like it, and just had to toy with the Node REPL for a while to home in on it, but that's causing us to not get our screenshots into reportportal.
It's an artifact of a test grouping initiative forever ago, so it's not that for us to clear that out of our test repository in it's entirety, but if it comes to that, it just may be what we have to do.
Lemme know if you need more info.
The text was updated successfully, but these errors were encountered: