Invoking local file

2018-08-10 Thread krish na
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.URISyntaxE

Re: Invoking local file

2018-08-10 Thread krish na
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\

Re: Invoking local file

2018-08-10 Thread ZK
Hi, the problem is in the path to your json file Try this with the HTTP Sampler: Protocol = file Server Name or IP = /// Method = GET Path = E:\Krishna\apache-jmeter-4.0\apache-jmeter-4.0\bin\SampleJson.json Implementation <- meaning empty field (maybe under 'advanced tab') ZK -- Sen

Re: Invoking local file

2018-08-10 Thread krish na
Excellent thanks its working fine. Regards, Krishna - +91-9884451279. CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype On Friday, 10 August, 2018, 2:55:34 PM IST, ZK wrote: Hi, the problem is in the path to your json file Try this with the HTTP Sampler: Protocol = file

JAVA Program as a Service

2018-08-10 Thread Nayak, Soumya R.
Hi All, I have written a java program. So when i run a script in JMeter, the java program has to be invoked from the script and the java program runs independently in the background without JMeter waiting for it to complete execution. The program when running independently completes the task an

Re: JAVA Program as a Service

2018-08-10 Thread Kiran Badi
Take a look at custom java sampler.Embed your script in that sampler that way jmeter knows what script/program is doing.by Just invoking a script I am not sure as what it solves and if you need to just invoke it why do you need jmeter?. Also take a look at java process api and see if you can imp

Re: JAVA Program as a Service

2018-08-10 Thread Kirk Pepperdine
Runtime.exec in a bean shell??? > On Aug 10, 2018, at 11:00 AM, Nayak, Soumya R. wrote: > > Hi All, > > I have written a java program. So when i run a script in JMeter, the java > program has to be invoked from the script and the java program runs > independently in the background without JMe