Wesley13 Wesley13
3年前
java 模拟发送post请求测试
方法一:HttpClientpublicvoidpostTest(HttpServletRequestrequest,Integertype,Stringphone,Stringpasswd,Stringschoolld,Stringagent){Stringurl"xxxxxxxxx";//发
Stella981 Stella981
3年前
OneAPM PHP性能管理平台测试
从事PHP开发多年,一直在用XHProf工具调试和解决一些程序的性能问题。XHProf的分析报告虽然提供了基于浏览器的报表界面,但是只提供了函数调用图表,没有更多的图表展示。最近发现国内厂商OneAPM在公测PHP的性能管理产品,很好奇试用了一下,说说测试下来的感受。1.安装总体安装非常简单,在OneAPM网站上下载OneAPMPHPAg
Stella981 Stella981
3年前
SpringBoot2单元测试
引入maven依赖引入powermock是为了解决静态方法mock的问题。<dependency<groupIdorg.powermock</groupId<artifactIdpowermockmodulejunit4</artifactId<versi
Easter79 Easter79
3年前
SpringBoot测试Service或者Dao层
!(https://oscimg.oschina.net/oscnet/3617716e29864749803145ac057d5c11f0c.gif)使用SpringBoot进行单元测试时,发现使用@Autowired注解的类无法自动注入,当使用这个类的实例的时候,报出NullPointerException,即空指针
Wesley13 Wesley13
3年前
IDEA
IDEA解决“idea环境:junit:4.11测试mybatis代码,无法导入org.junit.Test包”问题参考文章:(1)IDEA解决“idea环境:junit:4.11测试mybatis代码,无法导入org.junit.Test包”问题(https://www.oschina.net/act
Easter79 Easter79
3年前
Swagger如何测试Date类型参数
问题Swagger测试时,参数直接输入日期格式化后的类型,会报参数日期转换错误:ConversionFailedException解决网上说在参数上添加注解@DateTimeFormat(pattern“yyyyMMdd”)或者是添加@JsonFormat(pattern”yyyyMMddHH:mm:
Stella981 Stella981
3年前
Http Test测试工具说明
一、新增站点!(http://static.oschina.net/uploads/space/2016/0902/095914_nhLp_2535749.png)1. 首先打开Http接口测试工具:a)首先点击ERP接入(L)按钮(①)b)其次再点击申请接入(D)按钮(②):如果需要变更站点,可在此处变更站点名称及编号。
Wesley13 Wesley13
3年前
Dubbo服务主机IP没有绑定的坑(dubbo注册时出现主机上没有的IP的解决方案)
初次使用dubbo,在研发环境和测试环境测试没有问题,然后将服务上线,上线后,Dubbo服务端启动正常,客户端启动失败,并提示Causedby:java.lang.IllegalStateException:Failedtocheckthestatusoftheservicecom.xxx.xxx.service.Login
十月飞翔 十月飞翔
3年前
负载均衡并发测试实施方法
https://cloud.tencent.com/developer/article/1784662