Results 1 to 2 of 2
  1. #1

    Running Java Command Through TestComplete

    Can somebody update me how can i run this command within test complete
    "%JAVA_HOME%\bin\jar" uf %TLMCONTROL_HOME%\engine\tcengine.war WEB-INF/lib/JavaCodeStepFundLookup.jar"

    Previously i was using a batch file to do this operation......can there be an alternative within testcomplete to execute this command without the overhead of an bat file.

    Test 2 Break!!!!

  2. #2

    Re: Running Java Command Through TestComplete

    Hi Tahir,

    You can use the following script to execute a command line from TestComplete:

    <font class="small">Code:</font><hr /><pre>//JScript
    var WshShellObj = new ActiveXObject("WScript.Shell");
    var CmdLine = WshShellObj.ExpandEnvironmentStrings("\"%JAVA_HOME %\bin\jar\" uf %TLMCONTROL_HOME%\engine\tcengine.war WEB-INF/lib/JavaCodeStepFundLookup.jar");
    var WshShellExecObj = WshShellObj.Exec(CmdLine);
    </pre><hr />

    You can find more information here.
    Jared - AQA 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 07:18 PM.

Copyright BetaSoft Inc.