Toad World® Forums

Documentation Bug in CodeTester help


#1

DECLARE

l_result qu_config.maxvarchar2;

l_result_row qu_result_xp.last_run_results_api_cur3%ROWTYPE;

my_results qu_result_xp.last_run_results_api_rc3;

BEGIN

qu_test.run_test_for3 ( owner_in => USER

, NAME_IN => ‘program-name’

, result_out => l_result

, results_out => my_results

, unit_test_guid_list_in => NULL

, test_case_guid_list_in => NULL

, delimiter_in => NULL

);

DBMS_OUTPUT.put_line ('Overall result of test: ’ || l_result);

FOR indx IN 1 … my_results.COUNT

LOOP

DBMS_OUTPUT.put_line (

RPAD (’ ', my_results ( indx ). h_level * 2)

|| ’ ’

|| ’ Type ’

|| my_results ( indx ). result_level

|| ’ ’

|| my_results ( indx ).NAME

|| '-Status: ’

|| my_results ( indx ). result_status

||’-Description: ’

|| my_results ( indx ).description

);

END LOOP;

END;

Hi CodeTester Team

In section “Run Test from a PL/SQL Block” there’s the following PL/SQL code (Run test, Get detailed results through nested table). It’s not working, because variable my_results has to be of type qu_result_xp.last_run_results_api_nt.

Regards
Daniel

Message was edited by: Daniel Heinrich


#2

… and the procedure call is also wrong. It has to be qu_test.run_test_for4 instead of qu_test.run_test_for3.


#3

Many thanks, Daniel. I will make sure these are fixed for the CT2 release.