You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bronagh McElduff <Br...@mobilecohesion.com> on 2005/09/13 16:20:42 UTC

_CSVRead error

Hi ...
I am using the _CSVRead function as follows:
In the user parameters I define the variables :
unamepwd =  ${_CSVRead(../../Data/mm7VaspOrig.dat,0)}
next =  ${_CSVRead(../../Data/mm7VaspOrig.dat,next())}

(NB: The path of the mm7VaspOrig.dat is relative to the location of the 
.jmx file which uses it.)

and in the payload I do:
 <VASPID>${unamepwd}</VASPID>

However, it is clear  from an ethereal snoop showing what the inbound 
request sent from JMeter that this has not functioned as expected.:


<VASPID>${/home/jakarta-jmeter-20050807/E2E/Data/mm7VaspOrig.dat,0)}</VASPID>
               <VASID>VasId123</VASID>
               <SenderAddress>
           <Number>${../../Data/mm7VaspOrig.dat,1)}</Number>

Any help would be much appreciated

Cheers,
Bronagh

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


Re: _CSVRead error

Posted by Bronagh McElduff <Br...@mobilecohesion.com>.
Hi again,

I added more debug and see this error in the logs.

2005/09/14 12:00:21 DEBUG - jmeter.engine.util.ValueReplacer: About to 
replace in property of type: class 
org.apache.jmeter.testelement.property.StringProperty: 
${_CSVRead(C:/Program Files/jakarta-jmeter-20050807/bin/mm7VaspOrig.dat,0)}
2005/09/14 12:00:21 DEBUG - 
jmeter.testelement.property.AbstractProperty: Not running version, 
return raw function string
2005/09/14 12:00:21 DEBUG - jmeter.engine.util.ValueReplacer: 
Replacement result: ${_CSVRead(C:/Program 
Files/jakarta-jmeter-20050807/bin/mm7VaspOrig.dat,0)}
2005/09/14 12:00:21 DEBUG - jmeter.engine.util.ValueReplacer: About to 
replace in property of type: class 
org.apache.jmeter.testelement.property.StringProperty: 
${_CSVRead(C:\Program Files\jakarta-jmeter-20050807\bin\mm7VaspOrig.dat,1)}
2005/09/14 12:00:21 DEBUG - 
jmeter.testelement.property.AbstractProperty: Not running version, 
return raw function string

Any thoughts?

Cheers,
Bronagh

Michael Stover wrote:

>You're using relative paths - the base directory will be the directory
>in which JMeter was started.  Sometimes, if you start JMeter by double-
>clicking, that directory is your home directory and not JMeter's /bin
>directory.
>
>Also, look in jmeter's log file (jmeter.log) to see if any errors were
>reported.
>
>-Mike
>
>On Tue, 2005-09-13 at 15:20 +0100, Bronagh McElduff wrote:
>  
>
>>Hi ...
>>I am using the _CSVRead function as follows:
>>In the user parameters I define the variables :
>>unamepwd =  ${_CSVRead(../../Data/mm7VaspOrig.dat,0)}
>>next =  ${_CSVRead(../../Data/mm7VaspOrig.dat,next())}
>>
>>(NB: The path of the mm7VaspOrig.dat is relative to the location of the 
>>.jmx file which uses it.)
>>
>>and in the payload I do:
>> <VASPID>${unamepwd}</VASPID>
>>
>>However, it is clear  from an ethereal snoop showing what the inbound 
>>request sent from JMeter that this has not functioned as expected.:
>>
>>
>><VASPID>${/home/jakarta-jmeter-20050807/E2E/Data/mm7VaspOrig.dat,0)}</VASPID>
>>               <VASID>VasId123</VASID>
>>               <SenderAddress>
>>           <Number>${../../Data/mm7VaspOrig.dat,1)}</Number>
>>
>>Any help would be much appreciated
>>
>>Cheers,
>>Bronagh
>>
>>---------------------------------------------------------------------
>>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
>
>  
>


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


Re: _CSVRead error

Posted by Michael Stover <ms...@apache.org>.
You're using relative paths - the base directory will be the directory
in which JMeter was started.  Sometimes, if you start JMeter by double-
clicking, that directory is your home directory and not JMeter's /bin
directory.

Also, look in jmeter's log file (jmeter.log) to see if any errors were
reported.

-Mike

On Tue, 2005-09-13 at 15:20 +0100, Bronagh McElduff wrote:
> Hi ...
> I am using the _CSVRead function as follows:
> In the user parameters I define the variables :
> unamepwd =  ${_CSVRead(../../Data/mm7VaspOrig.dat,0)}
> next =  ${_CSVRead(../../Data/mm7VaspOrig.dat,next())}
> 
> (NB: The path of the mm7VaspOrig.dat is relative to the location of the 
> .jmx file which uses it.)
> 
> and in the payload I do:
>  <VASPID>${unamepwd}</VASPID>
> 
> However, it is clear  from an ethereal snoop showing what the inbound 
> request sent from JMeter that this has not functioned as expected.:
> 
> 
> <VASPID>${/home/jakarta-jmeter-20050807/E2E/Data/mm7VaspOrig.dat,0)}</VASPID>
>                <VASID>VasId123</VASID>
>                <SenderAddress>
>            <Number>${../../Data/mm7VaspOrig.dat,1)}</Number>
> 
> Any help would be much appreciated
> 
> Cheers,
> Bronagh
> 
> ---------------------------------------------------------------------
> 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