01 2019 档案

摘要:一、初始方案 自动化中需要把日志通过testng的Reporter.log来记录日志在报告中展示。开始是新增了一个日志类: ReporterLog.class 这样会有2个问题: 1、LOGGER.info(message);这句话打印出来的类名、方法名、行号等不是调用ReporterLogger方 阅读全文
posted @ 2019-01-30 10:57 弘文馆校书 阅读(1276) 评论(0) 推荐(0)
摘要:一、起源 在mocksever中引入了spring cloud zuul做代理转发,如果请求的url和配置的mock规则匹配(精确匹配和模糊匹配),忽略,不做转发。如果mock配置的url和请求url是完全匹配的,没有问题。例如,请求url:http://localhost:8080/mock/te 阅读全文
posted @ 2019-01-24 17:21 弘文馆校书 阅读(1306) 评论(0) 推荐(0)
摘要:在使用testng生成报告的时候,只会记录test方法中的日志,但是一般会在beforeMethod、beforeTest、afterMethod、afterTest中做一下数据的处理,这里面的日志没办法在test中显示。查看了testng的源码,发现suite中的getAllInvokedMeth 阅读全文
posted @ 2019-01-18 15:22 弘文馆校书 阅读(974) 评论(2) 推荐(0)
摘要:安装了jenkins和Python-jenkins后,在脚本中import jenkins会报错:oserror: /usr/lib/python2.7/site-packages/lookup3.so 原因参考: https://bugs.launchpad.net/openstack-ci/+b 阅读全文
posted @ 2019-01-10 14:48 弘文馆校书 阅读(2687) 评论(0) 推荐(0)