1

我对 VSTS 手动测试用例有疑问。当我尝试编辑一个时,我收到如下错误消息:

字典中已存在具有相同键的元素

e</n.prototype.add@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:3:2142 ki</n.prototype.onAddParameterInSteps @ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-view-1316919717-vxhr2NM2m2AZNsRLuD0JDHQ==:36:46195 bi</n.prototype.onAddParameterInSteps@ https://xxx.visualstudio .com/_public/_Bundling/Content?bundle=vss-bundle-view-1316919717-vxhr2NM2m2AZNsRLuD0JDHQ==:36:40049 tf</t.prototype.onAddParameterInSteps@ https://xxx.visualstudio.com/_public/_Bundling/Content ?bundle=vss-bundle-view-1316919717-vxhr2NM2m2AZNsRLuD0JDHQ==:36:62452 bi</n.prototype._updateParametersRefCountOnAddingStep/<@https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-view-1316919717-vxhr2NM2m2AZNsRLuD0JDHQ==:36:39659 .each@ https://xxx.visualstudio.com/_public/_Bundling/ Content?bundle=vss-bundle-basejs-1370396394-vpQOf5w8kp8_6mpJi9ABtBQ==:15:12291 bi</n.prototype._updateParametersRefCountOnAddingStep@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle- view-1316919717-vxhr2NM2m2AZNsRLuD0JDHQ==:36:39614 bi</n.prototype._calculateParameterRefCountsFromSteps@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-view-1316919717-vxhr2NM2m2AZNsRLuD0JDHQ==: 36:40691 双</n.prototype.setParameters@https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-view-1316919717-vxhr2NM2m2AZNsRLuD0JDHQ==:36:35794 yt</t.prototype.readParameters@ https://xxx.visualstudio。 com/_public/_Bundling/Content?bundle=vss-bundle-async135478241-v-UPjjKxU6f1kHHOWlhqz1Q==:14:58274 yt</t.prototype._onStepsLoaded@ https://xxx.visualstudio.com/_public/_Bundling/Content? bundle=vss-bundle-async135478241-v-UPjjKxU6f1kHHOWlhqz1Q==:14:72430 o/<@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-common-1174969321-vP7TYoPIwwgcmodAk6tzLZw== :53:215 u@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-async135478241-v-UPjjKxU6f1kHHOWlhqz1Q==:14:81038 yt</t.prototype._fetch@https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-async135478241-v-UPjjKxU6f1kHHOWlhqz1Q==:14:81408 yt</t.prototype.invalidate@ https://xxx.visualstudio。 com/_public/_Bundling/Content?bundle=vss-bundle-async135478241-v-UPjjKxU6f1kHHOWlhqz1Q==:14:57579 c</n.prototype._onFieldChanged@ https://xxx.visualstudio.com/_public/_Bundling/Content? bundle=vss-bundle-async636480634-vHvWOSM8E8rCxBa3bYo2R7w==:149:2040 o/<@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-common-1174969321-vP7TYoPIwwgcmodAk6tzLZw==:53 :215 u@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-common-1174969321-vP7TYoPIwwgcmodAk6tzLZw==:94:177 o</n.prototype.invokeHandlers@https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-common-1174969321-vP7TYoPIwwgcmodAk6tzLZw==:94:526 tr</n.prototype.fireEvent@ https://xxx.visualstudio。 com/_public/_Bundling/Content?bundle=vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:100720 tr</n.prototype.fireFieldChange@ https://xxx.visualstudio.com/_public/_Bundling/Content? bundle=vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:103810 tr</n.prototype.evaluateFields@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-area- 1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:112953 tr</n.prototype.evaluate@https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:112662 tr</n.prototype._takeUpdateResult@ https://xxx.visualstudio。 com/_public/_Bundling/Content?bundle=vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:110218 vi</t.prototype._beginSaveWorkItemsInternal/</</<@ https://xxx.visualstudio.com/ _public/_Bundling/Content?bundle=vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:74066 vi</t.prototype.beginGetWorkItemTypeExtensions@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle= vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:69585 vi</t.prototype._beginSaveWorkItemsInternal/</<@https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:74001 .each@ https://xxx.visualstudio.com/_public/_Bundling/ Content?bundle=vss-bundle-basejs-1370396394-vpQOf5w8kp8_6mpJi9ABtBQ==:15:12291 vi</t.prototype._beginSaveWorkItemsInternal/<@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss- bundle-area-1319062352-vWRYJ179SKTshLwEQt_Tl9g==:35:73876 rt@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-common-1174969321-vP7TYoPIwwgcmodAk6tzLZw==:59:938 l/ <@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-common-1174969321-vP7TYoPIwwgcmodAk6tzLZw==:59:1252 i.Callbacks/l@https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-basejs-1370396394-vpQOf5w8kp8_6mpJi9ABtBQ==:15:35816 i.Callbacks/s.fireWith@ https://xxx.visualstudio.com /_public/_Bundling/Content?bundle=vss-bundle-basejs-1370396394-vpQOf5w8kp8_6mpJi9ABtBQ==:15:36641 w@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-basejs- 1370396394-vpQOf5w8kp8_6mpJi9ABtBQ==:15:73448 .send/t/<@ https://xxx.visualstudio.com/_public/_Bundling/Content?bundle=vss-bundle-basejs-1370396394-vpQOf5w8kp8_6mpJi9ABtBQ==:15:793

会话 ID:73288d72-580f-42fb-9aeb-f5cadb6b3bc5

如果测试步骤包含参数,我只会遇到这个问题。刷新页面并重新打开测试用例后,颜色代码为黑色,并且不显示保存按钮。此外,下拉列表...是空的。

现有的测试很好,运行它们也是可能的。处理错误、用户故事和任务很好。

截图可以在这里找到

有没有办法解决这个问题?

4

1 回答 1

1

这是由参数名称“@length”引起的,将其删除或重命名为其他名称,如“@length1”即可。

这似乎是 VSTS 的一个错误,我已经帮助您在 MS Connect 页面上创建了一个反馈,有关详细信息,请参阅此链接:“字典中已存在具有相同键的元素”保存测试用例时出现错误包含名为“长度”的参数。

于 2016-07-27T09:06:51.707 回答