Toad World® Forums

Test-Builder Error: More than one outcome have the same name


#1

CREATE OR REPLACE PACKAGE pkg_foobar AS

PROCEDURE a#prc_outcome_name(
pvar_in_out IN OUT NUMBER,

END pkg_foobar;

CREATE OR REPLACE PACKAGE BODY pkg_foobar AS

PROCEDURE a#prc_outcome_name(
pvar_in_out IN OUT NUMBER,

pvar_out OUT NUMBER) IS

BEGIN

**END a#prc_outcome_name;

END pkg_foobar;**

Code Tester Version 1.8.5.450
Oracle 11gR1


Hello,

while building a test-case in the Test-Builder I receive the error “More than one outcome in this test case have the same name. […]”.

I have a procedure with one IN/OUT-parameter and one OUT-parameter (see example below).

In the outcomes-section both parameters are named “Scalar is equal to the expected value?” which causes the error-message.

A workaround is to rename every parameter manually by right-clicking it in the outcome-editor and selecting “Rename”.

Is it possible to name the parameters automatically?

Thank you in advance for your help.

Regards,
Marc


Sample code:

**pvar_out OUT NUMBER)****;
****/
**pvar_in_out := 1; pvar_out := 1; /


#2

Marc,

I will look into changing our algorithm to automatically make outcome names unique so that this validation warning does not bother you.

However, you can also open the Preferences window (available from the Dashboard menu under Tools), navigate to the Test Builder section and make sure that the preference named:

Warn me of duplicate outcome names.

is NOT checked.

Regards, SF