reportportal / agent-java-cucumber

Cucumber JVM version [1.0.0; 2.0.0) adapter
Apache License 2.0
26 stars 16 forks source link

Support of multiple scenario attachements #31

Closed lcharlois-neotys closed 5 years ago

lcharlois-neotys commented 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");

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.

lcharlois-neotys commented 5 years ago

Sorry, just seen the new code and name is randomized. I close it.