1、公共文件添加日志查询次数变量${logfornumber}2、修改安全策略allow协议http和ssl全流程用例3、新建log验证关键字(循环验证)
This commit is contained in:
8
04-CustomLibrary/Custometest/log_contrast.py
Normal file
8
04-CustomLibrary/Custometest/log_contrast.py
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/user/bin/python
|
||||
#-*-coding:utf-8-*-
|
||||
def log_contrast(logs,client_ip,policy_id,parmkey,parmvalue):
|
||||
if (str(client_ip) in str(logs))and (str(policy_id) in str(logs)) and (str(parmkey) in str(logs)) and (str(parmvalue) in str(logs)):
|
||||
print(logs)
|
||||
return "true"
|
||||
else:
|
||||
return "false"
|
||||
Reference in New Issue
Block a user