You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Richard Gaywood <ri...@gmail.com> on 2011/10/28 12:21:45 UTC

CSV Data Sets and XML

Hi list. I seem to have run into an odd problem with CSV Data Sets.

I have a CSV Data Set controller in my test plan with the following
settings:
variable names: server,user.guid,user.name,start.time,time.taken,search.text
delimter: \t

This is immediately followed by a JavaRequest who's ResultData field has the
value ${search.text}.

I've had problems with my real data, so I've been trying test data. Here's
three lines of sample data:

server    guid    client    2011-10-27 01:52:34.297    5890    <?xml
version="1.0" encoding="iso-8859-1"?>
server    guid    client    2011-10-27 01:52:34.297    5890    foo
server    guid    client    2011-10-27 01:52:34.297    5890    <foo>

The second and third lines work fine. But the first one produces the output
'${search.text}' in the Java Request.

My Jmeter.log file says
jmeter.config.CSVDataSet: Unexpected error splitting <input line>

I've constructed a minimal test plan and data sample to demonstrate the
problem, which can be downloaded from:
https://www.dropbox.com/s/tz8k15lzrx1v5cd/testplan.zip

Is this supposed to work? I can't see any reason why it shouldn't.

Re: CSV Data Sets and XML

Posted by Richard Gaywood <ri...@gmail.com>.
Never mind! I'm an idiot who forgot to untick "allow quoted data"!

As you were!

On Fri, Oct 28, 2011 at 11:21 AM, Richard Gaywood
<ri...@gmail.com>wrote:

> Hi list. I seem to have run into an odd problem with CSV Data Sets.
>
> I have a CSV Data Set controller in my test plan with the following
> settings:
> variable names: server,user.guid,user.name
> ,start.time,time.taken,search.text
> delimter: \t
>
> This is immediately followed by a JavaRequest who's ResultData field has
> the value ${search.text}.
>
> I've had problems with my real data, so I've been trying test data. Here's
> three lines of sample data:
>
> server    guid    client    2011-10-27 01:52:34.297    5890    <?xml
> version="1.0" encoding="iso-8859-1"?>
> server    guid    client    2011-10-27 01:52:34.297    5890    foo
> server    guid    client    2011-10-27 01:52:34.297    5890    <foo>
>
> The second and third lines work fine. But the first one produces the output
> '${search.text}' in the Java Request.
>
> My Jmeter.log file says
> jmeter.config.CSVDataSet: Unexpected error splitting <input line>
>
> I've constructed a minimal test plan and data sample to demonstrate the
> problem, which can be downloaded from:
> https://www.dropbox.com/s/tz8k15lzrx1v5cd/testplan.zip
>
> Is this supposed to work? I can't see any reason why it shouldn't.
>
>
>