Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unit Testing Code Coverage in SQL Developer

1009065Dec 19 2016

Hi,

I am trying to create unit tests for a procedure of a package using the Unit Test tool of SQL Developer. I am able to create the unit test and also successfully test the case. But I am not getting any output of the code coverage for the test case even though I have checked the check box "Generate Code Coverage Statistics".

I can see the below records in the underlying tables of unit testing and the code coverage stats table is populating with a error message "ORA-00955: name is already used by an existing object ORA-06512: at line 10". Below are the records of the corresponding tables.

UT_TEST_RESULTS:             

UTR_IDUT_IDNAMESTATUSMESSAGECOVERAGETEST_USER_NAMECONNECTION_NAMERUN_DATECREATED_ONCREATED_BYUPDATED_ONUPDATED_BY
3aabd27a-469d-4cec-96e0-f61feb1c2275c105e96e-8a35-47ed-a07f-b7e68fd79b36TEST CASE1UT_SUCCESS 1XXXXXXXX@XXYZ14-DEC-16 02.52.01.420257000 PM14-DEC-16 04.22.01.000000000 AMXXXX14-DEC-16 04.22.01.000000000 AMXXXX

UT_TEST_IMPL_RESULTS:                             

UTIR_IDUTI_IDUTR_IDNAMESTATUSMESSAGESTART_TIMEEND_TIMEDURATIONSTARTUP_STATUSSTARTUP_MESSAGESTARTUP_START_TMESTARTUP_END_TIMESTARTUP_DURATIONOP_CALL_STATUSOP_CALL_MESSAGEOP_CALL_START_TIMEOP_CALL_END_TIMEOP_CALL_DURATIONTEARDOWN_STATUSTEARDOWN_MESSAGETEARDOWN_START_TIMETEARDOWN_END_TIMETEARDOWN_DURATIONRUN_DATECREATED_ONCREATED_BYUPDATED_ONUPDATED_BY
1efdedd7-26fa-4c5b-8d8f-6e4a36d94c8970448789-7ea7-48d1-b844-156661d183643aabd27a-469d-4cec-96e0-f61feb1c2275Test Implementation 1UT_SUCCESS 14-12-2016 14:53:45101264UT_SUCCESS 14-12-2016 14:52:085020UT_SUCCESS 14-12-2016 14:53:0916165UT_SUCCESS 14-12-2016 14:53:442996414-DEC-16 02.52.03.542679000 PM14-DEC-16 04.22.03.000000000 AMXXXX14-DEC-16 04.22.03.000000000 AMXXXX

UT_TEST_COVERAGE_STATS:             

UTC_IDUTIR_IDUTI_IDUNIT_OWNERUNIT_NAMELINETOTAL_OCCURTOTAL_TIMETEXTCREATED_ONCREATED_BYUPDATED_ONUPDATED_BY
889150ee-dde1-46cc-af81-ea3ba320f4f21efdedd7-26fa-4c5b-8d8f-6e4a36d94c8970448789-7ea7-48d1-b844-156661d18364 -1-1-1ORA-00955: name is already used by an existing object

ORA-06512: at line 10

14-DEC-16 04.23.48.000000000 AMXXXX14-DEC-16 04.23.48.000000000 AMXXXX

Please help me out to resolve this issue.

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2017
Added on Dec 19 2016
0 comments
403 views