forked from microsoft/PowerAppsTestAutomation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
65 lines (60 loc) · 1.92 KB
/
azure-pipelines.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
# File: azure-pipelines.yml
# Build Name / Format
name: PowerAppsTestAutomation-$(date:yyyyMMdd)$(rev:.r)
trigger: none
resources:
repositories:
- repository: PowerAppsTestAutomation
type: github
# GitHub Repo(e.g. <FORK>/PowerAppsTestAutomation)
# Recommended to Fork or Duplicate if custom auth flows are required
name: live1206/PowerAppsTestAutomation
ref: master
# Name of the GitHub OAuth ADO Service Connection
endpoint: GitHub-PowerApps-Testing
parameters:
- name: BrowserType
displayName: Browser Type
type: string
default: Chrome
values:
- Chrome
- Firefox
- All
jobs:
- job: "PowerAppsTestFrameworkAutomation"
pool:
vmImage: windows-latest
demands:
- msbuild
- visualstudio
- vstest
variables:
- name: PortalUrl
value: https://make.powerapps.com
# Browser PrivateMode usage (true/false)
- name: PrivateMode
value: true
# FileName where TestAutomationURLs are stored in JSON format
- name: TestUrlFileName
value: TestURLs.json
# Project name of repo containing TestAutomationURLs (spaces should be encoded as %20)
# Example: Contoso Test Framework --> Contoso%20Test%20Framework
- name: LocalProjectName
value: PowerAppsTestAutomation
- name: LoginMethod
value: FederatedIdentity
steps:
- checkout: self
- checkout: PowerAppsTestAutomation
#- template: localsteps.yml # Provide optional local YAML template here
- template: frameworksteps.yml@PowerAppsTestAutomation
parameters:
OnlineUsername: $(OnlineUsername)
OnlinePassword: $(OnlinePassword)
OnlineUrl: $(PortalUrl)
BrowserType: ${{ parameters.BrowserType }}
# File location format is /s/TeamProjectName/FilePathToTestAutomationURLs.json
TestAutomationURLFilePath: $(Build.SourcesDirectory)\$(LocalProjectName)\$(TestUrlFileName)
UsePrivateMode: $(PrivateMode)
LoginMethod: $(LoginMethod)