Is there any way to supply parameters to the main script?
A.: The way you do this depends on the TestComplete version you use. In TestComplete 5 and later, by default the script that is defined as the main routine is a procedure that does not require parameters. If your main routine requires parameters, you should modify its declaration and specify the desired parameters in it. Then you can switch to the Test Items page of the project editor, create a test item that corresponds to the main routine and click the ellipsis button in the Parameters cell to specify the routine’s parameter. You can also leave the main routine’s declaration unchanged and create a user-defined form to ask the tester for parameters. You then have to write script code that will display this form at the beginning of the test run. The script code can then check the values specified in the user form’s controls and use them for the test run. In TestComplete 4, the script defined as the main routine, must be a procedure that does not require parameters. Otherwise, it cannot