Execute by folder groupings

Hello,

I have scripts in a test suite organized into folders. Is there a way to execute by folder which would run all of the scripts contained in a specific folder?

Something like Run Folder1 ?

Thanks

Bill, it is slightly more complicated than that, but only slightly. How would you determine the sequence in which the scripts should run? I might be able to provide some sample choice.

Dave,

The sequence is not important in this instance. It might be interesting to see how you might run the underlying scripts in a particular order, though.

Thanks,

Hi Bill,

If you want to have lots of control over the sequence of the scripts, this is an option:

Run "FolderFullOfScripts/Script1"
Run "FolderFullOfScripts/Script2"
Run "FolderFullOfScripts/Script3"

Note that the folder and file should be contained within quotes.

If order is less important, you can use this method:

put "FolderFullOfScripts" into myScriptsFolder -- call out the folder containing the scripts
put the files of (suiteinfo().scriptsfolder&"/FolderFullOfScripts") into myScriptsList -- pull the file names from the folder above

repeat with each item myCurrentScript of myScriptsList
	run (myScriptsFolder & slash & myCurrentScript)
end repeat

Cheers!
Dave