How to deploy virtual services

You can deploy virtual services located in the file system or in OpenText Application Quality Management to any OpenText 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 OpenText Service Virtualization Server or Designer log folder, accessible from the Windows Start menu. You can also open the Designer log directly from OpenText Service Virtualization by selecting Open Designer Log from the Help menu.

  1. Do one of the following:

    • On the OpenText Service Virtualization Server, open a command prompt. Navigate to the \bin folder under the OpenText Service Virtualization Server installation folder. By default, C:\Program Files\Micro Focus\Service Virtualization Server\Server\bin.
    • On the OpenText Service Virtualization Designer machine, open a command prompt. Navigate to the \bin folder under the OpenText 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".

    Source and Destination Options

    Option Description
    /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 OpenText Application Quality Management.
    • To specify a resource stored in OpenText Application Quality Management, use the following format: Resources\[path to file or folder]

      For example, Resources\MyVirtualProject\VirtualProject1.vproja

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

    /sa [Server URL]

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

    By default, OpenText 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 OpenText Service Virtualization Server.
    /sapw [Password] Password. The user password for accessing the OpenText 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.

    OpenText Application Quality Management Connection Options

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

    OpenText Application Quality Management project. The OpenText Application Quality Management project name in which the files are located.

    /u [ALM user] ALM user. The OpenText Application Quality Management user for the OpenText Application Quality Management connection.
    /pw [ALM user password] ALM user password. The password for the OpenText Application Quality Management 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 OpenText Application Quality Management 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 OpenText Service Virtualization Server https://demoserv:6085/management.