Results 1 to 3 of 3
  1. #1

    Multiple input parameters

    Is it possible in TC4 to accept multiple input parameters through some kind of GUI for instance using function BuiltIn.Inputbox or may be some kind of command line input ?

    Thank you very much !

  2. #2

    Re: Multiple input parameters


    The current version of TC does not have other ways to get a user input during script execution.
    As for passing options via the command line, you can do this. To read the parameters passed to TestComplete via the the command line, you can use the ParamStr and ParamCount functions. See the 'BuiltIn.ParamStr' and 'BuiltIn.ParamCount' help topics for detais.

    [VBScript]</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Sub Test
    For i = 0 To BuiltIn.ParamCount
    Log.Message BuiltIn.ParamStr(i)
    End Sub</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Atanas

  3. #3
    Senior Member
    Join Date
    Apr 2006
    ked up until rehabilitated

    Re: Multiple input parameters

    You might also want to consider using a spreadsheet to represent the inputs, then they can be run in a loop, and new elements can be added with each test.

    This will keep you from the command line limitation of ten parameters, or of 127 characters in length.

    [ 05-23-2006, 12:54 PM: Message edited by: Code Carpenter ]
    Aaron Fager
    Software Test Engineer

    If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:27 PM.

Copyright BetaSoft Inc.