Need To Get The Status of Each Iteration in UFT

谁说我不能喝 提交于 2019-12-11 06:33:46

问题


Need To Get The Status of Each Iteration in UFT like Execution Status, Error Message if the that particular iteration is failed and the status of Checkpoint. Whether it is pass or failed. I have checked for one code which i got from another forum but cannot be self explanatory. Can anyone help in getting more clear on the option to get the status of each iteration.

Code:

List<IterationStatus> iterationList = this.Context.ExecutionStatus.IterationStatus;

if (iterationList.Count > 0)
{
  this.Context.UserLogger.Info(iterationList[1].CheckpointFailed.ToString());
  this.Context.UserLogger.Info(iterationList[1].Succeed.ToString());
}

来源:https://stackoverflow.com/questions/41981880/need-to-get-the-status-of-each-iteration-in-uft

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!