-
Notifications
You must be signed in to change notification settings - Fork 185
Under Oracle EE 18.5.0.0.0 tests with %beforeeach or %aftereach fails with ORA-20204. #884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is the testcase: |
select * from ut_annotation_cache c where c.cache_id in (select i.cache_id from ut_annotation_cache_info i where i.object_onwer = 'S205031' and i.object_name = 'TEST_BETWNSTR';
select
xmltype(
cursor(
select * from ut_suite_cache s
where s.object_owner = 'S205031' and s.object_name = 'TEST_BETWNSTR'
)
)
from dual;
ut.run('S205031.TEST_BETWNSTR',ut_debug_reporter()); I'll investigate the changes done between those two releases. |
==>
Have upgraded to v3.1.6 on Oracle EE 11.2.0.4, there the error does not happen. So this seems to be related to the database version. |
Thanks @tkleiber for the inputs. |
Seems I found another bug in quest sql navigator, saving xml to file does not work there, now I have copied this manually: |
Ah... Error starting at line : 2 in command -
BEGIN ut.run('S205031.test_betwnstr.setup'); END;
Error report -
ORA-20204: Suite test s205031.test_betwnstr.setup does not exist
ORA-06512: at "UT3.UT_RUNNER", line 163
ORA-06512: at "UT3.UT_SUITE_MANAGER", line 680
ORA-06512: at "UT3.UT_RUNNER", line 150
ORA-06512: at "UT3.UT", line 126
ORA-06512: at "UT3.UT", line 427
ORA-06512: at "UT3.UT", line 538
ORA-06512: at line 1 The problem is: You are trying to call the Do you see the same issue if you run the same thing but with one of the below command? I'm not sure if there is a change in behavior of the plugin (selecting different path/node) when invoked. If you're doing exactly the same thing (clicks in UI) on both DB versions and see different behavior - it's probably SQLDeveloper plugin that needs to be improved. |
Ok - it seems, that the plugin generate this call from the editor if I'm between the first line (where the package name is) and between the procedure setup defintion (line 8). Then it seems to find the next procedure definition and use it. I think it should lonly generate a procedure test, when I'm on a procedure with a test anotation and else the package test. Sorry for being so blind! But I mixed this up with a problem which I have with another user in this database. But I will create another issue therefore. |
Cheers Torsten Otherwise I hope Thanks |
Maybe you can give me quick hint? Does a user need a specific grant or access to use utPLSQL?
And this happens for all 1400 tests. |
Describe the bug
Under Oracle EE 18.5.0.0.0 tests with %beforeeach or %aftereach fails with ORA-20204.
ORA-20204: Suite test <before/after each procedure> does not exist
But both exist!
Provide version info
Information about utPLSQL and Database version,
Information about client software
What client was used to run utPLSQL tests? Was it from TOAD, SQLDeveloper, SQLPlus, PLSQL Developer etc...
To Reproduce
Steps to reproduce the behavior:
ORA-06512: at "UT3.UT_SUITE_MANAGER", line 680
ORA-06512: at "UT3.UT_RUNNER", line 150
ORA-20204: Suite test s205031.test_betwnstr.setup does not exist
ORA-06512: at "UT3.UT_SUITE_MANAGER", line 680
Error starting at line : 2 in command -
BEGIN ut.run('S205031.test_betwnstr.setup'); END;
Error report -
ORA-20204: Suite test s205031.test_betwnstr.setup does not exist
ORA-06512: at "UT3.UT_RUNNER", line 163
ORA-06512: at "UT3.UT_SUITE_MANAGER", line 680
ORA-06512: at "UT3.UT_RUNNER", line 150
ORA-06512: at "UT3.UT", line 126
ORA-06512: at "UT3.UT", line 427
ORA-06512: at "UT3.UT", line 538
ORA-06512: at line 1
Expected behavior
The test should find and run the beforeEach and aftereach procedures. It is possible, that other annotations run into this error, so you should check all.
Example code
Will attach a modified test_betwnstr package to reproduce this issue.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: