| || |
OTA - old field Value for a Test
I am trying to build a tool using OTA and I need to access a Test History.
For each test case I am reading History, and for each history record I need to search for a certain transition (from value "A" to value "B"). I am able to access "Change Date", "Changer", "Field name", "New value", but I cannot get "old value" for that history record.
The field is user defined and has history enabled.
Here is the code:
Set hst = testcase.History
'Set hstList = hst.NewList("[FieldName]" & fieldName)
Set hstList = hst.NewList("")
j = hstList.Count
While j > 0 And j <= hstList.Count
Set hstRec = hstList.Item(j)
MsgBox ("old Value: " & hstRec.oldValue)
It doesn't throw any exception, but hstRec.oldValue is always empty.
I built a similar tool for Defects, and there the oldValue was accessible.
Can someone help me with it?
Re: OTA - old field Value for a Test - Solved