有谁知道如何在 Azure DevOps 发布管道中执行 Selenium 测试文件.side?我正在使用命令行

问题描述

*抱歉我的无知。

我正在使用 selenium-side-runner 并且我的目标是 W: 驱动器,目标服务器将网站部署到该服务器上,并且还托管测试文件 (.side)。我只是手动将文件添加到服务器。

selenium-side-runner w:/SeleniumTestScripts/DevTap.side --output-directory w:/SeleniumTestScripts/Output --output-format=junit --debug --config-file w:/SeleniumTestScripts/config.yaml

我应该把 .side 文件放在哪里?在目标部署服务器上? 它似乎无法找到它们。

我是否需要在部署过程中将它们添加到 Repo 中?

*

enter image description here

2021-05-10T18:09:08.9024237Z ##[section]Starting: 3) Run exported Selenium IDE script (.side)
2021-05-10T18:09:08.9143575Z ==============================================================================
2021-05-10T18:09:08.9143885Z Task         : Command line
2021-05-10T18:09:08.9144207Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2021-05-10T18:09:08.9144491Z Version      : 2.182.0
2021-05-10T18:09:08.9144713Z Author       : Microsoft Corporation
2021-05-10T18:09:08.9145029Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2021-05-10T18:09:08.9145385Z ==============================================================================
2021-05-10T18:09:11.3248098Z Generating script.
2021-05-10T18:09:11.3351185Z Script contents:
2021-05-10T18:09:11.3357235Z selenium-side-runner w:/SeleniumTestScripts/DevTap.side --output-directory w:/SeleniumTestScripts/Output --output-format=junit --debug --config-file w:/SeleniumTestScripts/config.yaml
2021-05-10T18:09:11.3685160Z ========================== Starting Command Output ===========================
2021-05-10T18:09:11.3927321Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\1a8c7b60-5446-4f73-bd39-b1e3154b7574.cmd""
2021-05-10T18:09:11.6351195Z [34mdebug[39m:   Could not load w:/SeleniumTestScripts/config.yaml
2021-05-10T18:09:11.6384711Z [34mdebug[39m:   {
2021-05-10T18:09:11.6385268Z   capabilities: { browserName: 'chrome' },2021-05-10T18:09:11.6385815Z   params: {},2021-05-10T18:09:11.6386185Z   runId: '1d920a92a721072218013322137b7a61',2021-05-10T18:09:11.6386612Z   path: 'C:\\npm\\prefix\\node_modules\\',2021-05-10T18:09:11.6386988Z   server: undefined,2021-05-10T18:09:11.6387326Z   timeout: 15000,2021-05-10T18:09:11.6387685Z   baseUrl: undefined,2021-05-10T18:09:11.6388053Z   outputFormat: [Function: junit]
2021-05-10T18:09:11.6388422Z }
2021-05-10T18:09:11.6821585Z ##[section]Finishing: 3) Run exported Selenium IDE script (.side)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...