Windows Installation
Optional - Depending on the environment, there may be a need to install additional tools to run VirtServer.
For example, if you need to download ReadyAPI, you need a tool like cURL.
Script:
npm install curl
Use an appropriate tool (for example, cURL) to download a version of VirtServer.
Script:
curl -o <Download Location>\VirtServer-x64-3.17.0.exe
https://dl.eviware.com/virtserver/3.17.0/VirtServer-x64-3.17.0.exe
Install VirtServer from the downloaded location.
When installing VirtServer, there are additional parameter options that can be specified. For example, you may want to install and start VirtServer as a service.
Script:
<Download Location>\VirtServer-x64-3.17.0.exe -q -Dservice.install=true -Dservice.autostart=true
Running services may take a few seconds to become available, so you may want to add an optional delay before proceeding to the next step.
Script:
'Start-Sleep -Seconds 60'
Log in to VirtServer.
Script:
<Installation Directory>\SmartBear\VirtServer-3.17.0/bin\virtserver-cli.bat -logi-s 127.0.0.1:9090 -u defaultUser -pw svp4ever
Apply for a VirtServer License from SLM using CLI.
Script:
<Installation Directory>\SmartBear VirtServer-3.17.0\bin\virtserver-cli.bat -activatelicense -licenseaccesskey <Access Key> -licenseissuer SLM
To obtain a license access key, refer to the SmartBear ID-based Licensing for VirtServer documentation.
Use the VirtServer CLI (virtser-cli.bat) to deploy and manage virtual services. For more information on the CLI Utility, refer to the VirtServer CLU Utility documentation.
Log out of VirtServer.
Script:
<Installation Directory>\SmartBear\VirtServer-3.17.0\bin\virtserver-cli.bat -logout -s 127.0.0.1:9090