mirror of
https://github.com/microsoft/calculator.git
synced 2025-03-12 04:35:52 -07:00
* onboard 1ES PT * revert the todo item * resolve comments * add back the nuget security analysis for OSSBuild
64 lines
2.1 KiB
YAML
64 lines
2.1 KiB
YAML
# This template contains jobs to run UI tests using WinAppDriver.
|
|
|
|
parameters:
|
|
isOSSBuild: false
|
|
platform: ''
|
|
runsettingsFileName: ''
|
|
|
|
jobs:
|
|
- job: UITests${{ parameters.platform }}
|
|
displayName: UITests ${{ parameters.platform }}
|
|
dependsOn: Build${{ parameters.platform }}
|
|
condition: succeeded()
|
|
pool:
|
|
${{ if eq(parameters.isOSSBuild, true) }}:
|
|
name: EssentialExperiencesOpenSource-Win11
|
|
${{ if eq(parameters.isOSSBuild, false) }}:
|
|
name: EssentialExperiences-Win11
|
|
variables:
|
|
skipComponentGovernanceDetection: true
|
|
DropName: drop-${{ parameters.platform }}
|
|
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 1
|
|
|
|
- task: PowerShell@2
|
|
displayName: Turn off animation effects
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)\build\scripts\TurnOffAnimationEffects.ps1
|
|
|
|
- task: ScreenResolutionUtility@1
|
|
displayName: Set resolution to 1920x1080
|
|
inputs:
|
|
displaySettings: 'specific'
|
|
width: 1920
|
|
height: 1080
|
|
|
|
- download: current
|
|
displayName: Download MsixBundle and CalculatorUITests
|
|
artifact: $(DropName)
|
|
patterns: |
|
|
Calculator/AppPackages/**
|
|
publish/**
|
|
|
|
- task: PowerShell@2
|
|
displayName: Install certificate
|
|
inputs:
|
|
filePath: $(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Add-AppDevPackage.ps1
|
|
arguments: -CertificatePath $(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Calculator_$(Build.BuildNumber)_${{ parameters.platform }}.cer -Force
|
|
|
|
- task: PowerShell@2
|
|
displayName: Install app
|
|
inputs:
|
|
filePath: $(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Add-AppDevPackage.ps1
|
|
arguments: -Force
|
|
|
|
- task: VSTest@2
|
|
displayName: Run CalculatorUITests
|
|
inputs:
|
|
testAssemblyVer2: $(Pipeline.Workspace)/$(DropName)/publish/CalculatorUITests.dll
|
|
runSettingsFile: $(Pipeline.Workspace)/$(DropName)/publish/${{ parameters.runsettingsFileName }}
|
|
platform: ${{ parameters.platform }}
|
|
configuration: Release
|