01-19-2021 12:13 PM
Hi all,
I'm trying to run multiple sequences.
I have modified the exiting "TestStand UI with Native Control" DotNet code to accept run-time argument and run a sequence.
I want to pass multiple sequences file and run it in teststand. Anyone know how can one achieve this?
I'm using the CommandLine Parser to parse the run time arguments.
Solved! Go to Solution.
01-22-2021 10:48 AM
I want to create a Collection of SequenceFiles which are accepted via run-time arguments and will be executed.
For now to execute a single sequence file - below is my code:
this.axApplicationMgr.UserChanged += this.OnUserChanged;
private void OnUserChanged(object sender, NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_UserChangedEvent e)
{
this.sequenceFile = this.axApplicationMgr.OpenSequenceFile(this.sequenceFilePath);
if (this.autoStart == true)
executeButton_Click(this, EventArgs.Empty);
}
private void executeButton_Click(object sender, EventArgs e)
{
if (axSequenceFileViewMgr.SequenceFile != null)
{
axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_ExecutionEntryPoints_Set, 1).Execute(true);
}
else
{
MessageBox.Show("You must open a sequence file before you can execute.");
}
}
How can I make a List of sequence file which will be executed in the TestStand UI. PFA
01-29-2021 07:09 AM
private List<string> sequenceFilePath;
private void CreateTestStandExecution(TestStandArguments args)
{
//sequenceList.Add(args.SequenceFilePath);
foreach (string filepath in args.SequenceFilePath)
{
this.sequenceFilePath.Add(filepath);
}
}