NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I run a certain Step using the TestStand Api

Hi

I'm using TestStand 1.0.1
I'd like to run one or more steps from CVI
using the TestStand api

Thanks
0 Kudos
Message 1 of 4
(2,545 Views)
Yes, you can execute TS steps via CVI using the TestStand API. I am not sure how you are wanting to execute the steps though, i.e. are you wanting to execute the steps interactively or execute them using a process model? Either way you would essentially be creating a very simple version of an operator interface to execute the steps.

You would first have to get a reference to the TS Engine, then a reference to the test sequence file, (then a reference to the process model file, if you want to use a process model),then a reference to the test sequence within the sequence file above that contains the steps you want to run. Once you have this information you can call the Engine.NewExecution method to launch the execution. (If you are executing the steps interactively
you will need to use the TS API to create the InteractiveArgsParam parameter of the NewExecution method before calling the NewExecution method)

The above description provides a basic summary of how you could do this. For more details, take a look at the simple CVI operator interface that installs with TestStand in the \TestStand\Examples\Operator Interfaces directory.

Hope this helps. If you have a more specific question relating to this topic feel free to ask that as well.

Richard McDonell
Applications Engineer
National Instruments Corp.
www.ni.com/ask
0 Kudos
Message 2 of 4
(2,545 Views)
Hi,

Here is the thing , for every step that failed, I'm showing my own dialog box.

One of the options on this dialog box , is
to repeat the step that failed.

I don't really know how to run that certain step again

Thanks,

Daniel Mark
0 Kudos
Message 3 of 4
(2,545 Views)
There is an example in the Developer Zone that illustrates how to retry a failed test step. It will show you the basics of how to do what you are wanting to do. You can then customize it to further suit your needs. You can find this example by performing a search for "TestStand and Retry" in the search window above.

Richard McDonell
Applications Engineer
National Instruments Corp.
www.ni.com/ask
0 Kudos
Message 4 of 4
(2,545 Views)