Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rollback to savepoint fails on db link #839

Closed
@kga676

Description

@kga676

In ut_suite_item.tpb test executable object execute like

l_completed_without_errors := self.do_execute();

It calls ut_executable.do_execute witch runs ut procedure as a cursor with dinamic SQL without error raise. As I can see in commects if ORA-04068, ORA-04061 will happens it will be caught and processed.

During test execution I got error ORA-02063 with ORA-00933 tring to execute something bad on other BD via DBlink.
In case of this all my ut-session got failed and test exections stoped.
I'v added execption handler to ut_suite_item.do_execute and now it's working and logging all errors correctly.
So It looks like this now:

final member procedure do_execute(self in out nocopy ut_suite_item) is
  l_completed_without_errors boolean;
BEGIN
  BEGIN
  l_completed_without_errors := self.do_execute();
  EXCEPTION 
    WHEN OTHERS THEN 
      NULL;
      END;
end;

I think there is 2 ways to avoid this bug in the future

  1. Add handlers to more errors in ut_executable.do_execute
  2. Make this execution noexception on ut_suite_item level

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions