Print Thread
How to make a test 'fail'
#59823 03/26/19 12:43 PM
Joined: Jul 2010
Posts: 16
A
Member
OP Offline
Member
A
Joined: Jul 2010
Posts: 16
Not clear on what 'failure' means in the test manager. Is it just a test of expected value versus returned value, or does coding and throwing an exception also turn the test red? Does it report the SQLCODE for the exception?

There are certainly tests that should cause a proc/func to fail because that is the expected behavior given the inputs.

Some realistic examples might be very helpful. The user guide section is a bit thin on this topic.

Re: How to make a test 'fail'
Allen Marshall #59830 03/27/19 09:23 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
A test item will be marked as "failed" if one or more variables do not have the specified output value, or if an exception occurs. In both cases the "Run" page will report the exact condition and message.

See also chapter 21.15 in the User's Guide for a detailed explanation and examples.


Marco Kalter
Allround Automations
Re: How to make a test 'fail'
Marco Kalter #59833 03/27/19 05:12 PM
Joined: Jul 2010
Posts: 16
A
Member
OP Offline
Member
A
Joined: Jul 2010
Posts: 16
thank you


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.027s Queries: 15 (0.008s) Memory: 2.5018 MB (Peak: 3.0395 MB) Data Comp: Off Server Time: 2024-04-28 11:21:56 UTC
Valid HTML 5 and Valid CSS