当linux版Parasoft 的C++Test安装在无界面的PC 服务器上时,我们如何获取Parasoft C++test机器码来获取使用License呢?又如何设置License进行静态测试呢?下面本文讲逐步介绍。
命令行下如何获取机器码
当在Linux下安装完Parasoft C++Test后,我们输入一条命令就可以获得Parasoft C++Test的机器码。例如: cpptestcli -config "builtin://Recommended Rules" -report report。输入后会显示如下信息:
我们可以看到红框内的机器码MachineID 是 LINUX2-6041b00c。有了机器码我们就可以向厂家申请License了。
设置License
设置C++Test desktop edition版网络License的示例:
cpptest.license.network.edition=desktop_edition
cpptest.license.use_network=true
license.network.host=main1.parasoft.com.pl
license.network.port=2222
设置 C++Test定制版的本地License的示例:
cpptest.license.local.expiration=2012-