Azure DevOp - 设置屏幕分辨率交互模式

标签 azure selenium-webdriver azure-devops continuous-integration azure-pipelines

由于我的虚拟机以小分辨率打开,我遇到了很多不稳定测试的情况,主要是关于“元素不可点击”通知。我的问题的解决方案可能是添加扩展并提高分辨率: https://marketplace.visualstudio.com/items?itemName=ms-autotest.screen-resolution-utility-task

问题是我不知道它应该放在我的管道中的什么位置,如下所示: My pipeline v.1

My pipeline v.2

为了成功运行此扩展,需要满足要求:

  • 代理必须配置为作为交互式进程运行并启用自动登录(我应该在哪里启用它?)

我应该直接通过我的“重新启动”代理选项上的“需求”部分来配置它吗?我尝试将扩展放入“停止”和“启动”代理任务之间的“重新启动”部分,但失败了...

最佳答案

您可以将代理重新配置为交互模式(查看下面的详细步骤),或者安装新代理并将其配置为虚拟机上的交互模式。检查here安装新的自托管代理并检查更多配置。

1,

要将代理重新配置为交互模式,您需要 cd 到代理安装文件夹并运行.\config remove 首先将其删除,如下图所示。 enter image description here

2,

删除代理后,运行.\config重新配置您的代理,并在配置过程中选择交互式。请引用下面的屏幕截图,并在突出显示的步骤中小心选择正确的选项(是/否)

enter image description here

3、 通过运行 .\run

启动交互式代理

以上步骤应以管理员身份运行。我按照上述步骤并成功运行设置屏幕分辨率任务。

关于Azure DevOp - 设置屏幕分辨率交互模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58269627/

相关文章:

node.js - Azure Node.js 在辅助角色中运行服务总线队列消息

c# - "Element is not currently visible and so may not be interacted with"但另一个是?

python - 如何根据 datetime.date.today() 匹配 <td></td> 中的当前日期?

WebDriver - 如何验证是否存在警报?

azure - ${{ if }} Azure DevOps YAML 中的语法

Azure ACS - 中继方应用程序 - 带参数的 ReturnURL?

azure - 路由到 Azure Front Door 后面的多个 Web 应用程序

Azure 开发运营 : Compose Error: The current Compose file version is not compatible with your engine version

用于删除 Blob 存储中所有文件的 Azure CLI 命令不适用于启用防火墙的 AZ 存储

azure - PRODConfirmInvitationCode : "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized"