Selnium与Azure的持续集成 [英] Continous Integration of Selnium with Azure

查看:89
本文介绍了Selnium与Azure的持续集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我是QA工程师并运行脚本来测试Web应用程序。现在,我的团队希望能够持续整合和部署Selenium代码。应用程序建立在天蓝色管道上。因此,当他们部署一个新构建的时,我的脚本应生成
报告哪个测试用例通过,哪个测试用例失败。我把我的代码推到了azure repos上。现在我如何使用app配置我的代码。我不知道。如何在azure管道中添加我的selenium代码并成功运行它。

解决方案

Muneeb23,



使用Azure DevOps的CI / CD工作流程概述如下。 此示例使用webapp,尽管视觉也应该对您的场景有所帮助:




这将引导您完成:



  • 创建部署组
  • 将VM与部署组关联
  • 在VM上配置代理
  • 配置发布管道
  • 触发构建和发布
  • 在Chrome中运行测试


我希望这有帮助!






Hi I'm a QA Engineer and run a script to test the web app. Now my team want to make continuous intergration and deployment of Selenium code with  application built on azure pipeline. So when they will deploy a new built then my script should generate report that which test case is pass and which one is fail. I have pushed my code on azure repos. Now how i can configure my code with app. I have no idea. How i can add my selenium code in azure pipeline and run it successfully.

解决方案

Muneeb23,

The CI/CD workflow using Azure DevOps is outlined below.  This example uses a webapp as although the visual should be helpful for your scenario as well:

https://docs.microsoft.com/en-us/azure/architecture/example-scenario/apps/devops-dotnet-webapp

The data flows through the scenario as follows:

  1. A developer changes application source code.
  2. Application code including the web.config file is committed to the source code repository in Azure Repos.
  3. Continuous integration triggers application build and unit tests using Azure Test Plans.
  4. Continuous deployment within Azure Pipelines triggers an automated deployment of application artifacts with environment-specific configuration values.
  5. The artifacts are deployed to Azure App Service.
  6. Azure Application Insights collects and analyzes health, performance, and usage data.
  7. Developers monitor and mange health, performance, and usage information.
  8. Backlog information is used to prioritize new features and bug fixes using Azure Boards.

More specific to your question, there is an excellent write up on automating Selenium using Azure Pipelines:

https://www.azuredevopslabs.com/labs/vstsextend/selenium/

This will walk you through:

  • Creating a Deployment Group
  • Associating the VM with the Deployment group
  • Configuring an agent on the VM
  • Configuring the release Pipeline
  • Triggering Build and Release
  • Running tests in Chrome

I hope this helps!



这篇关于Selnium与Azure的持续集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆