In this dialog, you specify the name of the script routine to which your keyword test will be converted. You can either select an existing routine or create a new one.
TestComplete displays the Specify Routine Name dialog after you selected the Convert to Script command from the context menu of the Project Explorer.

On the left of the dialog there is a tree of script units existing in your project. On the right there is a list of script routine that belong to the unit that is selected on the left. In the dialog, you can specify either new or existing routine.
Note: | TestComplete defines the first script created in the current project as the default script unit. |
To specify a script routine:
-
Choose the desired script unit under the Script node on the left of the dialog.
You may also create a new unit. To do this, click Create a new unit link and use the ensuing dialog.
-
Select the name of the desired script routine from the list on the right. Or, if you want to create a new routine, type its name in the Test name box.
Note: By default, the Test name box contains the name of the current keyword test. -
Click OK.
Note: If the Description field of the operation you want to convert to script is not empty, TestComplete will ask you whether you want to convert the operation's description to a comment. Click Yes to convert the content of the Description field to a comment. Otherwise, click No. Select the Don't ask again option to disable the message. To enable it again, select the Confirm converting descriptions to comments option in the Show Again Flags dialog.
If by some reason TestComplete cannot use the script routine you specified, it will display its name with red in the Test name box.
![]() |
Important: if you select an existing routine, TestComplete will replace the routine’s entire code with the generated script code. Be aware!
If the routine already have parameters, they will be replaced with a new parameter set. The parameters’ names and order will correspond to the parameters’ names and order of the converted keyword test. |
See Also
Converting Keyword Tests to Scripts
About Keyword Test Editor