08-23-2023 07:41 AM
I have q question regarding getting step properties.
I get step in UIMessageEvent:
step = e.uiMsg.Thread.GetSequenceContext(0, out frameid).PreviousStep
I can see everything I need while debiugging in Visual Studio:
But when I try reading (i.e. 'Comment') using usual way, I have an error: Unknown variable or property name 'Comment'. Error accessing item 'Comment':
step.AsPropertyObject().GetValString("Comment",0);
I must do something wrong.
Thanks
Mike
08-25-2023 09:07 AM
You have already received the UI message, so I don't think you will refuse to send a Parameters. Step. Comment message through the callback function of the TS process model (such as ProcessModelPostStep) in stringDataParam. That's right, this is the comment string for each step you need. Every time you run a step, the message mechanism will automatically send it to you, and all you need to do is just parse it out.
The UI message and callback function of TS will make it easier for you to obtain this information.
09-04-2023 06:07 AM
I couldn't make it working.
Can't send Parameters. Step. Comment
Can you provide example?
Thanks!
09-06-2023 01:47 AM
My mistake!
the correct variable name is:
Parameters.Step.AsPropertyObject.Comment
I confirm that this can be received, as shown in the following figure