Closed lcharlois-neotys closed 5 years ago
When you add more than 1 attachments to a scenario, only one is visible in report portal.
Using this code more than one time in your tests: scenario.embed(screenshot, "image/png");
scenario.embed(screenshot, "image/png");
In fact, AbstractReporter use mimetype as file name. In AbstractReporter.java: @Override public void embedding(String mimeType, byte[] data) {
@Override public void embedding(String mimeType, byte[] data) {
Perhaps the reporter should generate a different name for each attachment.
Sorry, just seen the new code and name is randomized. I close it.
When you add more than 1 attachments to a scenario, only one is visible in report portal.
Using this code more than one time in your tests:
scenario.embed(screenshot, "image/png");
In fact, AbstractReporter use mimetype as file name. In AbstractReporter.java:
@Override public void embedding(String mimeType, byte[] data) {
Perhaps the reporter should generate a different name for each attachment.