Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there any way to supply parameters to the main script?

list main parameters Script supply
0
10 Posted

Is there any way to supply parameters to the main script?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123