Forum Discussion

Manfred_F's avatar
Manfred_F
Regular Contributor
11 years ago

using ODT data information in test log

Hi,

You might want to use Information from the ODT data tree to enhance the message log.

In my example, I add Information from a log Array item's object to the item log Folder, see screenshots.



This is my solution:

I intercept the OnLogCreateNode and OnLog CloseNode Events and determine the ODT data element, the node is tied to (it would be nice if TC could deliver this as a context Parameter to the  OnLogCreateNode Event procedure..).

Then, I evaluate the ODT data and add the Information I want to to the log.



The solution only works, if the ODT tree is run from the root Level.





Regards,



Manfred

  • Manfred_F's avatar
    Manfred_F
    Regular Contributor
    Hi,



    it seemed to be a good idea to me, but:

    - I forgot to take into account ODT filtering (which is corrected in the attached file)

    - the OnLogCreateNode and OnLogCloseNode Events seem to have a Problem sometimes,

    so this is not a reliable Thing right now.



    Regards,

    Manfred