//apply artifacts
if (ConfigurationOptions.artifactsEnabled()) {
Map<String, Artifact> map = ConfigurationOptions.artifactConfig();
String mapKey = scenarioName + stepName;
if (map.containsKey(mapKey)) {
Artifact artifact = map.get(mapKey);
String keyword = artifact.getKeyword();
String contentType = artifact.getContentType();
step.setName(stepName.replaceFirst(keyword, getArtifactFile(mapKey, keyword, artifact.getArtifactFile(), contentType)));
}
}
Util.Status stepStatus = step.getStatus();
totalPassingSteps = Util.setStepStatus(totalPassingSteps, step, stepStatus, Util.Status.PASSED);