Give the argument passed in the method the scenario name for which the data will be captured in log file.
既然方法中有通过的论断,数据将会从日志文件得到场景名。
This relates the data in the ErrorDetails file to the scenario, because the entries in the log file are preceded by the scenario name.
这就会把 ErrorDetails 文件中的数据与场景联系起来,因为日志文件中条目的前面就是场景名。
If the log file contains any entries, the code creates a text file based on the scenario name and, scans the log file, and writes the entries to that text file.
如果日志文件中包含有什么条目,那么代码就会创建基于场景名的文本文件,浏览日志文件,并将条目写入到文本文件中。
应用推荐