07-22-2021 12:03 PM
Hello All,
I'm wondering if there is a property available such that I can access the value of an output from a code module (without assigning/saving it to a variable).
Say, output from a code module will be an input to another code module.
Hoping for something similar to "".
May be starting with "RunState.Sequence.Main["Pass/Fail Test"]........"
Solved! Go to Solution.
07-26-2021 09:56 AM
You HAVE to assign it to something to access it. Otherwise you are just accessing nothing. So basically you have code module A and code module B and you want to take an output from A to B. You still have to assign the output of A to something. You can't just leave it blank.
Even if you assign it to a step property it needs to be assigned.
08-13-2021 12:36 PM
Hello jigg,
Thank you for taking out time and replying to my query.
I was thinking if inputs/outputs from a code module are being collected automatically and I could access it without assigning to any variable. Guess its not the case.
Thanks again.
08-13-2021 02:12 PM
For completeness, I should mention that if you click the log checkbox for a parameter or return value, it will be stored in the results. I did this for a return value of a dll call and it was stored at:
Locals.ResultList[<index of result for step in question>].AdditionalResults["Parameters"]["Return Value [Out]"]
I got that path by break pointing after the step and inspecting Locals.ResultList in the variables view.
08-13-2021 03:38 PM
Hi James,
Thanks for sharing info. Although, in my requirement, I actually don't want some of these outputs (from code module) to be logged. Just want to access it for some calculations (in subsequent steps).
Thank again.