Toad World® Forums

Re-Useable Initialization code


#1

Hi Guys,

I am new to Quest code teter and oracle aswell, i would like to reuse my initialization code within the program, is it possible ?

ofcourse i can write my procedure and funtions in oracle and use it in the quest code but i want to use the quest code for that

thanks,

ABCD


#2

You can share initialization logic as follows:

  1. Open Test Editor for the test definition.

  2. Click on the Customization tab.

  3. Click on + next to “Implementation of all custom subprograms”

  4. Define a procedure in that section that contains the code you want to reuse.

  5. Then call that procedure in each section that needs the same logic.

Let me know how that works.


#3

i found the option :smiley:

Message was edited by: ABCD
untitled.jpeg


#4

Right. At different levels of the test definition, the label may vary. So in your case, open this section:

Declarations of custom procedures and/or functions

SF