jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Modify the __CVSRead function, to use another seperator
Date Fri, 18 Feb 2005 01:50:29 GMT
OK, I've added it to the 2.0 branch.

I made a couple of changes:
- the property is now called "csvread.delimiter"
- the value defaults to "," as before, so no need to change jmeter.properties

The changes are in the nightly rel-2_0 branch build dated 20050218

S.

On Thu, 17 Feb 2005 16:47:36 +0000, sebb <sebbaz@gmail.com> wrote:
> Looks like a very useful enhancement; I should be able to add it in
> the next day or so.
> 
> ==
> 
> By the way, the __split() function can be used in conjunction with
> _StringFromFile(), see:
> http://jakarta.apache.org/jmeter/usermanual/functions.html#__split
> 
> But of course that would mean changing your test plans.
> 
> S.
> 
> On Wed, 16 Feb 2005 22:19:34 +0100, Carsten Sensler <icq@cauni.de> wrote:
> > Hi!!
> >
> > I use the __CVSRead(...) function in many jmeter testplans, but I need
> > another separator (not "," but ";" ). Therefore I modified the function
> > __CSVRead as follows:
> >
> > First)
> >
> > In FileRowColContainer.java :
> >
> > //public static final String DELIMITER = ";"; // Default delimiter
> > public static final String DELIMITER =
> > JMeterUtils.getProperty("csv.seperator"); //delimiter from property file
> >
> > This reads the delimiter from the jmeter.property file.
> >
> > Second)
> >
> > In jmeter.property :
> >
> > #file seperator in __CSV_READ. Unmark, which separator you like
> > #csv.seperator=,
> > #csv.seperator=|
> > csv.seperator=;
> >
> > Now one can adjust, which Seperator the __CVSRead function uses
> >
> > Can someone examine the changes and if they are correct, please check into
> > CVS?
> >
> > Thanks.
> >
> > Best regards,
> > Carsten
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message