10-07-2015 02:47 AM
Hi!
How can I modify the standard behaviour of Terminate button?
Actually if I press it during test execution the sequence will result in a "Terminated" status.
I'd like to overwrite this behaviour and provide a PASS/FAIL status if all steps are passed or if at least one step is failed.
Is it possibile?
Thanks in advance.
10-07-2015 02:56 AM
aethon,
TestStand does on purpose act like this. If you terminate a test sequence execution, you will most likely not have a complete test coverage. In order to clearly differ between "fully tested" and "incomplete tested" DUTs, TestStand labeles the result of "incomplete tested DUTs" to "Terminated".
However, you can for example add a step in the MainSequence CleanUp step group which checks the UUT status and changes it to a desired value (any string) depending on previous results.
Norbert
10-07-2015 03:01 AM
So, if I modify sequence result in cleanup section of main sequence, the result will be overwritten?
Thanks.
10-07-2015 04:05 AM
OK, i checked on that and i am sorry but it is not as simple as i expected it to be.
Point is that a sequence call step determines its result ("passed", "failed", "terminated", "error", ...) depending on several 'keystones' (i consciously don't use the term "parameter"!). On of these keystones is the Termination State of the execution. So essentially the result of the sequence call step is determined "behind the scenes".
That being said (and with the constraint that you do not want to cancel termination) it is impossible to simple change the MainSequence status by a simple step as i suggested.
You have to modify your process model to address this. I recommend to add a step after the "MainSequence Callback" (check Execution Entry Point!) which queries the state of "MainSequence Callback". In case it is "Terminated" add code to determine a state you want to have in your report.
Norbert