09-28-2021 12:14 AM
I am looking for a way to do simple integration testings of my subsequences.
Goal is to pass fake implementations of modules to sequence parameters to see if it works accordingly.
What I would like to do is:
- declare class instance in labview or .net
- start teststand engine from labview or .net and pass crated classes to the sequence as parameters
- run sequence
- check if class state is modified accordingly
Has anyone used sequenceArgsParam for this? :
https://zone.ni.com/reference/en-XX/help/370052AA-01/tsapiref/reftopics/engine_newexecution_m/
sequenceArgsParam As Variant
[In] [Optional] Specifies a PropertyObject object that contains the arguments to the sequence you want to execute. Each subproperty of the PropertyObject object represents a parameter to the sequence. The subproperties must appear in the same order as the sequence parameters.
09-29-2021 03:10 AM
Attached example what I am trying to do.
Sequence calls ITest interface, i want to inject implementation of that interface from labview and run sequence.
I can pass strings, numbers but no clue how to do it for class by value.