Results 1 to 2 of 2
  1. #1

    Can you pass a argument to VBscript script?

    Guys(Jared, Allen etc)

    I am trying to automate the build installation and long-term goal for my group is to kick off Build using Automated Build Studio and some-how pass a argument to the testcomplete VBscript program with the build folder, so that particular build can be kicked.

    Is there any way of passing arguments to the VBscript scripts in testcomplete?

    Hope you guys can get back to me soon.

    Thanks and regards,

  2. #2

    Re: Can you pass a argument to VBscript script?

    Hi Rakhee,

    You can launch TestComplete and TestExecute from the command line. Please see the "TestComplete Command Line" and "TestExecute Command Line" help topics in the respective help systems for more information. For example, you can use the following command line (pay attention to the last parameter):

    "C:\Work\Automated QA\TestComplete\Bin\TestComplete.exe" "C:\Work\Automated QA\TestComplete\Projects\My\My.pjs" /r /p:MyProj /u:Unit1 /rt:Main /MyCommandLineParameter:2

    And use the following code to post all command-line parameters to the test log:


    function test()
    for(i = 0; i <= BuiltIn.ParamCount(); i++)

    This approach will allow you to pass custom input parameters to TestComplete/TestExecute scripts.
    Allen - SmartBear Support



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 05:55 PM.

Copyright BetaSoft Inc.