Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F8AD910E for ; Fri, 18 Nov 2011 15:34:49 +0000 (UTC) Received: (qmail 94877 invoked by uid 500); 18 Nov 2011 15:34:48 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 94847 invoked by uid 500); 18 Nov 2011 15:34:48 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 94838 invoked by uid 99); 18 Nov 2011 15:34:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 15:34:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shirish.ganjewar@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-iy0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 15:34:40 +0000 Received: by iaby12 with SMTP id y12so4846050iab.2 for ; Fri, 18 Nov 2011 07:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Cxuv1GT2/KPLu5Fi9sev8gi7i/c63up2/lvxYpDVqsY=; b=DaSggAZiK6IHuGjqJqmg3uCFiEo4ES5YAXEyzj2BdSXsxmoiKr1+VSTfYH0q6kVM3D 5YWLfiCAFXZl9HiQDcAvotirwuvQ5etRkFB41uJ68SN3x8fTpdP+CvD41S9kwVhMH4BW /iPuf/svCEgh1tbrmMvIUeLkRWjUsqQWx1eFI= MIME-Version: 1.0 Received: by 10.42.161.132 with SMTP id t4mr2928451icx.16.1321630459297; Fri, 18 Nov 2011 07:34:19 -0800 (PST) Received: by 10.231.37.4 with HTTP; Fri, 18 Nov 2011 07:34:19 -0800 (PST) In-Reply-To: References: Date: Fri, 18 Nov 2011 21:04:19 +0530 Message-ID: Subject: Re: Reg: File Upload Functionality From: Shirish To: JMeter Users List Content-Type: multipart/alternative; boundary=90e6ba6e83560cffa604b204121b X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e83560cffa604b204121b Content-Type: text/plain; charset=ISO-8859-1 :( Still of no use. I have tried D:\\JMeterScripts\\Profile\\Test Data\\DOC.txt wrote in my CSV file and provided that variable to my HTTP request. Hard Coded But still system shows File Not found. Please Help. Shirish On Fri, Nov 18, 2011 at 8:48 PM, Philippe Mouawad < philippe.mouawad@gmail.com> wrote: > Try this: > D:\\JMeterScripts\\Profile\\Test Data\\DOC.txt > > If it fails maybe try to file a bug and attach : > > - Your JMX file simplified > - Your CSV file > - If possible a public available website URL > - The version of JMeter used > - The version of Java > > Regards > > Philippe > Ubik-Ingenierie > http://www.ubik-ingenierie.com > On Fri, Nov 18, 2011 at 4:12 PM, Shirish > wrote: > > > Thanks Philippe, Evandro for your reply. > > > > @Philippe: In DocPath variable I have specified a path as : > > D:\JMeterScripts\Profile\Test Data\DOC.txt. I have verified that in Debug > > sampler also it this variable shows me the correct path and the file also > > in the following request. > > > > @Evandro: Even though I add that file in the bin folder then I just > > specified the path as D:\jakarta-jmeter-2.4\bin\DOC.txt. Then also system > > is showing the same error message as previous one. > > > > :( > > Thanks, > > Shirish > > > > On Fri, Nov 18, 2011 at 8:37 PM, Philippe Mouawad < > > philippe.mouawad@gmail.com> wrote: > > > > > Hello, > > > What does ${DocPath} contains ? can you give a data example ? is your > > path > > > relative or absolute ? > > > > > > If relative then it may be the issue > > > Add a Debug Sampler before your HttpSampler and check the value of the > > > path. > > > > > > Regards > > > Philippe > > > Ubik-Ingenierie > > > http://www.ubik-ingenierie.com > > > > > > On Fri, Nov 18, 2011 at 3:49 PM, Evandro Grezeli > > > wrote: > > > > > > > Hi, > > > > > > > > Try the following work around: > > > > > > > > Put the file at the bin folder of you jmeter, execute again the test. > > > Once > > > > i had that problem (2.4 version) and when i put it on the bin folder > it > > > > worked for me. > > > > > > > > []s > > > > > > > > On Fri, Nov 18, 2011 at 12:34 PM, Shirish < > shirish.ganjewar@gmail.com > > > > >wrote: > > > > > > > > > Hello All, > > > > > > > > > > I am stuck in a situation where in I need to upload a different > > > document > > > > at > > > > > every time in particular scenario, and for which in my script I > have > > > > > provided the Document path to the my HTTP request as > > > > > File Path: ${DocPath} > > > > > Parameter Name: File > > > > > MIME Type: text/plain > > > > > under the tab Send Files with the request. But system is not able > to > > > > upload > > > > > that document and displaying the error message as "HTTP Error 404 - > > > File > > > > > Not Found". > > > > > > > > > > Please suggest, am I mistaking anywhere in this. > > > > > > > > > > Thanks in advance, > > > > > Shirish > > > > > > > > > > > > > > > > > > > > > -- > > > > Atenciosamente > > > > Regards > > > > Evandro Grezeli de B. Neves > > > > > > > > > > > > > > > > -- > > > Cordialement. > > > Philippe Mouawad. > > > > > > > > > -- > Cordialement. > Philippe Mouawad. > --90e6ba6e83560cffa604b204121b--