NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Inject class instance to sequence parameters

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.

 

 

 

0 Kudos
Message 1 of 2
(638 Views)

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.

pawhan11_0-1632903028118.png

 

0 Kudos
Message 2 of 2
(604 Views)