Skip to content

Test item tree

Ivan edited this page Dec 1, 2019 · 4 revisions

Test item tree

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