DeployVisualStudioTestAgent@1 - Visual Studio 測試代理程式部署 v1 工作

此工作會部署並設定測試代理程式,以在一組機器上執行測試。

重要

此工作已被取代。 使用 Visual Studio 測試工作 來執行單元和功能測試。

Syntax

# Visual Studio Test Agent Deployment v1
# Deploy and configure Test Agent to run tests on a set of machines.
- task: DeployVisualStudioTestAgent@1
  inputs:
  # Test Machine Group
    testMachineGroup: # string. Required. Machines. 
    #adminUserName: # string. Admin Login. 
    #adminPassword: # string. Admin Password. 
    #winRmProtocol: # 'Http' | 'Https'. Protocol. 
    #testCertificate: true # boolean. Optional. Use when winRmProtocol = Https. Test Certificate. Default: true.
    #resourceFilteringMethod: 'machineNames' # 'machineNames' | 'tags'. Select Machines By. Default: machineNames.
    #testMachines: # string. Filter Criteria. 
  # Agent Configuration
    machineUserName: # string. Required. Username. 
    machinePassword: # string. Required. Password. 
    #runAsProcess: false # boolean. Interactive Process. Default: false.
  # Advanced
    #agentLocation: # string. Test Agent Location. 
    #updateTestAgent: true # boolean. Update Test Agent. Default: true.
    #isDataCollectionOnly: false # boolean. Enable Data Collection Only. Default: false.

輸入

testMachineGroup - 機器
string. 必要。

這個輸入有三個選項:

  • 提供以逗號分隔的電腦IP位址或 FQDN 清單以及埠。 預設埠是以選取的通訊協議為基礎。 例如: dbserver.fabrikam.com,dbserver_int.fabrikam.com:5986,192.168.12.34:5986
  • 提供其他工作的輸出變數。 例如: $(variableName)
  • 提供計算機組名。 如果您使用 HTTPS,計算機的名稱/IP 應該符合憑證上的 CN。

adminUserName - 管理員 登入
string.

指定目標計算機的系統管理員登入。


adminPassword - 管理員 密碼
string.

指定目標計算機的系統管理員密碼。 這個輸入可以接受建置/發行定義中所定義的變數作為 $(passwordVariable)。 您可以將變數類型標示為 secret 來保護它。


winRmProtocol - 協定
string. 允許值:HttpHttps

指定要用於與電腦 () 之 WinRM 連線的通訊協定。 預設值是 HTTPS


testCertificate - 測試憑證
boolean. 選擇性。 使用 時 winRmProtocol = Https。 預設值:true

提供選項,以略過受信任證書頒發機構單位機器憑證的真實性驗證。 WinRM HTTPS 通訊協定需要 參數。


resourceFilteringMethod - 選取機器依據
string. 允許的值: machineNames (電腦名稱) , tags。 預設值:machineNames


testMachines - 篩選準則
string.

提供類似 dbserver.fabrikam.com, dbserver_int.fabrikam.com, 192.168.12.34 或標籤 Role:DB;OS:Win8.1的電腦清單。 傳回具有任一標記的計算機。 針對 Azure 資源群組,提供機器名稱的 VM 主機名。 預設會在 [機器] 欄位中代表的所有電腦上部署代理程式。


machineUserName - 使用者
string. 必要。

指定測試代理程式需要執行的用戶名稱。


machinePassword - 密碼
string. 必要。

指定上述使用者名稱的密碼。


runAsProcess - 互動式程式
boolean. 預設值:false

表示測試代理程式是否需要以互動式程序執行。 自動程式化 UI 測試需要此輸入。


agentLocation - 測試代理程式位置
string.

選擇性。 提供從網路或本機位置 vstf_testagent.exe 的路徑。 如果未提供路徑,則會從 下載中心下載


updateTestAgent - 更新測試代理程式
boolean. 預設值:true

選擇性。 指定測試代理程式是否需要更新。


isDataCollectionOnly - 僅啟用數據收集
boolean. 預設值:false

選擇性。 指定測試代理程式是否僅用於資料收集,而不是用於執行測試。 這通常可在測試 (AUT) 電腦群組下的應用程式上找到。


工作控制選項

除了工作輸入之外,所有工作都有控制選項。 如需詳細資訊,請參閱 控制選項和一般工作屬性

輸出變數

無。

規格需求

需求 描述
管線類型 YAML、傳統組建、傳統版本
在上執行 Agent、DeploymentGroup
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 任何
可設定變數 任何
代理程式版本 1.104.0 或更新版本
工作類別 測試