Forum Discussion

AJ1000's avatar
AJ1000
Occasional Contributor
16 years ago

Calling all the scripts in a folder from a testitem

I am using the test item framework and have put testitems in folders and subfolders e.g. 'ProductA' and 'ProductB' folders and in the 'ProductA' folder I have a subfolder called 'Tests1_10', with the test items for Tests 1 to 10 in the 'Tests1_10' subfolder.



Can I call the 'Tests1_10' subfolder from the 'ProductB' folder directly, or is it the manual process of copying and pasting the subfolder over and fixing all the names? [(as '_1') is added to the copied folder and testitems].



If calling the subfolder is not currently possible, please make it a suggestion on your database, as for doing small amounts of tests the cloning of the subfolder and fixing names is inconvenient, but for large anoumts of tests, I am having to justify the time wasted in fixing all the names back (i.e. getting rid of the '_1').



Thanks.

1 Reply


  • Hi Ajay,





    A script unit cannot be run by itself. You can run a script routine within a unit. Please note that you can drag one or more script units from the Project Explorer panel to the test items editor in order to add all script routines from these units to the test items list.