fix(接口测试): Har导入场景时排除gif路径

This commit is contained in:
Jianguo-Genius 2024-11-22 10:43:17 +08:00 committed by 刘瑞斌
parent 69b8c07ec7
commit b52e12ca56

View File

@ -81,7 +81,8 @@ public class HarParserApiScenario implements ApiScenarioImportParser {
HarRequest harRequest = entry.request;
if (harRequest != null) {
// css js 略过
if (StringUtils.equalsIgnoreCase(harRequest.method, HttpMethodConstants.GET.name()) && StringUtils.endsWithAny(harRequest.url.toLowerCase(), ".svg", ".css", ".js", ".png", ".jpg", ".jpeg")) {
if (StringUtils.equalsIgnoreCase(harRequest.method, HttpMethodConstants.GET.name()) &&
StringUtils.endsWithAny(harRequest.url.toLowerCase(), ".svg", ".css", ".js", ".png", ".jpg", ".jpeg", ".gif")) {
continue;
}
String url = harRequest.url;