如何使用QTP读取*.log文件?
我必须编写自动测试来验证服务器日志的正确性。我如何使用 QTP 来做到这一点。这些日志文件非常长,因此需要花费大量时间逐行执行此操作。
日志文件中各行的格式如下:
2012-01-04 14:26:08,832|DEBUG|company.project.algorithm.core.AlgorithmCore - No primary operation was found.
I have to write automatic test verifying correctness of server logs. How can I do this using QTP. Those log files are very long so it takes a lot of time to do this line after line.
Format of the lines in log file is as follows:
2012-01-04 14:26:08,832|DEBUG|company.project.algorithm.core.AlgorithmCore - No primary operation was found.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还没有澄清您的问题,所以我将回答两个可能的问题。
DotNetFactory
)。You haven't clarified your question so I'll give answers to two possible questions.
DotNetFactory
).