forked from microsoft/BotFramework-FunctionalTests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunTestScenarios.yml
102 lines (91 loc) · 4.61 KB
/
runTestScenarios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# Executes the test scenarios.
#
# "name" here defines the build number format. Build number is accessed via $(Build.BuildNumber)
name: $(BUILD.BUILDID)
trigger: none
pr: none
variables:
BuildConfiguration: "Debug"
## Azure Resources (Define these variables in Azure)
# AzureSubscription: Service Connection Name to Manage Azure resources.
# ResourceGroup: (optional) Name of the Resource Group where the bots are deployed.
# ResourceSuffix: (optional) Alphanumeric suffix to add to the resources' name to avoid collisions.
## Bots Configuration (Define these variables in Azure)
# BffnEchoSkillBotComposerDotNetAppId: (optional) App Id for BffnEchoSkillBotComposerDotNet bot.
# BffnEchoSkillBotDotNet21AppId: (optional) App Id for BffnEchoSkillBotDotNet21 bot.
# BffnEchoSkillBotDotNetAppId: (optional) App Id for BffnEchoSkillBotDotNet bot.
# BffnEchoSkillBotDotNetV3AppId: (optional) App Id for BffnEchoSkillBotDotNetV3 bot.
# BffnEchoSkillBotJSAppId: (optional) App Id for BffnEchoSkillBotJS bot.
# BffnEchoSkillBotJSV3AppId: (optional) App Id for BffnEchoSkillBotJSV3 bot.
# BffnEchoSkillBotPythonAppId: (optional) App Id for BffnEchoSkillBotPython bot.
# BffnWaterfallSkillBotDotNetAppId: (optional) App Id for BffnWaterfallSkillBotDotNet bot.
# BffnWaterfallSkillBotJSAppId: (optional) App Id for BffnWaterfallSkillBotJS bot.
# BffnWaterfallSkillBotPythonAppId: (optional) App Id for BffnWaterfallSkillBotPython bot.
# DeployBotResourcesGuid: (optional) Deploy Bot Resources pipeline GUID.
## Internal variables
InternalKeyVaultName: "bffnbotkeyvault$(INTERNALRESOURCESUFFIX)"
InternalResourceGroupName: $[coalesce(variables['RESOURCEGROUP'], 'BFFN')]
InternalResourceSuffix: $[coalesce(variables['RESOURCESUFFIX'], '')]
pool:
vmImage: "windows-2019"
stages:
- stage: "Download_Variables"
displayName: "Download Variables"
jobs:
- job: "Download_Variables"
displayName: "Download Variables"
steps:
- powershell: |
$pipelineGuid = if ([string]::IsNullOrEmpty("$env:DEPLOYBOTRESOURCESGUID")) { "02 - Deploy Bot Resources" } else { "$(DEPLOYBOTRESOURCESGUID)" }
Write-Host "Deploy Bot Resources Pipeline GUID: " $pipelineGuid
Write-Host "##vso[task.setvariable variable=PipelineGuid]$pipelineGuid"
displayName: "Set Deploy Bot Resources GUID"
- task: DownloadPipelineArtifact@2
displayName: "Download Variables artifact"
inputs:
source: "specific"
project: "$(SYSTEM.TEAMPROJECT)"
pipeline: "$(PIPELINEGUID)"
allowPartiallySucceededBuilds: true
allowFailedBuilds: true
artifact: "Variables"
path: "$(SYSTEM.DEFAULTWORKINGDIRECTORY)/Variables/"
- powershell: |
$deploymentBuildSuffix = (Get-Content -Path "$(SYSTEM.DEFAULTWORKINGDIRECTORY)/Variables/variables.json" | ConvertFrom-Json).deploymentBuildSuffix
Write-Host "Deployment Build Suffix: " $deploymentBuildSuffix
Write-Host "##vso[task.setvariable variable=DeploymentBuildSuffix;isOutput=true]-$deploymentBuildSuffix"
displayName: "Set variables"
name: "Set_Variables"
- template: runScenario.yml
parameters:
appIds:
EchoSkillBotComposerDotNet: "$(BFFNECHOSKILLBOTCOMPOSERDOTNETAPPID)"
EchoSkillBotDotNet: "$(BFFNECHOSKILLBOTDOTNETAPPID)"
EchoSkillBotDotNet21: "$(BFFNECHOSKILLBOTDOTNET21APPID)"
EchoSkillBotDotNetV3: "$(BFFNECHOSKILLBOTDOTNETV3APPID)"
EchoSkillBotJS: "$(BFFNECHOSKILLBOTJSAPPID)"
EchoSkillBotJSV3: "$(BFFNECHOSKILLBOTJSV3APPID)"
EchoSkillBotPython: "$(BFFNECHOSKILLBOTPYTHONAPPID)"
WaterfallSkillBotDotNet: "$(BFFNWATERFALLSKILLBOTDOTNETAPPID)"
WaterfallSkillBotJS: "$(BFFNWATERFALLSKILLBOTJSAPPID)"
WaterfallSkillBotPython: "$(BFFNWATERFALLSKILLBOTPYTHONAPPID)"
azureSubscription: "$(AZURESUBSCRIPTION)"
buildConfiguration: "$(BUILDCONFIGURATION)"
buildIdSuffix: $[stageDependencies.Download_Variables.Download_Variables.outputs['Set_Variables.DeploymentBuildSuffix']]
keyVault: "$(INTERNALKEYVAULTNAME)"
resourceGroup: "$(INTERNALRESOURCEGROUPNAME)"
resourceSuffix: "$(INTERNALRESOURCESUFFIX)"
scenarios:
- name: Waterfall
dependsOn: [Download_Variables]
testCategories:
- Attachments
- CardActions
- ProactiveMessages
- FileUpload
- SignIn
- name: SingleTurn
dependsOn: [Download_Variables]
testCategories:
- SingleTurn