How to deploy virtual services

You can deploy virtual services located in the file system or in ALM to any Service Virtualization Server on Windows.

Note: The deployment process generates a log file, which indicates the success or failure of deployment for each entity. The log file is located in the Service Virtualization Server or Designer log folder, accessible from the Windows Start menu. You can also open the Designer log directly from Service Virtualization by selecting Open Designer Log from the Help menu.

  1. Do one of the following:

    • On the Service Virtualization Server, open a command prompt. Navigate to the \bin folder under the Service Virtualization Server installation folder. By default, C:\Program Files\Micro Focus\Service Virtualization Server\Server\bin.
    • On the Service Virtualization Designer machine, open a command prompt. Navigate to the \bin folder under the Service Virtualization Designer installation folder. By default, C:\Program Files\Micro Focus\Service Virtualization Designer\Designer\bin.
  2. Run ResourceManager.exe -deploy at the command line, using the following options:

    Note: If an argument contains spaces, it must be enclosed in quotation marks. For example, "Resources\My Project".

    Option Description
    Source and Destination Options
    /f [source_path]

    Source path. The path to the project file (.vproj) or project archive file (.vproja).

    • If you specify a folder, all services inside the folder are deployed.
    • The files may be located in the file system or in ALM.
    • To specify a resource stored in ALM, use the following format: Resources\[path to file or folder]

      For example, Resources\MyVirtualProject\VirtualProject1.vproja

      Tip: To locate and copy an ALM folder path, in the Designer, from the main menu, select File > Open Project/Solution. On the sidebar, select ALM Resources, and navigate to the desired folder. Copy the path from the Look in box.

    /sa [Server URL]

    Server URL. Specify the Service Virtualization Server on which to deploy the services.

    By default, Service Virtualization attempts to deploy the services on the server specified in the project. Use the /sa option if you want to specify a different server on which to deploy the services.

    /sau [User] User. A user account with access to the Service Virtualization Server.
    /sapw [Password] Password. The user password for accessing the Service Virtualization Server. The password is case-sensitive.
    /ppw [Project_encryption_password]

    Project encryption password.To deploy an encrypted project, enter the project encryption password.

    For more details on encryption, see Password encryption.

    /simulate

    Deploy the services and places them into simulation mode.

    /skip

    Services that are already deployed are not redeployed.

    Use this option, for example, if you are running the deploy tool on a folder containing some services that are already deployed.

    ALM Connection Options
    /s [ALM_URL] ALM URL. The URL of the ALM server, in the following format: <ALM server IP or hostname>:<port number>/qcbin. The path must contain /qcbin at the end.
    /d [ALM domain] ALM domain. The ALM domain name in which the files are located.
    /p [ALM project]

    ALM project. The ALM project name in which the files are located.

    /u [ALM user] ALM user. The ALM user for the ALM connection.
    /pw [ALM user password] ALM user password. The password for the ALM user. The password is case-sensitive.

     

    Example: Example:

    ResourceManager.exe -deploy /f Resources\MyVirtualProject /s http://MyALMServer:8080/qcbin /d Default /p MyProject /u alex_alm /pw alexalex11 /sa https://demoserv:6085/management /sau alex /sapw alexalex11

    This command deploys services located in the ALM Server http://MyALMServer:8080/qcbin, in the domain Default, in the project MyProject, in the Resources module under the folder MyVirtualProject.

    The services are deployed to the Service Virtualization Server https://demoserv:6085/management.