0
我創建了一個使用「Assert.Inconclusive(skipMessage)」函數的測試方法。在TFS2015上,執行結果是「完成」,但在TFS2017上,執行結果是「未執行」。在TFS2017和TFS2015之間執行測試方法時結果狀態不一致
當您在TFS2017上使用「Assert.Inclusive(skipMessage)」時,能否請您幫助我完成結果?
我創建了一個使用「Assert.Inconclusive(skipMessage)」函數的測試方法。在TFS2015上,執行結果是「完成」,但在TFS2017上,執行結果是「未執行」。在TFS2017和TFS2015之間執行測試方法時結果狀態不一致
當您在TFS2017上使用「Assert.Inclusive(skipMessage)」時,能否請您幫助我完成結果?
在這兩種TFS 2015和TFS 2017,該船長測試方法都示出像「不執行」不「完成」。
TFS中的這些設置無法更改。但是,如果您想更改/編輯指定測試結果的結果,則可以使用TFS REST API來實現此目的。
HTTP Method: PATCH
URL: http://SERVERNAME:8080/tfs/DefaultCollection/teamProject/_apis/test/runs/testrunId/results?api-version=3.0-preview
Json object:
{
"id": 100000, --this is test result id
"outcome": "None"
}
您可以將結果改變從NotExecuted
到None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, Warning, Error, NotApplicable, Paused or InProgress
。
您使用的是哪種版本的nunit適配器?每個平臺上都一樣嗎? – Charlie
你的意思是這個參考文獻Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll? 它們在TFS2017(AssemblyFileVersion(「15.0.26228.0」))和TFS2015(AssemblyFileVersion(「12.0.21005.1」))的版本中有所不同。 –
該程序集適用於Microsoft的測試框架,而不適用於NUnit。如果您使用的是NUnit,則應該引用某些版本的nunit3-vs-adapter或可能的nunit-vs-adapter。如果您不使用nunit,請刪除nunit標籤以避免浪費時間。 – Charlie