08-19-2011 08:08 AM
IVI,
this will not work.
Additional Results are not part of the Result-container of a step. So the lookup string is not correct.
So in your code, the line testid = stepPropertyObject.GetValString("Result.AdditionalResults[\"Requirements\"]", 0); will always throw an error (unknown property).
You have to go a different way. One possible is:
a) Get the last entry in the ResultList.
b) Get the Additional Result there.
So it looks something like this:
PropertyObject seqctxPropertyObject = seqctx.AsPropertyObject();
PropertyObject Resultlist = seqctxPropertyObject.GetPropertyObject("Locals.ResultList", 0);
int LastEntry = Resultlist.GetNumElements() - 1;
testid = seqctxPropertyObject.GetValString("Locals.ResultList[LastEntry].AdditionalResults[\"Requirements\"]");
hope this helps,
Norbert
08-21-2011 09:37 AM
I think you can also use Step.LastStepResult and/or Step.CurrentLoopResult.
-Doug