集成了azuredevops和Python,以便在azuredevops中传递来自自动化脚本和更新的测试结果?

2024-05-23 21:06:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我目前正在用Appium和Python执行一些移动应用程序自动化,测试用例在azuredevops上。在

我对Appium、Python和TestLink也做了同样的事情。我已经使用TestLink API Python客户机将测试结果自动传递给TestLink。在

不管怎样,我能用azuredevops做同样的事情吗?在


Tags: api应用程序客户机测试用例事情appiumtestlinkazuredevops
1条回答
网友
1楼 · 发布于 2024-05-23 21:06:14

这是我用来将pytest的测试上传到Azure Devops的管道的yaml代码(摘录):

- script: PYTHONPATH=$(pwd) pytest python/tests  type test  junitxml=test_everything.xml
  displayName: "Run pytest"

- task: PublishTestResults@2
  inputs:
    testResultsFiles: '**/test_*.xml'
    searchFolder: '$(Build.Repository.LocalPath)/deployment'
  condition: always()

相关问题 更多 >