Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 3d43204

Browse files
committed
接口的实现方法没有必要写在报告中
1 parent 7f95835 commit 3d43204

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/main/java/org/suren/autotest/web/framework/settings/AutoModuleProxy.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ public Object intercept(Object obj, Method method, Object[] args,
7878
result = methodProxy.invokeSuper(obj, args);
7979

8080
normalRecord.setEndTime(System.currentTimeMillis());
81-
write(normalRecord);
81+
82+
if(isNotExcludeMethod(method))
83+
{
84+
write(normalRecord);
85+
}
8286
}
8387
catch(Exception e)
8488
{
@@ -91,6 +95,22 @@ public Object intercept(Object obj, Method method, Object[] args,
9195
return result;
9296
}
9397

98+
private boolean isNotExcludeMethod(Method method)
99+
{
100+
String name = method.getName();
101+
if("setEngine".equals(name))
102+
{
103+
return false;
104+
}
105+
106+
if("setWebDriver".equals(name))
107+
{
108+
return false;
109+
}
110+
111+
return true;
112+
}
113+
94114
private void write(NormalRecord record)
95115
{
96116
for(RecordReportWriter writer : recordReportWriters)

0 commit comments

Comments
 (0)