Java lib比较两个支持通配符的文本文件
我正在使用Selenium创建自动测试。测试结果是报告文件,我需要将其与预期文件进行比较。有没有办法与Java中的文本文件进行比较?我想使用通配符来屏蔽一些数据。 我查看了ApprovalTests,但它似乎不支持通配符
你可以在下面搜索框中键入要查询的问题!
我正在使用Selenium创建自动测试。测试结果是报告文件,我需要将其与预期文件进行比较。有没有办法与Java中的文本文件进行比较?我想使用通配符来屏蔽一些数据。 我查看了ApprovalTests,但它似乎不支持通配符
# 1 楼答案
你可能对Apache Lucene感兴趣。从他们的网站:
而且here你可以得到一些通配符搜索的细节。 还有here一些你可能会觉得有用的教程