07-28-2015 03:44 AM
Hi all
We have source code developed in CVI, and the code is used to test various functionality of the product with the help of sequence file,
I have one issue any help greatly appreciated,
I would like to abort the test sometimes in between before completion of all the tests, whenever I abort the test , it has to perform one specific test.
Eg: there are 1-30 tests whenever I abort the test (Say test 5), it should perform 25th test and complete as 25th test has few type settings of the product , I am aware there are something to change in sequence file.
Solved! Go to Solution.
07-28-2015 07:56 AM
What mechanism are you using to abort the test? Is it aborting if a certain step fails? Or is it a button on the User Interface that gets clicked to abort? Is it always the same step that needs to execute (i.e. step 25)?
In TestStand there is a huge difference between Terminate and Abort. When a sequence is terminated it executes the cleanup step groups of all sequences in the call chain. When a sequence is aborted the execution is killed immediately.
A little more info would be helpful in finding the right solution.
Regards,
07-28-2015 08:39 AM
Hello Jigg
Many Thanks for your response,
there is abort function in User interface, when ever user like to stop, he just clicks on Abort button ,
My requirment is when ever user clicks on abort button (before test 25), it has to execute 25th test before killing the execution.
07-28-2015 09:06 AM
I would put the 25th step in as the first step in the Cleanup step group. Then tell them to click the Terminate button and not the Abort button. In fact if it were me I would redo the User Interface and remove an obvious ability to Abort, maybe embed it deep in the menus somewhere.
As I said before, Terminate will run the steps in the Cleanup step group.
Regards,
07-29-2015 01:12 AM
Hello Jigg
there is no terminate button on the User Interface, I have only option to deal with Abort button .
Thanks
Hussain
07-29-2015 12:31 PM
Which UI are you using? Both the simple and full featured ones that ship with TestStand only have Terminate Execution buttons. If you are using a custom UI I would switch it to terminate instead of abort.
Regards,
07-29-2015 09:59 PM
Its customized User Interface, I am not intended to change UI rather I would like to change the sequence file, changing UI will cause lot of efforts in Validations.
07-30-2015 08:15 AM
In this case there is nothing you can do. Because it is an abort and not a terminate the thread is killed immediately and there is no way to interrupt and make it jump to test 25.
Unfortunately this was a bad UI design decision and totally disregards one of the coolest features of TestStand, the ability to run a cleanup routine upon termination. If they had used a terminate, instead of abort, then you could just put the 25th test step in Cleanup and it would always run.
Regards,
07-30-2015 12:20 PM
Hello Jigg
when get into the sequence edit function, there is Sequence setup / Clean up routines buttton, let me know you meant the same cleanup function.?
Hussaiin
07-30-2015 12:41 PM - edited 07-30-2015 01:04 PM
i guess we have Terminate properties in Abort function, could you please let me know how can we add test 25 in clean up ?