Test item tree - reportportal/client-java GitHub Wiki
TestItemTree is a core element for callback reporting. It contains Launch
reference:
private Maybe<String> launchId
And Map
with TestItems
hierarchical structure having ItemTreeKey as key and ItemTreeLeaf as value:
private final Map<ItemTreeKey, TestItemLeaf> testItems
Launch
reference should be set after receiving Maybe<String>
from start launch method using:
public void setLaunchId(Maybe<String> launchId)
During test run TestItems
structure should be retrieved using:
public Map<ItemTreeKey, TestItemLeaf> getTestItems()
ItemTreeKey
(wiki) and TestItemLeaf
(wiki) should be created and put in the retrieved hierarchy Map