Print Thread
Wishlist: Test Window
#16249 10/28/04 07:01 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
OP Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
I was reading on AskTom.Oracle.com about 'existing state of package blah, blah, blah' yesterday and heard about DBMS_SESSION.RESET_PACKAGE.

I would like a check box on the toolbar of the test window that says something like 'Reset package states before execution' and if checked PLSD would issue that command before running the contents of the test window.


Scott Mattes
Re: Wishlist: Test Window
#16250 10/28/04 08:39 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
The Test Window will automatically rerun the Test Script when it first fails with "ORA-04068: Existing state of packages has been discarded". A warning will be displayed on the status line, because all global package variables will have been reset.


Marco Kalter
Allround Automations
Re: Wishlist: Test Window
#16251 03/16/07 10:34 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
OP Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Hmmm, I wonder why I let this drop.

Anyway, the reason for this request is for test repeatability. I'd like to be able to run the same test over and over and over again and always get the same results. If the package being tested sets any persistent values they sometimes need to be reset in order to repeat the test.


Scott Mattes
Re: Wishlist: Test Window
#16252 03/19/07 10:41 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
I have added this to the list of enhancement requests. Note that you can also call dbms_session.reset_package in the Test Script.


Marco Kalter
Allround Automations
Re: Wishlist: Test Window
#16253 03/20/07 06:20 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
OP Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Thank you Marco.


Scott Mattes
Re: Wishlist: Test Window
#16254 03/25/07 12:55 AM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Hello Scott.

I always reconnect to my user to make sure that package variables are flushed.

Re: Wishlist: Test Window
#16255 03/27/07 07:10 PM
Joined: Feb 2006
Posts: 14
Plano, Texas USA
C
Member
Offline
Member
C
Joined: Feb 2006
Posts: 14
Plano, Texas USA
Scott's request is a great one, I completely second him on the value of such a feature in a future release.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.049s Queries: 14 (0.012s) Memory: 2.5201 MB (Peak: 3.0395 MB) Data Comp: Off Server Time: 2024-04-29 01:40:23 UTC
Valid HTML 5 and Valid CSS