You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

使用 Parasoft SOAtest 和 Virtualize 服务器需要许可证。如果你能够访问部署 WAR 的机器,则可以编辑 <SOAVIRT_HOME>/WEB-INF/config.properties 文件,以在启动服务器之前配置许可证设置。如果你没有访问该文件的权限,或者正在将服务器配置为自动化流程的一部分,则可以使用 REST API 设置许可证设置。 

服务器的 Virtualize 模块提供了与持续测试平台的通信、远程管理和对 REST API 的访问。访问这组功能需要一个 Virtualize 许可证。 

服务器的 SOAtest 模块提供了执行测试的能力。访问该功能需要一个 SOAtest 许可证。

至少,需要至少一个产品许可证才能使用服务器。 

在本章节中:

使用机器锁定许可证

配置以下设置以使用本地许可证:

virtualize.license.use_network=false
virtualize.license.local.password=<password sent to you from Parasoft>
virtualize.license.local.expiration=<expiration sent to you from Parasoft>

soatest.license.use_network=false
soatest.license.local.password=<password sent to you from Parasoft>
soatest.license.local.expiration=<expiration sent to you from Parasoft>

有关许可证设置的详情,请查阅 服务器配置 。有关高级配置,请参见 高级服务器配置选项。 

使用许可证服务器中的许可证

配置以下设置以使用许可证服务器中的许可证:

SOAtest 和 Virtualize 的许可证
license.network.host=<hostname where License Server is deployed>
license.network.port=<port number for your License Server>

virtualize.license.use_network=true
virtualize.license.network.edition=performance_server_edition
virtualize.license.custom_edition_features=<comma-separated list of features>
virtualize.license.enabled=true

soatest.license.use_network=true
soatest.license.network.edition=server_edition
soatest.license.custom_edition_features=<comma-separated list of features>
soatest.license.enabled=true

联系 Parasoft 代表,确定你的组织购买的许可证类型(比如, server_edition)。如果正在使用自定义版本,则你至少需要为 Virtualize 至少指定 Service Enabled 特性,和/或为 SOAtest 指定 Server API Enabled 特性。

仅针对 Virtualize 的许可证
license.network.host=<hostname where License Server is deployed>
license.network.port=<port number for your License Server>

virtualize.license.use_network=true
virtualize.license.network.edition=performance_server_edition
virtualize.license.custom_edition_features=<comma-separated list of features>
virtualize.license.enabled=true

soatest.license.enabled=false


仅针对 SOAtest 的许可证
license.network.host=<hostname where License Server is deployed>
license.network.port=<port number for your License Server>

virtualize.license.enabled=false

soatest.license.use_network=true
soatest.license.network.edition=server_edition
soatest.license.custom_edition_features=<comma-separated list of features>
soatest.license.enabled=true

有关其他信息,请查阅 服务器配置有关高级配置,请参见 高级服务器配置选项

使用 DTP 的许可证

SOAtest 和 Virtualize 服务器支持来自 Parasoft DTP 的许可证。配置以下设置以使用来自 DTP 的许可证:

virtualize.license.use_network=true
soatest.license.user_network=true
dtp.server=<hostname where DTP is deployed>
dtp.port=<port number for your DTP deployment>
dtp.user=<username for account on DTP>
dtp.password=<password for account on DTP>

有关其他信息,请查阅 服务器配置有关高级配置,请参见 高级服务器配置选项

启动服务器后设置许可证

可以使用 REST API 为服务器设置许可证。还可以使用 API 配置到 CTP 的连接(请参见 服务器配置中的 env.manager.* 设置)。

  1. 启动服务器,并转到端点以写入 .properties 文件:

    http://<host>:<port>/soavirt/api/v5#!/preferences/preferencesPUT_config
     
  2. 将许可证设置作为 JSON 对象输入到 input 字段,然后单击 Try it out!。文档描述了有效对象的结构。关于可以复制并粘贴到 UI 中的示例,请查看 Example Requests 。下面的例子设置了一个网络许可证:
  3. 如果许可证有效且参数设置正确,API 将返回适当的响应。
  4. 通过单击 Try it out! 按钮调用以下端点以验证许可证设置成功按钮:  

    http://<host>:<port>/soavirt/api#!/status/statusGET

    这将显示关于服务器主机和每个许可证特性的状态信息。

示例请求

你可以复制并粘贴以下 JSON 示例到 REST API 端点中,以帮助你入门。更改主机、端口和任何特性设置以匹配你的许可证。

网络许可证使用许可证服务器 - Virtualize 和 SOAtest
{
  "license": {
    "licenseServer": {
      "host": "<your-LS-host>",
      "port": <your-LS-port>
    },
    "virtualize": {
      "enabled": true,
      "useNetwork": true,
      "network": {
        "edition": "performance_server_edition"
      }
    },
    "soatest": {
      "enabled": true,
      "useNetwork": true,
      "network": {
        "edition": "server_edition"
      }
    }
  }
}
网络许可证使用许可证服务器 - Virtualize 和 SOAtest - 自定义特性
{
  "license": {
    "licenseServer": {
      "host": "<your-LS-host>",
      "port": <your-LS-port>
    },
    "virtualize": {
      "enabled": true,
      "useNetwork": true,
      "network": {
        "edition": "custom_edition",
		"customFeatures": [
		"<comma-separated-list-of-features>"
		]
      }
    },
    "soatest": {
      "enabled": true,
      "useNetwork": true,
      "network": {
        "edition": "custom_edition",
 		"customFeatures": [
		"<comma-separated-list-of-features>"
		]
      }
    }
  }
} 
网络许可证使用 DTP - 只针对 Virtualize
{
  "license": {
    "dtp": {
      "host": "<your-DTP-host>",
      "port": <your-DTP-port>,
      "username": "<your-DTP-username>",
      "password": "<your-DTP-password>"
    },
    "virtualize": {
      "enabled": true,
      "useNetwork": true,
      "network": {
        "edition": "performance_server_edition"
      }
    }
  }
}

 

网络许可证使用 DTP - Virtualize 和 SOAtest
{
  "license": {
    "dtp": {
      "host": "<your-DTP-host>",
      "port": <your-DTP-port>,
      "username": "<your-DTP-username>",
      "password": "<your-DTP-password>"
    },
    "virtualize": {
      "enabled": true,
      "useNetwork": true,
      "network": {
        "edition": "performance_server_edition"
      }
    },
    "soatest": {
      "enabled": true,
      "useNetwork": true,
      "network": {
        "edition": "server_edition"
      }
    }
  }
}
  • No labels