只是想知道是否可以在azure管道中为UWP应用运行基于Appium的UI测试?
第一个挑战是如何部署UWP以在管道中进行测试。
答案 0 :(得分:1)
我设法弄清楚了。
- 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 app驱动程序
- 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'