CI / CD管道-Azure结果更新

时间:2020-06-17 10:29:26

标签: azure azure-devops azure-devops-rest-api

我已经创建了Build定义,并且能够执行脚本。但是我们有脚本(我们使用过Rest API)来更新Azure中的结果。但是,我们在管道中运行时收到一条错误消息,指出即使存在测试计划,测试计划也不存在。错误消息如下所示

-从上一个引发异常的位置开始的堆栈跟踪- 在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__26 1.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task 1.GetResultCore(Boolean waitCompletionNotification) 在System.Threading.Tasks.Task 1.get_Result() at Automation.Infrastructure.Log.UpdateTestInMTM.UpdateTest(String mtmCollectionUri, String mtmProjectName, String mtmUserName, String mtmPassword, String mtmDomain, String mtmTestPlanId, String mtmConfigurationId, String mtmTestSuiteId, String testCaseId, String outcome) ---> (Inner Exception #0) Microsoft.TeamFoundation.TestManagement.WebApi.TestObjectNotFoundException: Test plan 223845 not found. at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__46.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__43 1.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪--- 在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__27 1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__26 1.MoveNext()<- 捕获到异常。

0 个答案:

没有答案