问答详情
源自:4-3 JMeter性能测试入门篇-CsvDataSetConfig参数化

用户自定义可以正确走流程 ,csv set data 就报错 如下:哪里出问题了呢?

java.net.UnknownHostException: ${ip}

at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at sun.net.NetworkClient.doConnect(Unknown Source)

at sun.net.www.http.HttpClient.openServer(Unknown Source)

at sun.net.www.http.HttpClient.openServer(Unknown Source)

at sun.net.www.http.HttpClient.<init>(Unknown Source)

at sun.net.www.http.HttpClient.New(Unknown Source)

at sun.net.www.http.HttpClient.New(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)

at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:539)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1231)

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1220)

at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:622)

at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:546)

at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486)

at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)

at java.lang.Thread.run(Unknown Source)


提问者:慕的地3358920 2018-10-17 21:56

个回答

  • 慕工程9567727
    2019-06-13 13:20:39

    ip不能要填你电脑ping出来的ip地址,我填localhost或者127.0.0.1就报这个

  • 慕沐5005241
    2019-03-09 15:20:21

    感觉好像是你的IP写错了