06-04-2014 09:20 AM
I want to launch Teststand and a Teststand sequence from a Generic Test in Microsoft Visual Studio.
A Generic Test allows a command line based program to be called as part of a test provided it does the follwoing
"In general, a generic test passes when the executable it wraps returns a value of 0, and fails if any other value is returned."
I can see that TestStand can be launched via the cmd line, but it looks as though there is no way to get TestStand to return an exit
code when it has finished executing a sequence (i.e. 0 passed, other number failed).
Can someone confirm that this is correct and there is no work around?
Could a wrapper program be written that launched TestStand and then returned an exit code?
06-05-2014 09:34 AM
Recent versions of TestStand already return an exit code like this. What version of TestStand are you using? What command line are you using?
-Doug
06-05-2014 09:45 AM
Test stand 2013.
How do I set the error code as part of the sequnce?
06-06-2014 11:01 AM - edited 06-06-2014 11:02 AM
It is set by default/automatically based on the status of the executions run. See the API help for ApplicationMgr.ExitCode for more details.
-Doug