fix(接口测试): 场景导入har忽略svg文件获取url
This commit is contained in:
parent
04f428d061
commit
4e4a68b11a
|
@ -80,7 +80,7 @@ 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(), ".css", ".js", ".png", ".jpg", ".jpeg")) {
|
if (StringUtils.equalsIgnoreCase(harRequest.method, HttpMethodConstants.GET.name()) && StringUtils.endsWithAny(harRequest.url.toLowerCase(), ".svg", ".css", ".js", ".png", ".jpg", ".jpeg")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
String url = harRequest.url;
|
String url = harRequest.url;
|
||||||
|
|
Loading…
Reference in New Issue