【发布时间】:2019-09-01 07:24:58
【问题描述】:
只是想知道是否可以在 Azure 管道中为 UWP 应用运行基于 Appium 的 UI 测试?
第一个挑战是,如何部署 UWP 以在管道内进行测试。
【问题讨论】:
标签: uwp azure-devops azure-pipelines appium-desktop
只是想知道是否可以在 Azure 管道中为 UWP 应用运行基于 Appium 的 UI 测试?
第一个挑战是,如何部署 UWP 以在管道内进行测试。
【问题讨论】:
标签: uwp azure-devops azure-pipelines appium-desktop
我设法弄明白了。
- task: PowerShell@2
displayName: 'Install app'
inputs:
filePath: '$(build.artifactstagingdirectory)\\AppxPackages\\MyApp_1.0.0.0_Test\\Add-AppDevPackage.ps1'
arguments: '-Force'
2.1 您还需要在测试前后启动和停止 win 应用驱动程序
- task: Windows Application Driver@0
displayName: Starting WinAppDriver
inputs:
OperationType: 'Start'
AgentResolution: '1080p'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*Test*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
uiTests: true
- task: Windows Application Driver@0
displayName: Stopping WinAppDriver
inputs:
OperationType: 'Stop'
【讨论】: