File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/main/java/com/aventstack/extentreports Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,28 @@ public ExtentTest log(Status status, String details) {
438438 return log (status , details , null );
439439 }
440440
441+ /**
442+ * Logs an event with {@link Status} and custom {@link Markup} such as:
443+ *
444+ * <ul>
445+ * <li>Code block</li>
446+ * <li>Label</li>
447+ * <li>Table</li>
448+ * </ul>
449+ *
450+ * @param status
451+ * {@link Status}
452+ * @param markup
453+ * {@link Markup}
454+ * @param media A {@link Media} object provided by {@link MediaEntityBuilder}
455+ *
456+ * @return An {@link ExtentTest} object
457+ */
458+ public ExtentTest log (Status status , Markup markup , Media media ) {
459+ String details = markup .getMarkup ();
460+ return log (status , details , null , media );
461+ }
462+
441463 /**
442464 * Logs an event with {@link Status} and custom {@link Markup} such as:
443465 *
You can’t perform that action at this time.
0 commit comments