fix(接口测试): Har导入场景时排除gif路径
This commit is contained in:
parent
69b8c07ec7
commit
b52e12ca56
|
@ -81,7 +81,8 @@ public class HarParserApiScenario implements ApiScenarioImportParser {
|
||||||
HarRequest harRequest = entry.request;
|
HarRequest harRequest = entry.request;
|
||||||
if (harRequest != null) {
|
if (harRequest != null) {
|
||||||
// css 、 js 略过
|
// 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;
|
continue;
|
||||||
}
|
}
|
||||||
String url = harRequest.url;
|
String url = harRequest.url;
|
||||||
|
|
Loading…
Reference in New Issue