Forum Discussion

mgy333's avatar
mgy333
Contributor
12 years ago

TestExecute silent installation and specifying license server

Hi all,



We found an instruction on how to do a silent installation for TestExecute here:

http://support.smartbear.com/viewarticle/54692/



This is good, but we also need a way to specify the license server located in our corporate network, so that the floating license can be verified.  If it was my own machine, I would open my browser to http://localhost:1947/_int_/config_to.html and specify the license server there, but I cannot do that in this case.  Everything from the installtion of TestExecute to the execution of the test suite must be done without any intervention.



How can this be done through command line/Windows scripting?



Background Info:

The testing will be done in a VM.  The VM will always be initialized with minimal software running.  A script must be able to install TestExecute (with properly verified floating license) and launch the test.  Once the test is completed, the VM is discarded.  Therefore, I cannot have any information preloaded in VM.



Thanks,

Motoo
  • Ok, I figured it out, so I am writing here to share in case someone find it handy.



    The license server information is stored in hasplm.ini file located at:

    C:\Program Files (x86)\Common Files\Aladdin Shared\HASP



    On a 32bit machine, I would guess that the "Program Files" path is a little different.



    I copied the file over from the machine that already has the TestComplete working.  After the silent installation, I copied this file over to the correct location (all in part of batch file), and newly installed TestExecute was able to find the license server.



    On the side note, there is a conflicting information in regard to silent installation.  These two articles (both from SmartBear Support page) describes different commandline switches:



    1. http://support.smartbear.com/viewarticle/56424/


    2. http://support.smartbear.com/viewarticle/8845/


    The first article tells me to use "/r" and "/s" switches while the second article tells me to use "-r" and "-s" switches.



    The one that worked was the second one.



    I hope this helps someone.

    Motoo