Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6733

How to set SequenceCall arguments in new Step using TestStand API?

$
0
0

Following the DotNet XML translator example, we are programmatically creating new Steps in a Sequence using the API. We are inserting SequenceCall StepTypes. We are calling pre-defined Sequences which have Parameters defined that must be passed to the pre-defined Sequences.

When we create our new Step to call the pre-defined Sequence, how do we set the Arguments which get passed to the pre-defined Sequence?

 

This is what we have so far:

Step newStep = engine.NewStep(AdapterKeyNames.SequenceAdapterKeyName, StepTypes.StepType_SequenceCall);

newStep.Name = "NewStep";

 

// this is where we need to set the step arguments...

 

sequence.InsertStep(newStep, sequence.GetNumSteps(stepGroupMain), stepGroupMain);

 

Thanks for any help in advance.


Viewing all articles
Browse latest Browse all 6733

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>