VSTS - 无法将视频添加到测试运行附件中

时间:2018-04-26 08:17:53

标签: azure-devops azure-pipelines-release-pipeline

我正在尝试使用发布测试结果 VSTS任务为每次测试运行添加一些失败的测试视频,但文件似乎没有上传。目录中的其他文件已附加。

在我的测试运行结束时,我的结果文件夹如下所示......

enter image description here

我的任务设置如下....

enter image description here

来自简单测试的输出......

enter image description here

未找到/上传.mp4文件

我有一种感觉,这可能是因为只能从文件夹moconnor_SEPASELENIUMVM 2018-04-26 07_47_55中检索附件。如果这是问题,那么我无法在代码中添加此文件夹,因为我没有使用MSTest。

如果这是问题,我还可以在此任务中添加附件吗?

这是来自任务的日志...

2018-04-26T07:48:04.4016201Z ##[debug]Evaluating condition for step: 'Publish Test Results'
2018-04-26T07:48:04.4016201Z ##[debug]Evaluating: succeededOrFailed()
2018-04-26T07:48:04.4016201Z ##[debug]Evaluating succeededOrFailed:
2018-04-26T07:48:04.4016201Z ##[debug]=> (Boolean) True
2018-04-26T07:48:04.4016201Z ##[debug]Expanded: True
2018-04-26T07:48:04.4016201Z ##[debug]Result: True
2018-04-26T07:48:04.4016201Z ##[section]Starting: Publish Test Results
2018-04-26T07:48:04.4016201Z ==============================================================================
2018-04-26T07:48:04.4016201Z Task         : Publish Test Results
2018-04-26T07:48:04.4016201Z Description  : Publish Test Results to VSTS/TFS
2018-04-26T07:48:04.4016201Z Version      : 2.0.5
2018-04-26T07:48:04.4016201Z Author       : Microsoft Corporation
2018-04-26T07:48:04.4016201Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613742)
2018-04-26T07:48:04.4016201Z ==============================================================================
2018-04-26T07:48:04.6827935Z ##[debug]agent.workFolder=C:\Build Agent\_work
2018-04-26T07:48:04.6827935Z ##[debug]loading inputs and endpoints
2018-04-26T07:48:04.6827935Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-04-26T07:48:04.6827935Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-04-26T07:48:04.6827935Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_CONFIGURATION
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_MERGETESTRESULTS
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_PLATFORM
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_PUBLISHRUNATTACHMENTS
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_SEARCHFOLDER
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_TESTRESULTSFILES
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_TESTRUNNER
2018-04-26T07:48:04.6827935Z ##[debug]loading INPUT_TESTRUNTITLE
2018-04-26T07:48:04.6827935Z ##[debug]loaded 11
2018-04-26T07:48:04.6984131Z ##[debug]check path : C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\task.json
2018-04-26T07:48:04.6984131Z ##[debug]set resource file to: C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\task.json
2018-04-26T07:48:04.6984131Z ##[debug]system.culture=en-US
2018-04-26T07:48:04.6984131Z ##[debug]testRunner=VSTest
2018-04-26T07:48:04.6984131Z ##[debug]testResultsFiles=**\*.trx
**\*.html
**\*.log
**\*.mp4
2018-04-26T07:48:04.6984131Z ##[debug]mergeTestResults=false
2018-04-26T07:48:04.6984131Z ##[debug]platform=$(BuildPlatform)
2018-04-26T07:48:04.6984131Z ##[debug]configuration=$(BuildConfiguration)
2018-04-26T07:48:04.6984131Z ##[debug]testRunTitle=ThisIsThePublish
2018-04-26T07:48:04.6984131Z ##[debug]publishRunAttachments=true
2018-04-26T07:48:04.6984131Z ##[debug]searchFolder=C:\Build Agent\_work\r1\a/Selenium/drop/Settings/Results Files
2018-04-26T07:48:04.6984131Z ##[debug]testRunner: VSTest
2018-04-26T07:48:04.6984131Z ##[debug]testResultsFiles: **\*.trx,**\*.html,**\*.log,**\*.mp4
2018-04-26T07:48:04.6984131Z ##[debug]mergeResults: false
2018-04-26T07:48:04.6984131Z ##[debug]platform: $(BuildPlatform)
2018-04-26T07:48:04.6984131Z ##[debug]config: $(BuildConfiguration)
2018-04-26T07:48:04.6984131Z ##[debug]testRunTitle: ThisIsThePublish
2018-04-26T07:48:04.6984131Z ##[debug]publishRunAttachments: true
2018-04-26T07:48:04.6984131Z ##[debug]defaultRoot: 'C:\Build Agent\_work\r1\a/Selenium/drop/Settings/Results Files'
2018-04-26T07:48:04.6984131Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2018-04-26T07:48:04.6984131Z ##[debug]findOptions.followSymbolicLinks: 'true'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.debug: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.nobrace: 'true'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.noglobstar: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.dot: 'true'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.noext: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.nocase: 'true'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.nonull: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.matchBase: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.nocomment: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.nonegate: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]matchOptions.flipNegate: 'false'
2018-04-26T07:48:04.6984131Z ##[debug]pattern: '**\*.trx'
2018-04-26T07:48:04.7140651Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7140651Z ##[debug]statOnly: 'false'
2018-04-26T07:48:04.7140651Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7140651Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2018-04-26T07:48:04.7140651Z ##[debug]findOptions.followSymbolicLinks: 'true'
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files (directory)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55 (directory)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In (directory)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM (directory)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55.trx (file)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\RLoginLLL02LogoutofSEPA26042018074737.mp4 (file)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7140651Z ##[debug]10 results
2018-04-26T07:48:04.7140651Z ##[debug]found 10 paths
2018-04-26T07:48:04.7140651Z ##[debug]applying include pattern
2018-04-26T07:48:04.7140651Z ##[debug]adjustedPattern: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\**\*.trx'
2018-04-26T07:48:04.7140651Z ##[debug]1 matches
2018-04-26T07:48:04.7140651Z ##[debug]pattern: '**\*.html'
2018-04-26T07:48:04.7140651Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7140651Z ##[debug]statOnly: 'false'
2018-04-26T07:48:04.7140651Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7140651Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2018-04-26T07:48:04.7140651Z ##[debug]findOptions.followSymbolicLinks: 'true'
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files (directory)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55 (directory)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In (directory)
2018-04-26T07:48:04.7140651Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55.trx (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\RLoginLLL02LogoutofSEPA26042018074737.mp4 (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7296533Z ##[debug]10 results
2018-04-26T07:48:04.7296533Z ##[debug]found 10 paths
2018-04-26T07:48:04.7296533Z ##[debug]applying include pattern
2018-04-26T07:48:04.7296533Z ##[debug]adjustedPattern: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\**\*.html'
2018-04-26T07:48:04.7296533Z ##[debug]2 matches
2018-04-26T07:48:04.7296533Z ##[debug]pattern: '**\*.log'
2018-04-26T07:48:04.7296533Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7296533Z ##[debug]statOnly: 'false'
2018-04-26T07:48:04.7296533Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7296533Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2018-04-26T07:48:04.7296533Z ##[debug]findOptions.followSymbolicLinks: 'true'
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55 (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55.trx (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\RLoginLLL02LogoutofSEPA26042018074737.mp4 (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7296533Z ##[debug]10 results
2018-04-26T07:48:04.7296533Z ##[debug]found 10 paths
2018-04-26T07:48:04.7296533Z ##[debug]applying include pattern
2018-04-26T07:48:04.7296533Z ##[debug]adjustedPattern: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\**\*.log'
2018-04-26T07:48:04.7296533Z ##[debug]2 matches
2018-04-26T07:48:04.7296533Z ##[debug]pattern: '**\*.mp4'
2018-04-26T07:48:04.7296533Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7296533Z ##[debug]statOnly: 'false'
2018-04-26T07:48:04.7296533Z ##[debug]findPath: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files'
2018-04-26T07:48:04.7296533Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2018-04-26T07:48:04.7296533Z ##[debug]findOptions.followSymbolicLinks: 'true'
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55 (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM (directory)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55.trx (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\RLoginLLL02LogoutofSEPA26042018074737.mp4 (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html (file)
2018-04-26T07:48:04.7296533Z ##[debug]  C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log (file)
2018-04-26T07:48:04.7296533Z ##[debug]10 results
2018-04-26T07:48:04.7296533Z ##[debug]found 10 paths
2018-04-26T07:48:04.7296533Z ##[debug]applying include pattern
2018-04-26T07:48:04.7296533Z ##[debug]adjustedPattern: 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\**\*.mp4'
2018-04-26T07:48:04.7296533Z ##[debug]1 matches
2018-04-26T07:48:04.7453158Z ##[debug]6 final results
2018-04-26T07:48:04.7453158Z ##[debug]Detected 6 test result files
2018-04-26T07:48:04.7453158Z ##[debug]PublishTestResults.OverrideExeFlow=undefined
2018-04-26T07:48:04.7453158Z ##[debug]OS type: Windows_NT
2018-04-26T07:48:04.7453158Z ##[debug]which 'C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\modules\TestResultsPublisher.exe'
2018-04-26T07:48:04.7453158Z ##[debug]found: 'C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\modules\TestResultsPublisher.exe'
2018-04-26T07:48:04.7453158Z ##[debug]which 'C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\modules\TestResultsPublisher.exe'
2018-04-26T07:48:04.7453158Z ##[debug]found: 'C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\modules\TestResultsPublisher.exe'
2018-04-26T07:48:04.7453158Z ##[debug]System.TeamFoundationCollectionUri=https://smartassessor.visualstudio.com/
2018-04-26T07:48:04.7453158Z ##[debug]SystemVssConnection auth param AccessToken = ********
2018-04-26T07:48:04.7453158Z ##[debug]System.TeamProject=Smart End Point Assessment
2018-04-26T07:48:04.7453158Z ##[debug]Build.RequestedFor=Matt O'Connor
2018-04-26T07:48:04.7453158Z ##[debug]Build.BuildId=4693
2018-04-26T07:48:04.7453158Z ##[debug]Build.BuildUri=vstfs:///Build/Build/4693
2018-04-26T07:48:04.7453158Z ##[debug]Release.ReleaseUri=vstfs:///ReleaseManagement/Release/1668
2018-04-26T07:48:04.7453158Z ##[debug]Release.EnvironmentUri=vstfs:///ReleaseManagement/Environment/6305
2018-04-26T07:48:04.7453158Z ##[debug]Agent.TempDirectory=C:\Build Agent\_work\_temp
2018-04-26T07:48:04.7609359Z ##[debug]C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\modules\TestResultsPublisher.exe arg: ["@C:\\Build Agent\\_work\\_temp\\270b7f90-4926-11e8-aac5-6b3082964456.txt"]
2018-04-26T07:48:04.7609359Z ##[debug]exec tool: C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\modules\TestResultsPublisher.exe
2018-04-26T07:48:04.7609359Z ##[debug]arguments:
2018-04-26T07:48:04.7609359Z ##[debug]   @C:\Build Agent\_work\_temp\270b7f90-4926-11e8-aac5-6b3082964456.txt
2018-04-26T07:48:04.7609359Z [command]"C:\Build Agent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.0.5\modules\TestResultsPublisher.exe" "@C:\Build Agent\_work\_temp\270b7f90-4926-11e8-aac5-6b3082964456.txt"
2018-04-26T07:48:05.2572361Z ##[debug]UseTestResultsPublisherExe feature flag is off
2018-04-26T07:48:05.2728540Z ##[debug]rc:20000
2018-04-26T07:48:05.2728540Z ##[debug]success:true
2018-04-26T07:48:05.2728540Z ##[debug]Exit code of TestResultsPublisher: 20000
2018-04-26T07:48:06.0374311Z ##[debug]Reading test results from file 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\RLoginLLL02LogoutofSEPA26042018074737.mp4'
2018-04-26T07:48:06.0530147Z ##[debug]Reading test results from file 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html'
2018-04-26T07:48:06.0530147Z ##[debug]Reading test results from file 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log'
2018-04-26T07:48:06.0530147Z ##[debug]Reading test results from file 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55.trx'
2018-04-26T07:48:06.0530147Z ##[debug]Setting run start and finish times.
2018-04-26T07:48:06.0530147Z ##[debug]Attachment location: C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In
2018-04-26T07:48:06.0686514Z ##[debug]Adding run level attachment: C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log
2018-04-26T07:48:06.0686514Z ##[debug]Adding run level attachment: C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html
2018-04-26T07:48:06.0686514Z ##[debug]Total test results: 2
2018-04-26T07:48:06.0686514Z ##[debug]Reading test results from file 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html'
2018-04-26T07:48:06.0999163Z ##[debug]Reading test results from file 'C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log'
2018-04-26T07:48:06.0999163Z ##[debug]Processed: ##vso[results.publish type=VSTest;mergeResults=false;platform=$(BuildPlatform);config=$(BuildConfiguration);runTitle=ThisIsThePublish;publishRunAttachments=true;resultFiles=C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\RLoginLLL02LogoutofSEPA26042018074737.mp4,C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html,C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log,C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55.trx,C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.html,C:\Build Agent\_work\r1\a\Selenium\drop\Settings\Results Files\moconnor_SEPASELENIUMVM 2018-04-26 07_47_55\In\SEPASELENIUMVM\Selenium.SEPA.Test_SpecFlow_2018-04-26T074734.log;]
2018-04-26T07:48:06.0999163Z ##[debug]Agent.Version=2.124.0
2018-04-26T07:48:06.0999163Z ##[debug]Unable to publish telemetry due to lower agent version.
2018-04-26T07:48:06.0999163Z ##[debug]task result: Succeeded
2018-04-26T07:48:06.0999163Z ##[debug]Processed: ##vso[task.complete result=Succeeded;]
2018-04-26T07:48:06.0999163Z ##[section]Async Command Start: Publish test results
2018-04-26T07:48:06.3342778Z Publishing test results to test run '4158'
2018-04-26T07:48:06.3342778Z Test results remaining: 2. Test run id: 4158
2018-04-26T07:48:07.0217578Z ##[debug]Uploading test run attachements individually
2018-04-26T07:48:07.3967661Z Published Test Run : https://smartassessor.visualstudio.com/Smart%20End%20Point%20Assessment/_TestManagement/Runs#runId=4158&_a=runCharts
2018-04-26T07:48:07.3967661Z ##[warning]Failed to publish test results: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
2018-04-26T07:48:07.3967661Z ##[section]Async Command End: Publish test results
2018-04-26T07:48:07.3967661Z ##[section]Finishing: Publish Test Results

1 个答案:

答案 0 :(得分:0)

您无法通过“发布测试结果”任务上载测试附件。 (日志中有警告)

您可以上传附件以通过Test Run Attachment REST API进行测试(例如使用PowerShell编程),以获取测试运行ID,您可能需要先获取build log / release log,然后获取测试运行id来自log)