NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

StepOver() method isn't working

We have created a C# application that is a GUI wrapper around TestStand to guide the operator through selecting the sequence file, installing the UUT, running the tests, etc. This GUI shows only a START and STOP button to the general user, but superusers have a few additional debug buttons: Pause, toggle skip, and step.

The Step button calls the following code:

 


ExecutionViewMgr.Execution.StepOver();

But when this is called, it does not simply step over the current step, it resumes the execution and runs the sequence file to its completion. Can anyone offer any insight into why this is happening and how I can get StepOver() (and possibly StepInto()) to behave correctly?

0 Kudos
Message 1 of 5
(3,402 Views)

Execution.StepOver() *should* do why you're looking for, no epiphanies as to why it wouldn't. Shot in the dark, could you try Thread.SetStepOver() and then calling Execution.StepOver()?

 

Have you tried StepInto() yet? What behavior do you get?

0 Kudos
Message 2 of 5
(3,397 Views)

Adding ExecutionViewMgr.Thread.SetStepOver(); before the StepOver() call did not change the behavior.

 

ExecutionViewMgr.Execution.StepInto() has the same behavior as ExecutionViewMgr.Execution.StepOver(), it resumes execution and runs to completion.

 

 

0 Kudos
Message 3 of 5
(3,391 Views)

Does the user you're logged into TestStand with have privileges necessary to actually use those methods? I think you'd need (at least) Debug.ControlExecFlow.

0 Kudos
Message 4 of 5
(3,386 Views)

For the testing I am doing, I am logging in as an administrator, so I assume I have all privileges.

0 Kudos
Message 5 of 5
(3,382 Views)