2008/5/1 john wu <[EMAIL PROTECTED]>: > > Yes, that file exists in the same machine but different directory. I tried > it on Safari, Firefox and Opera on my iMac, they both give me the same > error. > > Can I use "Send a File With the Request" to simulate the fiel upload > request? How to set it up?
I suggest you try uploading a file in the JMeter directory using the Proxy. You can then edit the HTTP Sampler as needed to change the file details. > > Thanks, > John > > 2008/5/1 john wu <[EMAIL PROTECTED]>: > > Hi, > > > > I set up jMeter to use own built-in HTTP Proxy Server, when I tested file > upload in my web application, I got the following error message: > > > > java.io.FileNotFoundException: security.properties (No such file or > directory) > > Does that file exist in the current working directory? > > > at java.io.FileInputStream.open(Native Method) > > at java.io.FileInputStream.<init>(FileInputStream.java:106) > > at java.io.FileInputStream.<init>(FileInputStream.java:66) > > at > org.apache.jmeter.protocol.http.sampler.PostWriter.writeFileToStream(PostWriter.java:384) > > at > org.apache.jmeter.protocol.http.sampler.PostWriter.sendPostData(PostWriter.java:108) > > at > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sendPostData(HTTPSampler.java:111) > > at > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:462) > > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:863) > > at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:191) > > > > What am I missing? > > > > Some browsers don't save the full path name when doing file uploads; > there's nothing JMeter can do about that. > > > Thanks > > > > > > > > > > > > > > > > ________________________________ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

