|
| 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 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 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 | + |
| 31 | + |
| 32 | +Give your new project a name and set visibility to public (for your SeleniumBase fork): |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +Say that your code is hosted on GitHub: |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +Select your fork of SeleniumBase as your repository: |
| 41 | + |
| 42 | + |
| 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 | + |
| 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 | + |
| 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