Adding few more options:
1. Tried to update client implementation as HttpClient4 and the output is below:
Response code: Non HTTP response code: java.net.URISyntaxExceptionResponse
message: Non HTTP response message: Illegal character in path at index 14:
http://file/E:\Krishna\apache-jmeter-4.0\apache-jmeter-4.0\bin\SampleJson.json
2. Tried to update client implemenation as HttpClient4 and the output is below:
Response code: Non HTTP response code: java.net.UnknownHostExceptionResponse
message: Non HTTP response message: file
Looking for support to resolve the above issue.
Regards,
Krishna - +91-9884451279.
CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype
On Friday, 10 August, 2018, 2:21:43 PM IST, krish na
<[email protected]> wrote:
Hi All,
i try to invoke my local json file by following below steps.
1. in HTTP Request - server name or ip - file and path is
E:\Krishna\apache-jmeter-4.0\apache-jmeter-4.0\bin\SampleJson.json
When i run the scripts i got the below error:
Response code: Non HTTP response code: java.net.URISyntaxExceptionResponse
message: Non HTTP response message: Illegal character in path at index 14:
http://file/E:\Krishna\apache-jmeter-4.0\apache-jmeter-4.0\bin\SampleJson.json
I tried using _urlencode
E%3A%5CKrishna%5Capache-jmeter-4.0%5Capache-jmeter-4.0%5Cbin%5CSampleJson.json
Output is below:Response code: Non HTTP response code:
java.net.UnknownHostExceptionResponse message: Non HTTP response message: No
such host is known (file)
2. Used JSR223preprocessor with below groovy
scripting:org.apache.jmeter.config.Arguments args =
sampler.getArguments()sampler.getArguments().removeAllArguments()args.each {
sampler.addEncodedArgument(it.getName(), it.getValue())} Output:Response code:
Non HTTP response code: java.net.URISyntaxExceptionResponse message: Non HTTP
response message: Illegal character in path at index 14:
http://file/E:\Krishna\apache-jmeter-4.0\apache-jmeter-4.0\bin\SampleJson.json
3.Tried to update encode value as True but the tag itself is missing in the
.jmx file.
<boolProp name="HTTPArgument.always_encode">false</boolProp>
Any help will be much appreciated.
Regards,
Krishna - +91-9884451279.
CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype