NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically load and execute a testplan from model

Hello,

 

how can i add a teststep in SequenceFileLoad of the model that opens and executes a testplan?

Not like a subsequence, but identically to a normal file+ open + start testplan?

 

 

Thx

0 Kudos
Message 1 of 5
(1,554 Views)

https://zone.ni.com/reference/en-XX/help/370052AA-01/tsapiref/reftopics/engine_newexecution_m/

 

Just call that method.  It should work.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(1,512 Views)

One other thing I would mention:  It might be good to run it in a new execution.  It sounds odd but basically it won't lock up your process model by doing this.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 5
(1,510 Views)

Is there also a command to only "load" a sequence and afterwards executet this then already loaded sequencs?
Thx

0 Kudos
Message 4 of 5
(1,470 Views)

You can use the Engine.GetSequenceFileEx to load a sequence file into memory.  

 

Maybe it would help to understand your ultimate goal?

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 5
(1,458 Views)