- MeterSphere版本:V3
- 具体问题:通过测试计划批量跑接口测试,总有部分用例失败。但这个失败的用例,单个执行都是通过的。看起来是批量执行时没有拿到配的环境变量?
- 批量执行失败时单个接口用例报错如下:
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: http:/metabase/data_entity/page
at org.apache.http.impl.client.CloseableHttpClient.determineTarget(CloseableHttpClient.java:95)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:940)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:651)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1311)
4.环境变量:
