Skip to content

Commit acc6452

Browse files
committed
Add the Azure Pipelines ReadMe
1 parent 963c07c commit acc6452

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
### Running browser-based test automation with [Azure Pipelines](https://dev.azure.com/seleniumbase/seleniumbase/_build?definitionId=1&_a=summary) by using [SeleniumBase](https://github.com/seleniumbase/SeleniumBase)
2+
3+
4+
#### Step 0. Fork [SeleniumBase](https://github.com/seleniumbase/SeleniumBase) to get started quickly.
5+
6+
(You'll be using your own repository eventually.)
7+
8+
9+
#### Step 1. Get Azure Pipelines from the GitHub Marketplace
10+
11+
Navigate to [https://github.com/marketplace/azure-pipelines](https://github.com/marketplace/azure-pipelines)
12+
13+
* Set up a new plan (it's free) and follow the steps...
14+
15+
![](https://cdn2.hubspot.net/hubfs/100006/images/github_azure_pipelines_1.png "GitHub Azure Pipelines")
16+
17+
![](https://cdn2.hubspot.net/hubfs/100006/images/github_azure_pipelines_2.png "GitHub Azure Pipelines")
18+
19+
![](https://cdn2.hubspot.net/hubfs/100006/images/github_azure_pipelines_3.png "GitHub Azure Pipelines")
20+
21+
22+
#### Step 2. Go to Microsoft Azure DevOps to set up your environment
23+
24+
Navigate to [https://azure.microsoft.com/en-us/services/devops/?nav=min](https://azure.microsoft.com/en-us/services/devops/?nav=min)
25+
26+
* Follow the steps...
27+
28+
"Start free with Pipelines" if you don't already have an account:
29+
30+
![](https://cdn2.hubspot.net/hubfs/100006/images/azure_devops_1.png "Azure DevOps")
31+
32+
Give your new project a name and set visibility to public (for your SeleniumBase fork):
33+
34+
![](https://cdn2.hubspot.net/hubfs/100006/images/azure_devops_2.png "Azure DevOps")
35+
36+
Say that your code is hosted on GitHub:
37+
38+
![](https://cdn2.hubspot.net/hubfs/100006/images/azure_devops_3.png "Azure DevOps")
39+
40+
Select your fork of SeleniumBase as your repository:
41+
42+
![](https://cdn2.hubspot.net/hubfs/100006/images/azure_devops_4.png "Azure DevOps")
43+
44+
Copy the [azure-pipelines.yml](https://github.com/seleniumbase/SeleniumBase/blob/master/azure-pipelines.yml) file from SeleniumBase into the azure-pipelines.yml box to create your new pipeline:
45+
46+
![](https://cdn2.hubspot.net/hubfs/100006/images/azure_devops_5.png "Azure DevOps")
47+
48+
When you're done copying, click "Run".
49+
50+
51+
#### Step 3. Congratulations! Your browser tests are now running!
52+
53+
Here's what a SeleniumBase sample run in Azure Pipelines may look like:
54+
55+
[https://dev.azure.com/seleniumbase/seleniumbase/\_build/results?buildId=15](https://dev.azure.com/seleniumbase/seleniumbase/_build/results?buildId=15)
56+
57+
![](https://cdn2.hubspot.net/hubfs/100006/images/azure_devops_6.png "Azure DevOps")
58+
59+
Now, every time you create a pull request, your Azure Pipelines will run your tests.
60+
61+
To learn more, study [SeleniumBase](https://github.com/seleniumbase/SeleniumBase) and see how the [azure-pipelines.yml](https://github.com/seleniumbase/SeleniumBase/blob/master/azure-pipelines.yml) file works.

0 commit comments

Comments
 (0)