简体   繁体   中英

Azure devops pipeline tasks for a project with stack: selenium, c#, Nunit, edge browser

I usually work on infra side and I'm new to application side. I got a request to build azure devops pipeline to run scripts in repository, which consists of stack: Selenium, c#, Nunit, edge browser. I was confused on what tasks to be used to build this pipeline.

Any suggestions and help is much appreciated.

Thanks in advance

Using Visual Studio, you can create your selenium test project with Nunit or any tests and deploy in Azure devops pipelines . Please follow below Steps:

For Selenium Test project creation:

  1. Visual Studio - File > New Unit test project names as MySeleniumTests
  2. Add these nuget packages
  • Selenium.WebDriver, Selenium.Firefox.WebDriver, Selenium.WebDriver.ChromeDriver, Selenium.WebDriver.IEDriver
  1. Use this demo code for testing locally using test explorer.

Define your build pipeline

You'll need a continuous integration (CI) build pipeline that builds your Selenium tests. For more details, refer Build your .NET desktop app for Windows .

Create your web app

You'll need a web app to test. You can use an existing app, or deploy one in your continuous deployment (CD) release pipeline. For details of how to set up your own release pipeline to deploy a web app, refer Deploy to Azure Web Apps .

在此处输入图片说明

For more information how to run selenium tests using nunit, check Selenium Scripts using Nunit and this , SO Thread .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM