(6)result()
用TestInfo的result()函數獲取到一個TestResult對象,再調用Passed()函數判斷當前用例是否執行成功;
原文轉自:http://www.kjueaiud.com