我們期待通過Vsphere從測試完成管理(升級/新建)VMWare的過程自動化。通過Vsphere從TestComplete管理(升級/新建)VMWare的過程自動化
一般流程是:
a。啓動Vsphere客戶端 b。導航到Vsphere中的特定羣集 c。打開相應的服務器虛擬機或創建新的虛擬機
上述實現的任何指針都會有幫助。非常感謝!
我們期待通過Vsphere從測試完成管理(升級/新建)VMWare的過程自動化。通過Vsphere從TestComplete管理(升級/新建)VMWare的過程自動化
一般流程是:
a。啓動Vsphere客戶端 b。導航到Vsphere中的特定羣集 c。打開相應的服務器虛擬機或創建新的虛擬機
上述實現的任何指針都會有幫助。非常感謝!
VMware vSphere有API with libraries for many languages。您可以使用其Java或.NET版本與TestComplete中的vSphere配合使用,其Java Bridge或CLR Bridge功能。
看起來TestComplete支持多種腳本語言。我會說最簡單的方法就是使用VMware PowerCLI(一個用於管理vSphere和其他VMware產品的PowerShell模塊/套件)來自動執行此過程。
你會使用基本PowerCLI的腳本是:
Connect-VIServer Your_vCenter_FQDN_or_IP_here -username first.last -password yourloginpassword
$existingVM = Get-Cluster CLUSTERNAME | Get-VM VMNAME
if ($existingVM)
{
Start-VM $existingVM
}
else
{
New-VM -Name VMNAME # probably need a few more mandatory paramaters specified here...
}