We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046c611 commit 63495e0Copy full SHA for 63495e0
src/main/java/com/aventstack/extentreports/model/service/TestService.java
@@ -71,5 +71,14 @@ public static String getRunDuration(Test test) {
71
public static Long getRunDurationMillis(Test test) {
72
return test.getEndTime().getTime() - test.getStartTime().getTime();
73
}
74
+
75
+ public static String getHierarchicalName(Test test) {
76
+ StringBuilder sb = new StringBuilder(test.getName());
77
+ while (test.getParent() != null) {
78
+ test = test.getParent();
79
+ sb.insert(0, test.getName() + ".");
80
+ }
81
+ return sb.toString();
82
83
84
0 commit comments