10-09-2017 06:10 AM
Hello,
I'm using Stored Procedure schema in order to record test results to my MS SQL server database and everything works OK. My stored procedures, are using RAISERROR to send an error message, in case of some exception occurred. The question is ...Is it possible to catch such messages in TestStand ?
Thanks
10-10-2017
05:46 PM
- last edited on
11-05-2024
12:24 PM
by
Content Cleaner
Hi airspan,
Are you looking for something like this: https://www.ni.com/docs/en-US/bundle/teststand/page/override-sfps-runtime-error.html
This shows how to use the SequenceFilePostStepRuntimeError Engine callback to handle errors.
10-15-2017 01:39 AM
Yes, I have implemented the custom SequenceFilePostStepRuntimeError callback. It works OK if an error raised from some step in my sequence.
But unfortunately it cannot catch RAISERROR messages coming from SQL stored procedures...
10-16-2017 05:34 PM
Is that a custom error the database creates and throws from inside of it?
10-17-2017 03:46 AM
Yes, this a custom error which throws from SQL stored procedure. Actually, I've discovered that LogToDatabase callback handles such messages and my next challenge is how to redirect them to my GUI...