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 5B853B90D for ; Mon, 23 Jan 2012 01:15:08 +0000 (UTC) Received: (qmail 70036 invoked by uid 500); 23 Jan 2012 01:15:07 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 69786 invoked by uid 500); 23 Jan 2012 01:15:07 -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 69673 invoked by uid 99); 23 Jan 2012 01:15:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 01:15:07 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vx0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 01:15:00 +0000 Received: by vcbfo11 with SMTP id fo11so1878626vcb.2 for ; Sun, 22 Jan 2012 17:14:40 -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 :cc:content-type; bh=P47iYXgjqfjZePlfXENdUVpKs+TbIxZziT0RwmK6n38=; b=QTNnn1DRcmz417lodc2ZjAcqMz70cHHx/xxOImC6481zHqqYm0vIiAeW+fJjVgIvB8 H5/3lSMbC+hkxwRGMXpSIrJ++w49ciLrn+ZwVX91AN1UNPW22fMyERXMFxqcd4l0TVOv DnFMop9KiwtYCHEf1GDWJ0Q0Jia+w2RnUqXRw= MIME-Version: 1.0 Received: by 10.220.154.135 with SMTP id o7mr3782027vcw.2.1327281278390; Sun, 22 Jan 2012 17:14:38 -0800 (PST) Received: by 10.220.182.7 with HTTP; Sun, 22 Jan 2012 17:14:38 -0800 (PST) In-Reply-To: <1327238982159-5164044.post@n5.nabble.com> References: <1327238982159-5164044.post@n5.nabble.com> Date: Mon, 23 Jan 2012 01:14:38 +0000 Message-ID: Subject: Re: Can one 'CSV Data Set Config' point, via a vriable, to another CSV file location? From: sebb To: JMeter Users List Cc: jmeter-user@jakarta.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 22 January 2012 13:29, danimni wrote: > Hi All, > I have a question regarding 'CSV Data Set Config'. > Can one 'CSV Data Set Config' point, via a vriable, to another CSV file > location? > I have this test, where I would like to run it several time, each time with > different 'CSV data set config'. > So, I've created the first 'CSV Data Set Config', where one of the variables > is "SECOND_CSV_LOCATION". > And for the second 'CSV Data Set Config', in the 'Filename' field, I set > ${SECOND_CSV_LOCATION}. > This way, I don't have to open the jmeter GUI each time I need to change the > second CSV file location. > For example > First CSV gets the following values: > Filename: c:\jmeter\MyTest\FirstCSVFile > Variable Names: Host,Port,SECOND_CSV_LOCATION > > where 'SECOND_CSV_LOCATION' gets "c:\jmeter\MyTest\SecondCSVFile1" OR > "c:\jmeter\MyTest\SecondCSVFile2" > > Second CSV gets the following values: > Filename: ${SECOND_CSV_LOCATION} > Variable Names: Username,Password > > I hope my explanations are clear.. :) No need to use CSV to read the variable. Just pass the file name on the command line as a property: jmeter -JCSVNAME=xxxxx and then use ${__P(CSVNAME)} in the filename field. Or you can define the property in user.properties. > Thanks in advanced, > Dan. > > -- > View this message in context: http://jmeter.512774.n5.nabble.com/Can-one-CSV-Data-Set-Config-point-via-a-vriable-to-another-CSV-file-location-tp5164044p5164044.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org