Re: CSV Data Set Config - FileNotFoundException(Access is denied)

2011-02-20 Thread Deepak Shetty
hi
which OS are you  running? If vista or equivalent , try running as
administrator(by right clicking the file and choosing run as administrator ,
not just logged in as administrator) , or keep all files (including JMeter
installation ) under your users directory

regards
deepak

On Sun, Feb 20, 2011 at 5:50 AM, Anil  wrote:

>
> Hey Jing,
>
> First of all thanks for the response. I run Jmeter with
> C:\jakarta-jmeter-2.4\bin\jmeter.bat and I do run my JBoss server along
> with
> it.
> I have added CSV Data Set Config element in my test. In Filename box, I
> have
> tried putting all possible combination like... I have put .csv file in bin
> folder. And give the file name in Filename box. I have also tried to give
> absolute path. I have also tried putting my jmx and file name outside bin
> folder. But NO LUCK so far. Everytime it gives the same below error.
>
> Caused by: java.io.FileNotFoundException:  having jmx file> (Access is denied)
>
> Need help...
>
> -Anil
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/CSV-Data-Set-Config-FileNotFoundException-Access-is-denied-tp3377576p3393115.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>


Re: CSV Data Set Config - FileNotFoundException(Access is denied)

2011-02-20 Thread Anil

Hey Jing,

First of all thanks for the response. I run Jmeter with
C:\jakarta-jmeter-2.4\bin\jmeter.bat and I do run my JBoss server along with
it.
I have added CSV Data Set Config element in my test. In Filename box, I have
tried putting all possible combination like... I have put .csv file in bin
folder. And give the file name in Filename box. I have also tried to give
absolute path. I have also tried putting my jmx and file name outside bin
folder. But NO LUCK so far. Everytime it gives the same below error.

Caused by: java.io.FileNotFoundException:  (Access is denied) 

Need help...

-Anil
-- 
View this message in context: 
http://jmeter.512774.n5.nabble.com/CSV-Data-Set-Config-FileNotFoundException-Access-is-denied-tp3377576p3393115.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: CSV Data Set Config - FileNotFoundException(Access is denied)

2011-02-16 Thread Jing Ning

Hi, Anil

It seems that your input for Filename of CSV Data Set Config is not an 
correctly absolute path.
I don't know whether C:\jakarta-jmeter-2.4\bin  in your computer is the 
default path for reading a CSV file,  but at least, inputting an abosolute 
file path can work normally.


- Original Message - 
From: "Anil" 

To: 
Sent: Wednesday, February 16, 2011 1:02 AM
Subject: Re: CSV Data Set Config - FileNotFoundException(Access is denied)




I am running JMeter with my local app which is running on same machine 
i.e.

localhost. I want to run my JMeter script for multiple users. Since my
application does not support one user to login multiple times. So I want 
to
provide different login details for each thread. I thought of using CSV 
Data

Set Config for the same. I created a CSV file for the same. But when I run
the script, it gives me below error

Caused by: java.io.FileNotFoundException: C:\jakarta-jmeter-2.4\bin 
(Access

is denied)

I have tried to put my script and csv file putting at different location,
but it gives the same error message as above. I would appreciate your help
on this. Thanks in advance.
--
View this message in context: 
http://jmeter.512774.n5.nabble.com/CSV-Data-Set-Config-FileNotFoundException-Access-is-denied-tp3377576p3386279.html

Sent from the JMeter - User mailing list archive at Nabble.com.

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




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



Re: CSV Data Set Config - FileNotFoundException(Access is denied)

2011-02-15 Thread Anil

I am running JMeter with my local app which is running on same machine i.e.
localhost. I want to run my JMeter script for multiple users. Since my
application does not support one user to login multiple times. So I want to
provide different login details for each thread. I thought of using CSV Data
Set Config for the same. I created a CSV file for the same. But when I run
the script, it gives me below error

Caused by: java.io.FileNotFoundException: C:\jakarta-jmeter-2.4\bin (Access
is denied)

I have tried to put my script and csv file putting at different location,
but it gives the same error message as above. I would appreciate your help
on this. Thanks in advance.
-- 
View this message in context: 
http://jmeter.512774.n5.nabble.com/CSV-Data-Set-Config-FileNotFoundException-Access-is-denied-tp3377576p3386279.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: CSV data set config problem

2011-01-26 Thread zhouyuan


rajivkumarnandvani wrote:
> 
> Hi,
> 
> Please describe your problem in details.What exactly you want?
> If you do not want to encode this just unchecked the the encoding option
> Or If you do the encoding then Checked the encoding option.
> 
> Encoding option will  display in send parameter request table in HTTP
> request sampler.
> 
> On Wed, Jan 26, 2011 at 3:07 PM, zhouyuan  wrote:
> 
>>
>> Recently, I met a problem about Jmeter loading data from CSV file. Jmeter
>> will automatically change  some special characters, e.g. “@”->”%40”;
>> “:”->”%3A”. I also tried to modify the encoding, but it doesn't work.
>> Could
>> you help me with it? Thanks!
>> --
>> View this message in context:
>> http://jmeter.512774.n5.nabble.com/CSV-data-set-config-problem-tp3357599p3357599.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>>
>>
> 
> 
> -- 
> RAJIV KUMAR
> 
> 
> 
> 
> 

Thanks! I found a solution in your discussion using
${__javaScript(escape(vars.get("abc"));)} ! It works fine! I will test if
the request will use url encoding tomorrow following your suggestions.
-- 
View this message in context: 
http://jmeter.512774.n5.nabble.com/CSV-data-set-config-problem-tp3357599p3357859.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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



Re: CSV data set config problem

2011-01-26 Thread Rajiv Nanduani
Hi,

Please describe your problem in details.What exactly you want?
If you do not want to encode this just unchecked the the encoding option
Or If you do the encoding then Checked the encoding option.

Encoding option will  display in send parameter request table in HTTP
request sampler.

On Wed, Jan 26, 2011 at 3:07 PM, zhouyuan  wrote:

>
> Recently, I met a problem about Jmeter loading data from CSV file. Jmeter
> will automatically change  some special characters, e.g. “@”->”%40”;
> “:”->”%3A”. I also tried to modify the encoding, but it doesn't work. Could
> you help me with it? Thanks!
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/CSV-data-set-config-problem-tp3357599p3357599.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>


-- 
RAJIV KUMAR





Re: CSV Data Set Config doesn't work with jdbc request

2010-03-08 Thread Maya Hague
Thanks, I was able to achieve the same thing with 'userparameters'.





From: sebb 
To: JMeter Users List 
Sent: Sat, February 27, 2010 5:17:19 AM
Subject: Re: CSV Data Set Config doesn't work with jdbc request

On 27/02/2010, Maya Hague  wrote:
> Hi,
>  My test plan is as follows
>
>  Test Plan
>    thread
>      Jdbc Connection Config
>      jdbc request
>      view results tree
>      CSV Data Set Config
>
>  My query is an update prepared statement calling a stored procedure which 
>works fine with hard coded value,but when I pass the csv file it does not pass 
>values from the file to the parameter. I'm using the jtds sql driver.
>
>  My file is in c:\words.csv
>  contents of the file
>
>  document
>  system
>  test
>
>  my jdbc request has
>
>  SET @SEARCH_TERM ="${words}"
>
>  call the stored procedure with
>  execute storedprocedure1 @SEARCH_TERM
>
>  parameter values: ${words}
>  parameter type: VARCHAR
>
>  I see that the request is being sent as ${words} not what is in the files 
>c:\words.csv. NO errors in the jmeter.log. What could I be doing wrong

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config

Read the box highlighted in colour.

>  Thanks
>
>
>

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


  

Re: CSV Data Set Config doesn't work with jdbc request

2010-02-27 Thread sebb
On 27/02/2010, Maya Hague  wrote:
> Hi,
>  My test plan is as follows
>
>  Test Plan
> thread
>   Jdbc Connection Config
>   jdbc request
>   view results tree
>   CSV Data Set Config
>
>  My query is an update prepared statement calling a stored procedure which 
> works fine with hard coded value,but when I pass the csv file it does not 
> pass values from the file to the parameter. I'm using the jtds sql driver.
>
>  My file is in c:\words.csv
>  contents of the file
>
>  document
>  system
>  test
>
>  my jdbc request has
>
>  SET @SEARCH_TERM ="${words}"
>
>  call the stored procedure with
>  execute storedprocedure1 @SEARCH_TERM
>
>  parameter values: ${words}
>  parameter type: VARCHAR
>
>  I see that the request is being sent as ${words} not what is in the files 
> c:\words.csv. NO errors in the jmeter.log. What could I be doing wrong

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config

Read the box highlighted in colour.

>  Thanks
>
>
>

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



Re: CSV Data Set Config Question

2009-10-14 Thread Deepak Shetty
Hi
The variable names are those corresponding to what a column represents in
the CSV .  There should be as many variable names as there are columns.

so if your CSV is something like
username1, firstname1, email1
username2, firstname2, email2

Then in the CSV data set config the variable names would be for e.g.
username,firstName,emailAddress

and you would refer to this in your test as
${username},${firstName},${emailAddress}. At runtime these values will be
replaced by the values for a row from the CSV . If you had multiple threads
each would get its own row (assuming the sharing mode is that).
regards
deepak

On Wed, Oct 14, 2009 at 5:32 AM, arubin41  wrote:

>
> Deepak - thanks for the info.  Very helpful.  QUick follow up question.  In
> the CSV Data Set Config space, when I fill out the Variable Names
> (comma-delimited) field do I list the usernames established in the txt file
> like so
>
> username1, username2, username3, username4, username5?
>
> Or am I following the example on the Jmeter User Guide
>
> a, b, c, d, e?
>
> Thanks again,
>
> -Alan
>
> Deepak Shetty wrote:
> >
> > hi
> > Each row should correspond to the data per user so in your case
> > user1,pass1,otherdata
> > user2,pass2,otherdata
> > user3,pass3,otherdata
> > user4,pass4,otherdata
> >
> > The variable names are defined in the CSV data set config
> >  in most cases you should be able to put the CSV data set config as a
> > child
> > of the threadgroup .
> >
> > regards
> > deepak
> >
> > On Tue, Oct 13, 2009 at 2:30 PM, arubin41  wrote:
> >
> >>
> >> New to jMeter and I'm running into what's likely a very-rookie question.
> >>  I'm
> >> creating CSV Data Set Config to set up 5 usernames and passwords.  My
> >> question is regarding the structure of my txt file.  Do you establish
> the
> >> variables similar to javascript (or whatever language):
> >>
> >> var USER {username1, username2, username3, username4, username5}
> >>
> >> Or am I overthinking this a little?
> >>
> >> Also, in the jmeter test plan heirarchy, is there a specific place I
> need
> >> to
> >> create the CSV Data Set Config entry?
> >>
> >> Best,
> >>
> >> -Alan
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
> >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25890240.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>


Re: CSV Data Set Config Question

2009-10-14 Thread arubin41

Deepak - thanks for the info.  Very helpful.  QUick follow up question.  In
the CSV Data Set Config space, when I fill out the Variable Names
(comma-delimited) field do I list the usernames established in the txt file
like so

username1, username2, username3, username4, username5?

Or am I following the example on the Jmeter User Guide

a, b, c, d, e?

Thanks again,

-Alan

Deepak Shetty wrote:
> 
> hi
> Each row should correspond to the data per user so in your case
> user1,pass1,otherdata
> user2,pass2,otherdata
> user3,pass3,otherdata
> user4,pass4,otherdata
> 
> The variable names are defined in the CSV data set config
>  in most cases you should be able to put the CSV data set config as a
> child
> of the threadgroup .
> 
> regards
> deepak
> 
> On Tue, Oct 13, 2009 at 2:30 PM, arubin41  wrote:
> 
>>
>> New to jMeter and I'm running into what's likely a very-rookie question.
>>  I'm
>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>> question is regarding the structure of my txt file.  Do you establish the
>> variables similar to javascript (or whatever language):
>>
>> var USER {username1, username2, username3, username4, username5}
>>
>> Or am I overthinking this a little?
>>
>> Also, in the jmeter test plan heirarchy, is there a specific place I need
>> to
>> create the CSV Data Set Config entry?
>>
>> Best,
>>
>> -Alan
>> --
>> View this message in context:
>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25890240.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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



Re: CSV Data Set Config Question

2009-10-14 Thread Jatin Davey
Got this working for all my 50 concurrent threads with the help of CSV 
Data Config Element.


Thanks Sebb , Deepak and Nikolay for providing all the help and clues in 
arriving at a solution for it.


Thanks
Jatin

Jatin Davey wrote:
Thanks Deepak. I tried this by looking into one of the examples that 
comes with JMeter bundle. Thanks for the help. I am good to go by 
having multiple users logging into my server. Need to tweak some more 
variables to make it work the way it is done using a browser with 
multiple sessions.

I will get back if any help is needed further.
Thanks Again..

Thanks
Jatin

Deepak Shetty wrote:

Hi
In your HttpSample under 'Send Parameters with request'
under name enter the name of the field your application uses , under 
value
enter ${a} where a is the name you've specfied in the CSV data set 
config


so for e.g.
if the application uses j_username and j_password as the fields and 
your CSV
data set config has the variables defined as username,password then 
in the

HTTP Sample you will have two entries
j_username ${username}
j_password ${password}

regards
deepak


On Tue, Oct 13, 2009 at 9:09 PM, Jatin Davey  wrote:

 

Ok , i have defined a csv file where i have mentioned the user name and
passwords. Also as mentioned earlier by you to split them into 
variables

using the CSV data config element. This also is done. As per my
understanding now i would be having the user name and password into 2
variables that i need to use in the post request of the sampler that 
is used

to log into the Server.

I have a question here , since i added the CSV data config in the 
thread

group i understand that the values from the CSV file will be split into
variables "a" and "b" (defined in the CSV data config) , now what 
should i

do in the sampler to make it use these variables.
Please guide me.


Thanks
Jatin

Deepak Shetty wrote:

   

hi
if the data is tied to the user (e.g. the user's email address) 
then it

must
be the same CSV data set config (each column representing a data 
item).
If the data is independent (e.g. the string the user enters into a 
search

box) then you could have it as separate or different CSV data config
element.
If the relation is 1 to Many (1 user searches for multiple strings) 
then

you'd probably have separate CSV data set configs


regards
deepak

On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey  
wrote:




 

On similar lines i too have a requirement as below:

1. Each thread logs into my server with different username and 
password
2. Within thread group there are samplers that require to take 
some value

from the file for the user logged into my server using the step 1

So do i need to have to seperate CSV files and CSV data config 
elements ,

one for thread group and one for the samplers.
Please explain.

Thanks
Jatin


Deepak Shetty wrote:



   

hi
Each row should correspond to the data per user so in your case
user1,pass1,otherdata
user2,pass2,otherdata
user3,pass3,otherdata
user4,pass4,otherdata

The variable names are defined in the CSV data set config
 in most cases you should be able to put the CSV data set config 
as a

child
of the threadgroup .

regards
deepak

On Tue, Oct 13, 2009 at 2:30 PM, arubin41 
wrote:





 

New to jMeter and I'm running into what's likely a very-rookie
question.
 I'm
creating CSV Data Set Config to set up 5 usernames and 
passwords.  My
question is regarding the structure of my txt file.  Do you 
establish

the
variables similar to javascript (or whatever language):

var USER {username1, username2, username3, username4, username5}

Or am I overthinking this a little?

Also, in the jmeter test plan heirarchy, is there a specific 
place I

need
to
create the CSV Data Set Config entry?

Best,

-Alan
--
View this message in context:


http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html 


Sent from the JMeter - User mailing list archive at Nabble.com.


- 


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










  

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







  

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





  


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




-
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For add

Re: CSV Data Set Config Question

2009-10-13 Thread Jatin Davey
Thanks Deepak. I tried this by looking into one of the examples that 
comes with JMeter bundle. Thanks for the help. I am good to go by having 
multiple users logging into my server. Need to tweak some more variables 
to make it work the way it is done using a browser with multiple sessions.

I will get back if any help is needed further.
Thanks Again..

Thanks
Jatin

Deepak Shetty wrote:

Hi
In your HttpSample under 'Send Parameters with request'
under name enter the name of the field your application uses , under value
enter ${a} where a is the name you've specfied in the CSV data set config

so for e.g.
if the application uses j_username and j_password as the fields and your CSV
data set config has the variables defined as username,password then in the
HTTP Sample you will have two entries
j_username ${username}
j_password ${password}

regards
deepak


On Tue, Oct 13, 2009 at 9:09 PM, Jatin Davey  wrote:

  

Ok , i have defined a csv file where i have mentioned the user name and
passwords. Also as mentioned earlier by you to split them into variables
using the CSV data config element. This also is done. As per my
understanding now i would be having the user name and password into 2
variables that i need to use in the post request of the sampler that is used
to log into the Server.

I have a question here , since i added the CSV data config in the thread
group i understand that the values from the CSV file will be split into
variables "a" and "b" (defined in the CSV data config) , now what should i
do in the sampler to make it use these variables.
Please guide me.


Thanks
Jatin

Deepak Shetty wrote:



hi
if the data is tied to the user (e.g. the user's email address) then it
must
be the same CSV data set config (each column representing a data item).
If the data is independent (e.g. the string the user enters into a search
box) then you could have it as separate or different CSV data config
element.
If the relation is 1 to Many (1 user searches for multiple strings) then
you'd probably have separate CSV data set configs


regards
deepak

On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey  wrote:



  

On similar lines i too have a requirement as below:

1. Each thread logs into my server with different username and password
2. Within thread group there are samplers that require to take some value
from the file for the user logged into my server using the step 1

So do i need to have to seperate CSV files and CSV data config elements ,
one for thread group and one for the samplers.
Please explain.

Thanks
Jatin


Deepak Shetty wrote:





hi
Each row should correspond to the data per user so in your case
user1,pass1,otherdata
user2,pass2,otherdata
user3,pass3,otherdata
user4,pass4,otherdata

The variable names are defined in the CSV data set config
 in most cases you should be able to put the CSV data set config as a
child
of the threadgroup .

regards
deepak

On Tue, Oct 13, 2009 at 2:30 PM, arubin41 
wrote:





  

New to jMeter and I'm running into what's likely a very-rookie
question.
 I'm
creating CSV Data Set Config to set up 5 usernames and passwords.  My
question is regarding the structure of my txt file.  Do you establish
the
variables similar to javascript (or whatever language):

var USER {username1, username2, username3, username4, username5}

Or am I overthinking this a little?

Also, in the jmeter test plan heirarchy, is there a specific place I
need
to
create the CSV Data Set Config entry?

Best,

-Alan
--
View this message in context:


http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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









  

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







  

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





  


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



Re: CSV Data Set Config Question

2009-10-13 Thread Deepak Shetty
Hi
In your HttpSample under 'Send Parameters with request'
under name enter the name of the field your application uses , under value
enter ${a} where a is the name you've specfied in the CSV data set config

so for e.g.
if the application uses j_username and j_password as the fields and your CSV
data set config has the variables defined as username,password then in the
HTTP Sample you will have two entries
j_username ${username}
j_password ${password}

regards
deepak


On Tue, Oct 13, 2009 at 9:09 PM, Jatin Davey  wrote:

> Ok , i have defined a csv file where i have mentioned the user name and
> passwords. Also as mentioned earlier by you to split them into variables
> using the CSV data config element. This also is done. As per my
> understanding now i would be having the user name and password into 2
> variables that i need to use in the post request of the sampler that is used
> to log into the Server.
>
> I have a question here , since i added the CSV data config in the thread
> group i understand that the values from the CSV file will be split into
> variables "a" and "b" (defined in the CSV data config) , now what should i
> do in the sampler to make it use these variables.
> Please guide me.
>
>
> Thanks
> Jatin
>
> Deepak Shetty wrote:
>
>> hi
>> if the data is tied to the user (e.g. the user's email address) then it
>> must
>> be the same CSV data set config (each column representing a data item).
>> If the data is independent (e.g. the string the user enters into a search
>> box) then you could have it as separate or different CSV data config
>> element.
>> If the relation is 1 to Many (1 user searches for multiple strings) then
>> you'd probably have separate CSV data set configs
>>
>>
>> regards
>> deepak
>>
>> On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey  wrote:
>>
>>
>>
>>> On similar lines i too have a requirement as below:
>>>
>>> 1. Each thread logs into my server with different username and password
>>> 2. Within thread group there are samplers that require to take some value
>>> from the file for the user logged into my server using the step 1
>>>
>>> So do i need to have to seperate CSV files and CSV data config elements ,
>>> one for thread group and one for the samplers.
>>> Please explain.
>>>
>>> Thanks
>>> Jatin
>>>
>>>
>>> Deepak Shetty wrote:
>>>
>>>
>>>
 hi
 Each row should correspond to the data per user so in your case
 user1,pass1,otherdata
 user2,pass2,otherdata
 user3,pass3,otherdata
 user4,pass4,otherdata

 The variable names are defined in the CSV data set config
  in most cases you should be able to put the CSV data set config as a
 child
 of the threadgroup .

 regards
 deepak

 On Tue, Oct 13, 2009 at 2:30 PM, arubin41 
 wrote:





> New to jMeter and I'm running into what's likely a very-rookie
> question.
>  I'm
> creating CSV Data Set Config to set up 5 usernames and passwords.  My
> question is regarding the structure of my txt file.  Do you establish
> the
> variables similar to javascript (or whatever language):
>
> var USER {username1, username2, username3, username4, username5}
>
> Or am I overthinking this a little?
>
> Also, in the jmeter test plan heirarchy, is there a specific place I
> need
> to
> create the CSV Data Set Config entry?
>
> Best,
>
> -Alan
> --
> View this message in context:
>
>
> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>
>
>
>
>



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


Re: CSV Data Set Config Question

2009-10-13 Thread Jatin Davey
Ok , i have defined a csv file where i have mentioned the user name and 
passwords. Also as mentioned earlier by you to split them into variables 
using the CSV data config element. This also is done. As per my 
understanding now i would be having the user name and password into 2 
variables that i need to use in the post request of the sampler that is 
used to log into the Server.


I have a question here , since i added the CSV data config in the thread 
group i understand that the values from the CSV file will be split into 
variables "a" and "b" (defined in the CSV data config) , now what should 
i do in the sampler to make it use these variables.

Please guide me.

Thanks
Jatin

Deepak Shetty wrote:

hi
if the data is tied to the user (e.g. the user's email address) then it must
be the same CSV data set config (each column representing a data item).
If the data is independent (e.g. the string the user enters into a search
box) then you could have it as separate or different CSV data config
element.
If the relation is 1 to Many (1 user searches for multiple strings) then
you'd probably have separate CSV data set configs


regards
deepak

On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey  wrote:

  

On similar lines i too have a requirement as below:

1. Each thread logs into my server with different username and password
2. Within thread group there are samplers that require to take some value
from the file for the user logged into my server using the step 1

So do i need to have to seperate CSV files and CSV data config elements ,
one for thread group and one for the samplers.
Please explain.

Thanks
Jatin


Deepak Shetty wrote:



hi
Each row should correspond to the data per user so in your case
user1,pass1,otherdata
user2,pass2,otherdata
user3,pass3,otherdata
user4,pass4,otherdata

The variable names are defined in the CSV data set config
 in most cases you should be able to put the CSV data set config as a
child
of the threadgroup .

regards
deepak

On Tue, Oct 13, 2009 at 2:30 PM, arubin41  wrote:



  

New to jMeter and I'm running into what's likely a very-rookie question.
 I'm
creating CSV Data Set Config to set up 5 usernames and passwords.  My
question is regarding the structure of my txt file.  Do you establish the
variables similar to javascript (or whatever language):

var USER {username1, username2, username3, username4, username5}

Or am I overthinking this a little?

Also, in the jmeter test plan heirarchy, is there a specific place I need
to
create the CSV Data Set Config entry?

Best,

-Alan
--
View this message in context:

http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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







  

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





  


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



Re: CSV Data Set Config Question

2009-10-13 Thread Deepak Shetty
hi
if the data is tied to the user (e.g. the user's email address) then it must
be the same CSV data set config (each column representing a data item).
If the data is independent (e.g. the string the user enters into a search
box) then you could have it as separate or different CSV data config
element.
If the relation is 1 to Many (1 user searches for multiple strings) then
you'd probably have separate CSV data set configs


regards
deepak

On Tue, Oct 13, 2009 at 8:41 PM, Jatin Davey  wrote:

> On similar lines i too have a requirement as below:
>
> 1. Each thread logs into my server with different username and password
> 2. Within thread group there are samplers that require to take some value
> from the file for the user logged into my server using the step 1
>
> So do i need to have to seperate CSV files and CSV data config elements ,
> one for thread group and one for the samplers.
> Please explain.
>
> Thanks
> Jatin
>
>
> Deepak Shetty wrote:
>
>> hi
>> Each row should correspond to the data per user so in your case
>> user1,pass1,otherdata
>> user2,pass2,otherdata
>> user3,pass3,otherdata
>> user4,pass4,otherdata
>>
>> The variable names are defined in the CSV data set config
>>  in most cases you should be able to put the CSV data set config as a
>> child
>> of the threadgroup .
>>
>> regards
>> deepak
>>
>> On Tue, Oct 13, 2009 at 2:30 PM, arubin41  wrote:
>>
>>
>>
>>> New to jMeter and I'm running into what's likely a very-rookie question.
>>>  I'm
>>> creating CSV Data Set Config to set up 5 usernames and passwords.  My
>>> question is regarding the structure of my txt file.  Do you establish the
>>> variables similar to javascript (or whatever language):
>>>
>>> var USER {username1, username2, username3, username4, username5}
>>>
>>> Or am I overthinking this a little?
>>>
>>> Also, in the jmeter test plan heirarchy, is there a specific place I need
>>> to
>>> create the CSV Data Set Config entry?
>>>
>>> Best,
>>>
>>> -Alan
>>> --
>>> View this message in context:
>>>
>>> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>


Re: CSV Data Set Config Question

2009-10-13 Thread Jatin Davey

On similar lines i too have a requirement as below:

1. Each thread logs into my server with different username and password
2. Within thread group there are samplers that require to take some 
value from the file for the user logged into my server using the step 1


So do i need to have to seperate CSV files and CSV data config elements 
, one for thread group and one for the samplers.

Please explain.

Thanks
Jatin

Deepak Shetty wrote:

hi
Each row should correspond to the data per user so in your case
user1,pass1,otherdata
user2,pass2,otherdata
user3,pass3,otherdata
user4,pass4,otherdata

The variable names are defined in the CSV data set config
 in most cases you should be able to put the CSV data set config as a child
of the threadgroup .

regards
deepak

On Tue, Oct 13, 2009 at 2:30 PM, arubin41  wrote:

  

New to jMeter and I'm running into what's likely a very-rookie question.
 I'm
creating CSV Data Set Config to set up 5 usernames and passwords.  My
question is regarding the structure of my txt file.  Do you establish the
variables similar to javascript (or whatever language):

var USER {username1, username2, username3, username4, username5}

Or am I overthinking this a little?

Also, in the jmeter test plan heirarchy, is there a specific place I need
to
create the CSV Data Set Config entry?

Best,

-Alan
--
View this message in context:
http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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





  


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



Re: CSV Data Set Config Question

2009-10-13 Thread Deepak Shetty
hi
Each row should correspond to the data per user so in your case
user1,pass1,otherdata
user2,pass2,otherdata
user3,pass3,otherdata
user4,pass4,otherdata

The variable names are defined in the CSV data set config
 in most cases you should be able to put the CSV data set config as a child
of the threadgroup .

regards
deepak

On Tue, Oct 13, 2009 at 2:30 PM, arubin41  wrote:

>
> New to jMeter and I'm running into what's likely a very-rookie question.
>  I'm
> creating CSV Data Set Config to set up 5 usernames and passwords.  My
> question is regarding the structure of my txt file.  Do you establish the
> variables similar to javascript (or whatever language):
>
> var USER {username1, username2, username3, username4, username5}
>
> Or am I overthinking this a little?
>
> Also, in the jmeter test plan heirarchy, is there a specific place I need
> to
> create the CSV Data Set Config entry?
>
> Best,
>
> -Alan
> --
> View this message in context:
> http://www.nabble.com/CSV-Data-Set-Config-Question-tp25881260p25881260.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>


RE: csv Data Set Config

2008-10-16 Thread Nair, Pramod
Using Debug Sampler to capture Variables should help you.

Also, for your question:
I have the parameter names as USER,PWD (Hope its not USER,PWD, )

What I do to my CSV file is always have the last column as END-DATA so
it would look like - (USER,PWD,END-DATA) - where END-DATA column will
contain the value "END" signifying end of row.

Also I prefer to have the column named "VALID-DATA" where I set values
Y/N for each row. I have set and IF controller where it checks for this
value before sampler is processed. This gives me the flexibility to
control which rows need to be processed for each run by tweaking the
data file.


It works for me..


Thanks
Pramod

-Original Message-
From: Anthony Chadszinow [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2008 4:18 AM
To: JMeter Users List
Subject: Re: csv Data Set Config

Ok Akshata and Melvin,

I can help up until a point with this one because the case in which I 
read a CSV file is slightly different but if what I say doesn't help I 
can suggest a few other ways ahead or someone else can jump in and tell 
us how it's really done.

Here goes -
In my case I know how many lines are in the CSV file.  You say you want 
to stop at EOF but it my case I stop once a variable counter reaches a 
certain number.

First thing I do is I read in the number of lines from a config file and

put that into a variable.

I then use a 'Loop controller' which is kind of like a standard 'for 
loop'.  In that loop controller I set the 'Loop Count' setting to be 
equal to my variable name which stores the number of lines in the file.

As a child of the loop controller I put a 'CSV Data Set Config' 
element.  I set the filename path to the path to my CSV file; I leave 
file encoding blank; I make my variable names "variable1,variable2" <-- 
don't include the double quotes in the setting; I set the delimiter to ,

<--- comma; Allow quoted data would be yes in your case; Recycle on EOF 
would be false; Stop thread on EOF false in my case but maybe true for 
you if this example doesn't work and sharing mode I guess is current
thread.

That will loop for the number of lines in your CSV file and each 
iteration your variables will have the next line of data.  Put a debug 
sampler after the CSV data set config element too and if your variables 
are not set to at least something from the CSV file then your path to or

permissions over the CSV file are wrong.

Now, if you really need to loop till EOF you can try the following 
'untested by me' way -
Same sort of setup however in the loop count setting instead of a 
variable check the Forever checkbox then in the CSV reader set stop 
thread on EOF to true.  I assume that will work but I've never tried 
it.  I also don't know if Stop thread is really what is does.  I would 
hope if it was in a loop it would just stop iteration as opposed to the 
entire thread but it sounds like that's what you need anyway so you can 
give that a try to.

The final way I know this could be done is really quite awful and it 
involves reading the entire CSV file and turning them into a big set of 
variables by use of a regular expression.  Then you use a foreach loop 
over that set of variables.  I don't think this is the way to go however

and I'd hope someone else would jump in and tell us how it's really done

before anyone goes down that path.

Chad

Melvin Laguren wrote:
> I'm actually having a similar problem as well.  The only difference is
that my test is reading $(COMPANY) and not $(USER) and $(PASSWORD).
>
>
> -----Original Message-
> From: akshata s.m. [mailto:[EMAIL PROTECTED]
> Sent: Thu 10/16/2008 11:27 AM
> To: JMeter Users List
> Subject: Re: csv Data Set Config
>  
> Hi..
>
> I would like to test this application sequentially.
> I mean.. one user at a time.. This would help me to verify certain
negative scenarios and handling them would be easier as this testplan
isnt that huge..
>
> But what is observe is, JMeter is not reading any user from the csv
file. Neither the results are listed in my listener.
>
> I have the parameter names as USER,PWD (Hope its not USER,PWD, )
> And the parameters in the samplers are replaced by ${USER} AND ${PWD}.
>
> I am unable to identify the mistake here.
>
> Regards,
> Akshata
>
> --- On Wed, 10/15/08, Anthony Chadszinow <[EMAIL PROTECTED]>
wrote:
> From: Anthony Chadszinow <[EMAIL PROTECTED]>
> Subject: Re: csv Data Set Config
> To: "JMeter Users List" 
> Date: Wednesday, October 15, 2008, 4:38 PM
>
> Here's a link to the true rules of the CSV format 
> http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
>
> The format you specify sounds fine.
>
> I think you can do the test actions you mention in two ways.  First is
a 
> l

Re: csv Data Set Config

2008-10-16 Thread Anthony Chadszinow

Ok Akshata and Melvin,

I can help up until a point with this one because the case in which I 
read a CSV file is slightly different but if what I say doesn't help I 
can suggest a few other ways ahead or someone else can jump in and tell 
us how it's really done.


Here goes -
In my case I know how many lines are in the CSV file.  You say you want 
to stop at EOF but it my case I stop once a variable counter reaches a 
certain number.


First thing I do is I read in the number of lines from a config file and 
put that into a variable.


I then use a 'Loop controller' which is kind of like a standard 'for 
loop'.  In that loop controller I set the 'Loop Count' setting to be 
equal to my variable name which stores the number of lines in the file.


As a child of the loop controller I put a 'CSV Data Set Config' 
element.  I set the filename path to the path to my CSV file; I leave 
file encoding blank; I make my variable names "variable1,variable2" <-- 
don't include the double quotes in the setting; I set the delimiter to , 
<--- comma; Allow quoted data would be yes in your case; Recycle on EOF 
would be false; Stop thread on EOF false in my case but maybe true for 
you if this example doesn't work and sharing mode I guess is current thread.


That will loop for the number of lines in your CSV file and each 
iteration your variables will have the next line of data.  Put a debug 
sampler after the CSV data set config element too and if your variables 
are not set to at least something from the CSV file then your path to or 
permissions over the CSV file are wrong.


Now, if you really need to loop till EOF you can try the following 
'untested by me' way -
Same sort of setup however in the loop count setting instead of a 
variable check the Forever checkbox then in the CSV reader set stop 
thread on EOF to true.  I assume that will work but I've never tried 
it.  I also don't know if Stop thread is really what is does.  I would 
hope if it was in a loop it would just stop iteration as opposed to the 
entire thread but it sounds like that's what you need anyway so you can 
give that a try to.


The final way I know this could be done is really quite awful and it 
involves reading the entire CSV file and turning them into a big set of 
variables by use of a regular expression.  Then you use a foreach loop 
over that set of variables.  I don't think this is the way to go however 
and I'd hope someone else would jump in and tell us how it's really done 
before anyone goes down that path.


Chad

Melvin Laguren wrote:

I'm actually having a similar problem as well.  The only difference is that my 
test is reading $(COMPANY) and not $(USER) and $(PASSWORD).


-Original Message-----
From: akshata s.m. [mailto:[EMAIL PROTECTED]
Sent: Thu 10/16/2008 11:27 AM
To: JMeter Users List
Subject: Re: csv Data Set Config
 
Hi..


I would like to test this application sequentially.
I mean.. one user at a time.. This would help me to verify certain negative 
scenarios and handling them would be easier as this testplan  isnt that huge..

But what is observe is, JMeter is not reading any user from the csv file. 
Neither the results are listed in my listener.

I have the parameter names as USER,PWD (Hope its not USER,PWD, )
And the parameters in the samplers are replaced by ${USER} AND ${PWD}.

I am unable to identify the mistake here.

Regards,
Akshata

--- On Wed, 10/15/08, Anthony Chadszinow <[EMAIL PROTECTED]> wrote:
From: Anthony Chadszinow <[EMAIL PROTECTED]>
Subject: Re: csv Data Set Config
To: "JMeter Users List" 
Date: Wednesday, October 15, 2008, 4:38 PM

Here's a link to the true rules of the CSV format 
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm


The format you specify sounds fine.

I think you can do the test actions you mention in two ways.  First is a 
loop within a single test plan so one thread of jmeter does all the 
logging in as the X number of users in the CSV file.  Then that test can 
run concurrently so you get lots of the same users logging in concurrently.


Another way I believe is each thread running can grab a different user 
from the CSV file and perform the actions you listed as that user alone.


How did you want to test this application?

Chad

akshata s.m. wrote:
  

Hello,

I have 5 http requests which perform Login, display homepage and logout.

For my application, i want to login as user1, execute the samplers and


logout.
  

And then login as user2 repeat the process and logout.

I am trying to use the CSV Data Set Config for my application to login as


different users but one after the other.
  

I have a csvdata.txt file at the location of my jmx file. I would like to

know the format of the csv file. 
  

Should the username and password value pairs be in a single line? say..

user1,pwd1
user2,pwd2
.
.
.

If yes 

RE: csv Data Set Config

2008-10-16 Thread Melvin Laguren
I'm actually having a similar problem as well.  The only difference is that my 
test is reading $(COMPANY) and not $(USER) and $(PASSWORD).


-Original Message-
From: akshata s.m. [mailto:[EMAIL PROTECTED]
Sent: Thu 10/16/2008 11:27 AM
To: JMeter Users List
Subject: Re: csv Data Set Config
 
Hi..

I would like to test this application sequentially.
I mean.. one user at a time.. This would help me to verify certain negative 
scenarios and handling them would be easier as this testplan  isnt that huge..

But what is observe is, JMeter is not reading any user from the csv file. 
Neither the results are listed in my listener.

I have the parameter names as USER,PWD (Hope its not USER,PWD, )
And the parameters in the samplers are replaced by ${USER} AND ${PWD}.

I am unable to identify the mistake here.

Regards,
Akshata

--- On Wed, 10/15/08, Anthony Chadszinow <[EMAIL PROTECTED]> wrote:
From: Anthony Chadszinow <[EMAIL PROTECTED]>
Subject: Re: csv Data Set Config
To: "JMeter Users List" 
Date: Wednesday, October 15, 2008, 4:38 PM

Here's a link to the true rules of the CSV format 
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm

The format you specify sounds fine.

I think you can do the test actions you mention in two ways.  First is a 
loop within a single test plan so one thread of jmeter does all the 
logging in as the X number of users in the CSV file.  Then that test can 
run concurrently so you get lots of the same users logging in concurrently.

Another way I believe is each thread running can grab a different user 
from the CSV file and perform the actions you listed as that user alone.

How did you want to test this application?

Chad

akshata s.m. wrote:
> Hello,
>
> I have 5 http requests which perform Login, display homepage and logout.
>
> For my application, i want to login as user1, execute the samplers and
logout.
> And then login as user2 repeat the process and logout.
>
> I am trying to use the CSV Data Set Config for my application to login as
different users but one after the other.
> I have a csvdata.txt file at the location of my jmx file. I would like to
know the format of the csv file. 
>
> Should the username and password value pairs be in a single line? say..
>
> user1,pwd1
> user2,pwd2
> .
> .
> .
>
> If yes i would like to know how Jmeter picks these values. Also what
should be the values set for:
> 1. Allow quoted data
> 2. Recycle on EOF
> 3. Stop thread on EOF
> 4. Sharing mode
>
> Kindly do the needful.
>
> Regards,
> Akshata
>
>
>   
>   

-- 
Anthony Chadszinow
MySource Classic Lead Developer

Squiz
92 Jarrett St Leichhardt, Sydney NSW, Australia 2040 
t:13000 SQUIZ ( Support )
t:8507 9900 / 1300 130 661
f:8507 9988
e:[EMAIL PROTECTED]
w:www.matrix.squiz.net
w:www.squiz.net

Sydney  |  Melbourne  |  Canberra  |  Hobart  |  Wellington  |  London 

Open Source  - Own it  -  Squiz.net 



IMPORTANT:This email (and any attachments) is commercial-in-confidence and
or may be legally privileged and must not be forwarded, copied or shared
without express permission from Squiz. If you are not the intended
recipient, you may not legally copy, disclose or use the contents in any way
and you should 
contact [EMAIL PROTECTED] immediately and destroy this message and any
attachments. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: csv Data Set Config

2008-10-16 Thread akshata s.m.
Hi..

I would like to test this application sequentially.
I mean.. one user at a time.. This would help me to verify certain negative 
scenarios and handling them would be easier as this testplan  isnt that huge..

But what is observe is, JMeter is not reading any user from the csv file. 
Neither the results are listed in my listener.

I have the parameter names as USER,PWD (Hope its not USER,PWD, )
And the parameters in the samplers are replaced by ${USER} AND ${PWD}.

I am unable to identify the mistake here.

Regards,
Akshata

--- On Wed, 10/15/08, Anthony Chadszinow <[EMAIL PROTECTED]> wrote:
From: Anthony Chadszinow <[EMAIL PROTECTED]>
Subject: Re: csv Data Set Config
To: "JMeter Users List" 
Date: Wednesday, October 15, 2008, 4:38 PM

Here's a link to the true rules of the CSV format 
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm

The format you specify sounds fine.

I think you can do the test actions you mention in two ways.  First is a 
loop within a single test plan so one thread of jmeter does all the 
logging in as the X number of users in the CSV file.  Then that test can 
run concurrently so you get lots of the same users logging in concurrently.

Another way I believe is each thread running can grab a different user 
from the CSV file and perform the actions you listed as that user alone.

How did you want to test this application?

Chad

akshata s.m. wrote:
> Hello,
>
> I have 5 http requests which perform Login, display homepage and logout.
>
> For my application, i want to login as user1, execute the samplers and
logout.
> And then login as user2 repeat the process and logout.
>
> I am trying to use the CSV Data Set Config for my application to login as
different users but one after the other.
> I have a csvdata.txt file at the location of my jmx file. I would like to
know the format of the csv file. 
>
> Should the username and password value pairs be in a single line? say..
>
> user1,pwd1
> user2,pwd2
> .
> .
> .
>
> If yes i would like to know how Jmeter picks these values. Also what
should be the values set for:
> 1. Allow quoted data
> 2. Recycle on EOF
> 3. Stop thread on EOF
> 4. Sharing mode
>
> Kindly do the needful.
>
> Regards,
> Akshata
>
>
>   
>   

-- 
Anthony Chadszinow
MySource Classic Lead Developer

Squiz
92 Jarrett St Leichhardt, Sydney NSW, Australia 2040 
t:13000 SQUIZ ( Support )
t:8507 9900 / 1300 130 661
f:8507 9988
e:[EMAIL PROTECTED]
w:www.matrix.squiz.net
w:www.squiz.net

Sydney  |  Melbourne  |  Canberra  |  Hobart  |  Wellington  |  London 

Open Source  - Own it  -  Squiz.net 



IMPORTANT:This email (and any attachments) is commercial-in-confidence and
or may be legally privileged and must not be forwarded, copied or shared
without express permission from Squiz. If you are not the intended
recipient, you may not legally copy, disclose or use the contents in any way
and you should 
contact [EMAIL PROTECTED] immediately and destroy this message and any
attachments. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

RE: csv Data Set Config

2008-10-15 Thread Steve Kapinos
The format is simple...  each thread will read one line from the file.
If you set your delimiter to be a comma, your example is fine.  The EOF
behavior is what you want it to be.. do you want it to start back at the
beginning when it reaches the end of the file, or stop the thread if it
reached the end of the file.

The thing is for a small list like this, it would be simplier to
probably use the User Parameters element instead of CSV.

But both CSV and User Parameter are aimed reading one set into a thread.
If you want your tests to be sequential, instead of a simultaneous you
should do all your tests in a single thread.  Reading 5 lines from the
CSV file would require 5 thread instances which would normally be
running in parallel.

If you want it to all happen in the same thread and sequentially... you
should probably consider using the __CSVRead function in a loop.



-Original Message-
From: akshata s.m. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2008 5:50 AM
To: jmeter-user@jakarta.apache.org
Subject: csv Data Set Config

Hello,

I have 5 http requests which perform Login, display homepage and logout.

For my application, i want to login as user1, execute the samplers and
logout.
And then login as user2 repeat the process and logout.

I am trying to use the CSV Data Set Config for my application to login
as different users but one after the other.
I have a csvdata.txt file at the location of my jmx file. I would like
to know the format of the csv file. 

Should the username and password value pairs be in a single line? say..

user1,pwd1
user2,pwd2
.
.
.

If yes i would like to know how Jmeter picks these values. Also what
should be the values set for:
1. Allow quoted data
2. Recycle on EOF
3. Stop thread on EOF
4. Sharing mode

Kindly do the needful.

Regards,
Akshata


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: csv Data Set Config

2008-10-15 Thread Anthony Chadszinow
Here's a link to the true rules of the CSV format 
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm


The format you specify sounds fine.

I think you can do the test actions you mention in two ways.  First is a 
loop within a single test plan so one thread of jmeter does all the 
logging in as the X number of users in the CSV file.  Then that test can 
run concurrently so you get lots of the same users logging in concurrently.


Another way I believe is each thread running can grab a different user 
from the CSV file and perform the actions you listed as that user alone.


How did you want to test this application?

Chad

akshata s.m. wrote:

Hello,

I have 5 http requests which perform Login, display homepage and logout.

For my application, i want to login as user1, execute the samplers and logout.
And then login as user2 repeat the process and logout.

I am trying to use the CSV Data Set Config for my application to login as 
different users but one after the other.
I have a csvdata.txt file at the location of my jmx file. I would like to know the format of the csv file. 


Should the username and password value pairs be in a single line? say..

user1,pwd1
user2,pwd2
.
.
.

If yes i would like to know how Jmeter picks these values. Also what should be 
the values set for:
1. Allow quoted data
2. Recycle on EOF
3. Stop thread on EOF
4. Sharing mode

Kindly do the needful.

Regards,
Akshata


  
  


--
Anthony Chadszinow
MySource Classic Lead Developer

Squiz
92 Jarrett St Leichhardt, Sydney NSW, Australia 2040 
t:13000 SQUIZ ( Support )

t:8507 9900 / 1300 130 661
f:8507 9988
e:[EMAIL PROTECTED]
w:www.matrix.squiz.net
w:www.squiz.net

Sydney  |  Melbourne  |  Canberra  |  Hobart  |  Wellington  |  London 

Open Source  - Own it  -  Squiz.net 




IMPORTANT:This email (and any attachments) is commercial-in-confidence and
or may be legally privileged and must not be forwarded, copied or shared
without express permission from Squiz. If you are not the intended
recipient, you may not legally copy, disclose or use the contents in any way
and you should 
contact [EMAIL PROTECTED] immediately and destroy this message and any

attachments. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data set config - getting data from file via ftp

2008-10-10 Thread sebb
On 10/10/2008, shigella Gazeta.pl <[EMAIL PROTECTED]> wrote:
> Hello,
>  We would like to use CSV file with variables from ftp server.

Are you trying to use the CSV file to provide the login details?

>  We tried to find adequate options to enter password, but it won't work (the
>  only effect was disabled account).
>  How should it be done?

I suggest starting with a fixed name and password.
If that works, then replace them with variables defined on the test plan.
If that works, then use the CSV file to define the variables.

Use the Debug Sampler + Tree View Listener to display values of variables.

>  Thanks
>
> Shigella
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data Set config sharing mode issue

2008-08-13 Thread James Hill
Well that'll teach me to post before having enough coffee in the morning.

Apologies, thought it was for the sampler, rather than for the thread. Of
course it's using it twice each time because there are two threads.

On Thu, Aug 14, 2008 at 11:21 AM, sebb <[EMAIL PROTECTED]> wrote:

> On 14/08/2008, James Hill <[EMAIL PROTECTED]> wrote:
> > Hi all.
> >
> >  Not sure if anyone has noticed this or not, but something has shown up
> in
> >  our testing recently with the CSV Data Set config element. When we set
> the
> >  sharing mode to current thread and kick off a run with two threads, the
> >  sampler (in this case a WebService(SOAP) Request) is using the same row
> from
> >  the data file twice i.e. when the sampler is required to grab data from
> the
> >  file it's using a row twice, once for each thread.
>
> That's how it's supposed to work - "current thread" means the file is
> shared with the current thread only, i.e. each thread reads the file
> separately.
>
> >  When we change it to All
> >  threads the problem disappears and the rows in the data file are
> accessed
> >  sequentially by each thread.
> >
> >  As an aside, we're using the data file to hold data for creating users
> in
> >  our application though I'm starting to think a counter and some variable
> >  names might be a better way of doing it. Certainly less load intensive
> once
> >  we move out of proof of concept and really start hammering the app.
>
> It may be less intensive, but probably not much.
>
> The main advantage is that there is no need to create the data file.
>
> CSV Dataset (or the StringFromFile function) is particularly useful
> for data that is difficult to generate at run-time.
>
> >  Has anyone else seen this problem? Should we be setting sharing mode to
> >  current thread group instead?
>
> That's equivalent to All threads (unless you are using the same file
> in multiple thread groups).
>
> >  Using JMeter version 2.3.2 r665936.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: CSV Data Set config sharing mode issue

2008-08-13 Thread sebb
On 14/08/2008, James Hill <[EMAIL PROTECTED]> wrote:
> Hi all.
>
>  Not sure if anyone has noticed this or not, but something has shown up in
>  our testing recently with the CSV Data Set config element. When we set the
>  sharing mode to current thread and kick off a run with two threads, the
>  sampler (in this case a WebService(SOAP) Request) is using the same row from
>  the data file twice i.e. when the sampler is required to grab data from the
>  file it's using a row twice, once for each thread.

That's how it's supposed to work - "current thread" means the file is
shared with the current thread only, i.e. each thread reads the file
separately.

>  When we change it to All
>  threads the problem disappears and the rows in the data file are accessed
>  sequentially by each thread.
>
>  As an aside, we're using the data file to hold data for creating users in
>  our application though I'm starting to think a counter and some variable
>  names might be a better way of doing it. Certainly less load intensive once
>  we move out of proof of concept and really start hammering the app.

It may be less intensive, but probably not much.

The main advantage is that there is no need to create the data file.

CSV Dataset (or the StringFromFile function) is particularly useful
for data that is difficult to generate at run-time.

>  Has anyone else seen this problem? Should we be setting sharing mode to
>  current thread group instead?

That's equivalent to All threads (unless you are using the same file
in multiple thread groups).

>  Using JMeter version 2.3.2 r665936.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data Set Config

2007-09-26 Thread ramaj

hi

It's working..
by using "{" instread of "("

thnx

regards,
ramj






Arumugam Vallimuthu wrote:
> 
> Hi,
> 
> Instead of using like this " Variables Names-'USER,PASS' "
> 
> you can try with this: Variable Names - USER,PASS
> 
> and Send the request like this (use the *{* instead of *)*) j_username
>   
> ${USER}
> j_password   
> ${PASS}
> 
> 
> 
> 
> Make sure you have save the CSV file in the same location where you have 
> stored the test plan
> 
> Regards
> Aru
> 
> ramaj wrote:
>> hello,
>>
>> Currently i am using JMETER for Stress Testing for Jetspeed.
>>
>> CSV Data set Config use for multiple users.
>> But ,i am not able to do that.
>> my procedure is:
>>
>> 1.Test Plan
>>---Thread Group
>> Loop Controller
>>   -HTTP cookie manager
>>   -HTTP Request Defaults
>>   -CSV Data Set Config
>> parameters-
>> Filename-users.txt  .(bin
>> directory of JMETER)
>> File encoding-
>> Variables Names-'USER,PASS'
>> Delimiter=,
>> Recycle on EOF-True
>>
>>   -HTTP request
>> Send Parameters with request...
>>  Name  value
>>  j_username   $(USER)
>>  j_password   $(PASS)
>>
>>
>>
>> But,if i run this test plan we get values as:
>> j_username=$(USER)
>> J_password=$(PASS)
>>
>> the value doesnot retrive from file respectively.
>>
>> In file users.txt
>> data in this format:   abc,[EMAIL PROTECTED],
>>
>>
>> pls,give me the solution,
>>
>> thanks 
>> ramj
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CSV-Data-Set-Config-tf4520820.html#a12896940
Sent from the JMeter - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data Set Config

2007-09-26 Thread ramaj

hello,

My CSV file is in same location where my test plan saved.

No result after changing ..USER,PASS

Doesnot retrive values from CSV file(users.txt)

regards
ramj











Arumugam Vallimuthu wrote:
> 
> Hi,
> 
> Instead of using like this " Variables Names-'USER,PASS' "
> 
> you can try with this: Variable Names - USER,PASS
> 
> Make sure you have save the CSV file in the same location where you have 
> stored the test plan
> 
> Regards
> Aru
> 
> ramaj wrote:
>> hello,
>>
>> Currently i am using JMETER for Stress Testing for Jetspeed.
>>
>> CSV Data set Config use for multiple users.
>> But ,i am not able to do that.
>> my procedure is:
>>
>> 1.Test Plan
>>---Thread Group
>> Loop Controller
>>   -HTTP cookie manager
>>   -HTTP Request Defaults
>>   -CSV Data Set Config
>> parameters-
>> Filename-users.txt  .(bin
>> directory of JMETER)
>> File encoding-
>> Variables Names-'USER,PASS'
>> Delimiter=,
>> Recycle on EOF-True
>>
>>   -HTTP request
>> Send Parameters with request...
>>  Name  value
>>  j_username   $(USER)
>>  j_password   $(PASS)
>>
>>
>>
>> But,if i run this test plan we get values as:
>> j_username=$(USER)
>> J_password=$(PASS)
>>
>> the value doesnot retrive from file respectively.
>>
>> In file users.txt
>> data in this format:   abc,[EMAIL PROTECTED],
>>
>>
>> pls,give me the solution,
>>
>> thanks 
>> ramj
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CSV-Data-Set-Config-tf4520820.html#a12896842
Sent from the JMeter - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data Set Config

2007-09-26 Thread Arumugam Vallimuthu

Hi,

Instead of using like this " Variables Names-'USER,PASS' "

you can try with this: Variable Names - USER,PASS

and Send the request like this (use the *{* instead of *)*) j_username  
 ${USER}
  j_password   
${PASS}




Make sure you have save the CSV file in the same location where you have 
stored the test plan


Regards
Aru

ramaj wrote:

hello,

Currently i am using JMETER for Stress Testing for Jetspeed.

CSV Data set Config use for multiple users.
But ,i am not able to do that.
my procedure is:

1.Test Plan
   ---Thread Group
Loop Controller
  -HTTP cookie manager
  -HTTP Request Defaults
  -CSV Data Set Config
parameters-
Filename-users.txt  .(bin
directory of JMETER)
File encoding-
Variables Names-'USER,PASS'
Delimiter=,
Recycle on EOF-True

  -HTTP request
Send Parameters with request...
 Name  value
 j_username   $(USER)
 j_password   $(PASS)



But,if i run this test plan we get values as:
j_username=$(USER)
J_password=$(PASS)

the value doesnot retrive from file respectively.

In file users.txt
data in this format:   abc,[EMAIL PROTECTED],


pls,give me the solution,

thanks 
ramj
  




Re: CSV Data Set Config

2007-09-26 Thread Arumugam Vallimuthu

Hi,

Instead of using like this " Variables Names-'USER,PASS' "

you can try with this: Variable Names - USER,PASS

Make sure you have save the CSV file in the same location where you have 
stored the test plan


Regards
Aru

ramaj wrote:

hello,

Currently i am using JMETER for Stress Testing for Jetspeed.

CSV Data set Config use for multiple users.
But ,i am not able to do that.
my procedure is:

1.Test Plan
   ---Thread Group
Loop Controller
  -HTTP cookie manager
  -HTTP Request Defaults
  -CSV Data Set Config
parameters-
Filename-users.txt  .(bin
directory of JMETER)
File encoding-
Variables Names-'USER,PASS'
Delimiter=,
Recycle on EOF-True

  -HTTP request
Send Parameters with request...
 Name  value
 j_username   $(USER)
 j_password   $(PASS)



But,if i run this test plan we get values as:
j_username=$(USER)
J_password=$(PASS)

the value doesnot retrive from file respectively.

In file users.txt
data in this format:   abc,[EMAIL PROTECTED],


pls,give me the solution,

thanks 
ramj
  




Re: csv data set config

2007-08-09 Thread sebb
Each thread reads the next line from the file.

On 09/08/07, tiffany <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> How's the csv data set config works with the file? For example, if I set the
> thread=2 and then the loop = 3, how is the csv data set config reads the
> file?
>
> File
> 
> A,B,C
> D,E,F
> G,H,I
> J,K,L
> M,N,O
> P,Q,R
>
> Thread=2, loop=3, so two users will run the test 3 times, i.e 6 samples, is
> that the csv data set config will read 6 rows of the file?
> --
> View this message in context: 
> http://www.nabble.com/csv-data-set-config-tf4244342.html#a12078051
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data set config problems

2007-03-27 Thread sebb

In that case, either variable is misspelt, or there is some other
error  - check jmeter.log.

On 27/03/07, Josh Feldman <[EMAIL PROTECTED]> wrote:

I am using the csv data set in the sampler not in the request default.

The sampler is not picking up the variable.

Josh

-Original Message-
From: sebb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 1:08 PM
To: JMeter Users List
Subject: Re: CSV Data set config problems

CSV DataSet does not read from the file until after Config elements
such as the HTTP Request default test element, so the variable is not
available until too late.

CSV Dataset is intended for samplers that need lots of variable data.

Best to use properties instead, and refer to them with the __P()
function on the HTTP RD element.

Properties can be defined on the command-line, in jmeter.properties or
in user.properties.

S.

On 27/03/07, Josh Feldman <[EMAIL PROTECTED]> wrote:
> Yeah that was a typo. This is what is set up
>
> Thread Group
>http request default
>CSV Data set config
>http sampler
>View results Tree
>
> no controllers.
>
> -Original Message-
> From: Christensen, Alan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 27, 2007 12:24 PM
> To: JMeter Users List
> Subject: RE: CSV Data set config problems
>
> I am assuming that the difference between the variable names (terms)
and
> the $(term) is a typo.  If not, then you need to fix this.
>
> Is the csv configuration element within the loop containing the
> reference?
>
> -Original Message-
> From: Josh Feldman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 27, 2007 9:05 AM
> To: JMeter Users List
> Subject: CSV Data set config problems
>
> I have used this function in the past. Going back the scripts that
were
> working, currently are not.
>
> I am working from the GUI.
>
> I set up the CSV Data set config:
>
> Filename = abc.csv
> Variable names = terms
> Delimiter = ,
> EOF = true
>
> In the http sampler I have the parameter set q = ${term}
>
> I have the file abc.csv in the jmeter bin directory. ABC is a dummy
> file, I made in excel: A on one line, B on the second, and so forth.
> Saved in csv format.
>
> When I run the script the request is GET
> http://www.google.com/search?q=${terms}, and it doesn't seem to be
> reading the file.
>
> I downloaded Jmeter again, and got the same result.
>
> Any suggestions?
>
> Josh Feldman
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data set config problems

2007-03-27 Thread Josh Feldman
Yeah that was a typo. This is what is set up

Thread Group
http request default
CSV Data set config
http sampler
View results Tree

no controllers.

-Original Message-
From: Christensen, Alan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 12:24 PM
To: JMeter Users List
Subject: RE: CSV Data set config problems

I am assuming that the difference between the variable names (terms) and
the $(term) is a typo.  If not, then you need to fix this.

Is the csv configuration element within the loop containing the
reference? 

-Original Message-
From: Josh Feldman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 9:05 AM
To: JMeter Users List
Subject: CSV Data set config problems

I have used this function in the past. Going back the scripts that were
working, currently are not.

I am working from the GUI.

I set up the CSV Data set config:

Filename = abc.csv
Variable names = terms
Delimiter = ,
EOF = true

In the http sampler I have the parameter set q = ${term}

I have the file abc.csv in the jmeter bin directory. ABC is a dummy
file, I made in excel: A on one line, B on the second, and so forth.
Saved in csv format.

When I run the script the request is GET
http://www.google.com/search?q=${terms}, and it doesn't seem to be
reading the file.

I downloaded Jmeter again, and got the same result.

Any suggestions?

Josh Feldman

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data set config problems

2007-03-27 Thread Josh Feldman
I am using the csv data set in the sampler not in the request default. 

The sampler is not picking up the variable.

Josh

-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 1:08 PM
To: JMeter Users List
Subject: Re: CSV Data set config problems

CSV DataSet does not read from the file until after Config elements
such as the HTTP Request default test element, so the variable is not
available until too late.

CSV Dataset is intended for samplers that need lots of variable data.

Best to use properties instead, and refer to them with the __P()
function on the HTTP RD element.

Properties can be defined on the command-line, in jmeter.properties or
in user.properties.

S.

On 27/03/07, Josh Feldman <[EMAIL PROTECTED]> wrote:
> Yeah that was a typo. This is what is set up
>
> Thread Group
>http request default
>CSV Data set config
>http sampler
>View results Tree
>
> no controllers.
>
> -Original Message-
> From: Christensen, Alan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 27, 2007 12:24 PM
> To: JMeter Users List
> Subject: RE: CSV Data set config problems
>
> I am assuming that the difference between the variable names (terms)
and
> the $(term) is a typo.  If not, then you need to fix this.
>
> Is the csv configuration element within the loop containing the
> reference?
>
> -Original Message-
> From: Josh Feldman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 27, 2007 9:05 AM
> To: JMeter Users List
> Subject: CSV Data set config problems
>
> I have used this function in the past. Going back the scripts that
were
> working, currently are not.
>
> I am working from the GUI.
>
> I set up the CSV Data set config:
>
> Filename = abc.csv
> Variable names = terms
> Delimiter = ,
> EOF = true
>
> In the http sampler I have the parameter set q = ${term}
>
> I have the file abc.csv in the jmeter bin directory. ABC is a dummy
> file, I made in excel: A on one line, B on the second, and so forth.
> Saved in csv format.
>
> When I run the script the request is GET
> http://www.google.com/search?q=${terms}, and it doesn't seem to be
> reading the file.
>
> I downloaded Jmeter again, and got the same result.
>
> Any suggestions?
>
> Josh Feldman
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data set config problems

2007-03-27 Thread sebb

CSV DataSet does not read from the file until after Config elements
such as the HTTP Request default test element, so the variable is not
available until too late.

CSV Dataset is intended for samplers that need lots of variable data.

Best to use properties instead, and refer to them with the __P()
function on the HTTP RD element.

Properties can be defined on the command-line, in jmeter.properties or
in user.properties.

S.

On 27/03/07, Josh Feldman <[EMAIL PROTECTED]> wrote:

Yeah that was a typo. This is what is set up

Thread Group
   http request default
   CSV Data set config
   http sampler
   View results Tree

no controllers.

-Original Message-
From: Christensen, Alan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 12:24 PM
To: JMeter Users List
Subject: RE: CSV Data set config problems

I am assuming that the difference between the variable names (terms) and
the $(term) is a typo.  If not, then you need to fix this.

Is the csv configuration element within the loop containing the
reference?

-Original Message-
From: Josh Feldman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 27, 2007 9:05 AM
To: JMeter Users List
Subject: CSV Data set config problems

I have used this function in the past. Going back the scripts that were
working, currently are not.

I am working from the GUI.

I set up the CSV Data set config:

Filename = abc.csv
Variable names = terms
Delimiter = ,
EOF = true

In the http sampler I have the parameter set q = ${term}

I have the file abc.csv in the jmeter bin directory. ABC is a dummy
file, I made in excel: A on one line, B on the second, and so forth.
Saved in csv format.

When I run the script the request is GET
http://www.google.com/search?q=${terms}, and it doesn't seem to be
reading the file.

I downloaded Jmeter again, and got the same result.

Any suggestions?

Josh Feldman

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data set config problems

2007-03-27 Thread Christensen, Alan
I am assuming that the difference between the variable names (terms) and
the $(term) is a typo.  If not, then you need to fix this.

Is the csv configuration element within the loop containing the
reference? 

-Original Message-
From: Josh Feldman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 9:05 AM
To: JMeter Users List
Subject: CSV Data set config problems

I have used this function in the past. Going back the scripts that were
working, currently are not.

I am working from the GUI.

I set up the CSV Data set config:

Filename = abc.csv
Variable names = terms
Delimiter = ,
EOF = true

In the http sampler I have the parameter set q = ${term}

I have the file abc.csv in the jmeter bin directory. ABC is a dummy
file, I made in excel: A on one line, B on the second, and so forth.
Saved in csv format.

When I run the script the request is GET
http://www.google.com/search?q=${terms}, and it doesn't seem to be
reading the file.

I downloaded Jmeter again, and got the same result.

Any suggestions?

Josh Feldman

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV data set config inquiry

2006-04-24 Thread sebb
On 24/04/06, tere ventura <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I use CSV data set config in my tesr.
> I made a sample run wherein,
>-I created a csv file containing one record.
>-added the filename with the correct path.
>-and placed in a variable named "departure"
>-I did not put in any value in the delimeter.
>
> The test successfully read my csv file and captured the value I specified.
>
> I tried doing the same thing again, though this time,
>-I added two columns in my file namely "auckland,dubai"
>-added variable names "departure,arrival" in this exact order.
>-I added this variables as parameter to my http request with the format
> "${departure}" and "${arrival}"
>-again, I did not specify any delimeter.
>
> This time it wasn't able to read any of my parameters, what it does is place
> the variable name I specified and not the contents of the variable.
> #What am I doing wrong here?

Dunno, should work.

Create a Bugzilla issue, attach the test plan, CSV data file and
jmeter.log and we will take a look at it.

> Also
> #how can I set CSV data set Config to read the next row in my csv file?

You can't ;-)

It just happens when the next record is needed, e.g. for another
thread or another loop.

> #can I use other files other than CSV? If so, how do I do it?
>

You can only use Delimited files, of which Comma-separated is an example.

You can use a different delimiter, so long as you tell CSV Data Set
what it is...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CSV Data Set Config

2006-02-07 Thread sebb
Are you sure the variables are being set up correctly?

Have you tried ${host} in another sampler?

If it works elsewhere, but not in JDBC Config, then this may be a bug,
so please create a Bugzilla issue if so.

On 06/02/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to use the "CSV Data Set Config" for reading lines from a file, and
> split them into variables.
> My problem is that these variables are not accepted as variables if I want
> to use such a variable in
> a "JDBC Connection Configuration" Config Element., e.g. ${host}
>
> Regards,
> Benny Rogiers
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV data set config

2005-11-30 Thread Chetana Anand

Yes 

With the relative path name its working fine now.

Thanks a lot.

Regards,
Chetana


-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 7:54 PM
To: JMeter Users List
Subject: Re: CSV data set config

JMeter 2.1.1 only supports relative paths.

The nightly build supports absolute paths as well.

Best to use / rather than \, as / works in both Unix and Windows
(except perhaps when a device name is involved).

S.
On 30/11/05, Bryn Evans <[EMAIL PROTECTED]> wrote:
> Forget the delimiter and the format of the file, that's not the problem.
>
> JMeter is simply not able to find your file.  When I move my data file to
force the error: I get the following in the log file:
>
>  ERROR - jmeter.config.CSVDataSet: Failed to read file:
\JMeterTestDataFiles\LineTestRequest.csv
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 13:37
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> Yeah on checking the JMeter log, it says FAILED TO READ THE FILE ...
>
> Is there a problem in the file path being given?
>
> Ex: D:\Test_Scripts\input.csv
>
> Or is there any other reason why the file is not being read.
>
> The input csv file is of this format
>
> User1,pass1
> User2,pass2
>
> If we do not specify the Delimiter is there any problem as such.
>
> I am totally lost
>
> Thanks in advance,
>
> Regards,
> Chetana
>
>
>
>
>
> -Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 5:04 PM
> To: JMeter Users List
> Subject: Re: CSV data set config
>
> Check jmeter.log
>
> On 30/11/05, Chetana Anand <[EMAIL PROTECTED]> wrote:
> >
> > Yup..used the curly braces..
> >
> > -Original Message-
> > From: Bryn Evans [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 30, 2005 4:58 PM
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> > Are you using normal brackets() or curly {}.  You need the curly ones I
> > think.
> >
> > -Original Message-
> > From: Chetana Anand [mailto:[EMAIL PROTECTED]
> > Sent: 30 November 2005 11:21
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> >
> >
> > The contents of the file cannot be read(so can't be printed on the
> > console).. It is jus printing the "$(username)" and not the actual
value.
> >
> > -Original Message-
> > From: Bryn Evans [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 30, 2005 4:32 PM
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> > >> My doubt is whether "user defined variable" pre-processor has to be
> used
> > and
> > >> how.
> >
> > No, it doesn't.
> >
> > When you say it doesn't work, what actually happens?
> >
> > -Original Message-
> > From: Chetana Anand [mailto:[EMAIL PROTECTED]
> > Sent: 30 November 2005 11:00
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> >
> >
> > I tried what was mentioned. It doesn't work.
> > I jus have a CSV file with values for username and password. So my
> variables
> > will be "username,password" right? The default delimiter will be ','. I
am
> > using a Bean Shell sampler to print them.
> > My doubt is whether "user defined variable" pre-processor has to be used
> and
> > how.
> > Thanks in advance,
> > Chetana
> >
> > -Original Message-
> > From: Bryn Evans [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 30, 2005 4:06 PM
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> > The variables names are used to refer to the data fields being read from
> > each record in the CSV file.  Therefore if you have 3 fields in the CSV
> > file, you need 3 variable names in the "Variable Names (comma
delimited)"
> > field of the CSV Data Set Config element.  As it says, the variable
names
> > must be separated by a comma.
> >
> > So, for example, you may have: Test case name, InputA, InputB.
> >
> > You use the variables with ${variable name}, for example ${Test case
> name}.
> >
> > The character used to separate the fields in your CSV file must be
entered
> > into the "Delimiter" field of the CSV Data Set Config element.  I always
> use
> > comma, and that it the default value in the "Delimiter" field.
> &g

Re: CSV data set config

2005-11-30 Thread sebb
JMeter 2.1.1 only supports relative paths.

The nightly build supports absolute paths as well.

Best to use / rather than \, as / works in both Unix and Windows
(except perhaps when a device name is involved).

S.
On 30/11/05, Bryn Evans <[EMAIL PROTECTED]> wrote:
> Forget the delimiter and the format of the file, that's not the problem.
>
> JMeter is simply not able to find your file.  When I move my data file to 
> force the error: I get the following in the log file:
>
>  ERROR - jmeter.config.CSVDataSet: Failed to read file: 
> \JMeterTestDataFiles\LineTestRequest.csv
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 13:37
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> Yeah on checking the JMeter log, it says FAILED TO READ THE FILE ...
>
> Is there a problem in the file path being given?
>
> Ex: D:\Test_Scripts\input.csv
>
> Or is there any other reason why the file is not being read.
>
> The input csv file is of this format
>
> User1,pass1
> User2,pass2
>
> If we do not specify the Delimiter is there any problem as such.
>
> I am totally lost
>
> Thanks in advance,
>
> Regards,
> Chetana
>
>
>
>
>
> -Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 5:04 PM
> To: JMeter Users List
> Subject: Re: CSV data set config
>
> Check jmeter.log
>
> On 30/11/05, Chetana Anand <[EMAIL PROTECTED]> wrote:
> >
> > Yup..used the curly braces..
> >
> > -Original Message-
> > From: Bryn Evans [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 30, 2005 4:58 PM
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> > Are you using normal brackets() or curly {}.  You need the curly ones I
> > think.
> >
> > -Original Message-
> > From: Chetana Anand [mailto:[EMAIL PROTECTED]
> > Sent: 30 November 2005 11:21
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> >
> >
> > The contents of the file cannot be read(so can't be printed on the
> > console).. It is jus printing the "$(username)" and not the actual value.
> >
> > -Original Message-
> > From: Bryn Evans [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 30, 2005 4:32 PM
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> > >> My doubt is whether "user defined variable" pre-processor has to be
> used
> > and
> > >> how.
> >
> > No, it doesn't.
> >
> > When you say it doesn't work, what actually happens?
> >
> > -Original Message-
> > From: Chetana Anand [mailto:[EMAIL PROTECTED]
> > Sent: 30 November 2005 11:00
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> >
> >
> > I tried what was mentioned. It doesn't work.
> > I jus have a CSV file with values for username and password. So my
> variables
> > will be "username,password" right? The default delimiter will be ','. I am
> > using a Bean Shell sampler to print them.
> > My doubt is whether "user defined variable" pre-processor has to be used
> and
> > how.
> > Thanks in advance,
> > Chetana
> >
> > -Original Message-
> > From: Bryn Evans [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 30, 2005 4:06 PM
> > To: JMeter Users List
> > Subject: RE: CSV data set config
> >
> > The variables names are used to refer to the data fields being read from
> > each record in the CSV file.  Therefore if you have 3 fields in the CSV
> > file, you need 3 variable names in the "Variable Names (comma delimited)"
> > field of the CSV Data Set Config element.  As it says, the variable names
> > must be separated by a comma.
> >
> > So, for example, you may have: Test case name, InputA, InputB.
> >
> > You use the variables with ${variable name}, for example ${Test case
> name}.
> >
> > The character used to separate the fields in your CSV file must be entered
> > into the "Delimiter" field of the CSV Data Set Config element.  I always
> use
> > comma, and that it the default value in the "Delimiter" field.
> >
> > Hope this helps.  It really is quite easy, honest.
> >
> > Bryn.
> >
> > -Original Message-
> > From: Chetana Anand [mailto:[EMAIL PROTECTED]
> > Sent: 30 November 2005 10:23
> > To: jmeter-

RE: CSV data set config

2005-11-30 Thread Bryn Evans
Forget the delimiter and the format of the file, that's not the problem.

JMeter is simply not able to find your file.  When I move my data file to force 
the error: I get the following in the log file:

 ERROR - jmeter.config.CSVDataSet: Failed to read file: 
\JMeterTestDataFiles\LineTestRequest.csv 

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 13:37
To: JMeter Users List
Subject: RE: CSV data set config



Yeah on checking the JMeter log, it says FAILED TO READ THE FILE ...

Is there a problem in the file path being given?

Ex: D:\Test_Scripts\input.csv

Or is there any other reason why the file is not being read.

The input csv file is of this format 

User1,pass1
User2,pass2

If we do not specify the Delimiter is there any problem as such.

I am totally lost

Thanks in advance,

Regards,
Chetana





-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 5:04 PM
To: JMeter Users List
Subject: Re: CSV data set config

Check jmeter.log

On 30/11/05, Chetana Anand <[EMAIL PROTECTED]> wrote:
>
> Yup..used the curly braces..
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:58 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> Are you using normal brackets() or curly {}.  You need the curly ones I
> think.
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 11:21
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> The contents of the file cannot be read(so can't be printed on the
> console).. It is jus printing the "$(username)" and not the actual value.
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:32 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> >> My doubt is whether "user defined variable" pre-processor has to be
used
> and
> >> how.
>
> No, it doesn't.
>
> When you say it doesn't work, what actually happens?
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 11:00
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> I tried what was mentioned. It doesn't work.
> I jus have a CSV file with values for username and password. So my
variables
> will be "username,password" right? The default delimiter will be ','. I am
> using a Bean Shell sampler to print them.
> My doubt is whether "user defined variable" pre-processor has to be used
and
> how.
> Thanks in advance,
> Chetana
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:06 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> The variables names are used to refer to the data fields being read from
> each record in the CSV file.  Therefore if you have 3 fields in the CSV
> file, you need 3 variable names in the "Variable Names (comma delimited)"
> field of the CSV Data Set Config element.  As it says, the variable names
> must be separated by a comma.
>
> So, for example, you may have: Test case name, InputA, InputB.
>
> You use the variables with ${variable name}, for example ${Test case
name}.
>
> The character used to separate the fields in your CSV file must be entered
> into the "Delimiter" field of the CSV Data Set Config element.  I always
use
> comma, and that it the default value in the "Delimiter" field.
>
> Hope this helps.  It really is quite easy, honest.
>
> Bryn.
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 10:23
> To: jmeter-user@jakarta.apache.org
> Subject: CSV data set config
>
>
>
> Hi
>
> I wanted to know how exactly CSV data set config is used. What should be
> filled in for variables and delimiters?
>
>
>
> Thanks,
>
> Chetana
>
>
>
>
>
>
>
> **
>
> The information contained in, or attached to, this e-mail, contains
> confidential information and is intended solely for the use of the
> individual or entity to whom they are addressed and is subject to legal
> privilege. If you have received this e-mail in error you should notify the
> sender immediately by reply e-mail, delete the message from your system
and
> notify your system manager. Please do not copy it for any purpose, or
> disclose its contents to any other person. The views or opinions presented
> in this e-mail are solely those of 

RE: CSV data set config

2005-11-30 Thread Chetana Anand

Yeah on checking the JMeter log, it says FAILED TO READ THE FILE ...

Is there a problem in the file path being given?

Ex: D:\Test_Scripts\input.csv

Or is there any other reason why the file is not being read.

The input csv file is of this format 

User1,pass1
User2,pass2

If we do not specify the Delimiter is there any problem as such.

I am totally lost

Thanks in advance,

Regards,
Chetana





-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 5:04 PM
To: JMeter Users List
Subject: Re: CSV data set config

Check jmeter.log

On 30/11/05, Chetana Anand <[EMAIL PROTECTED]> wrote:
>
> Yup..used the curly braces..
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:58 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> Are you using normal brackets() or curly {}.  You need the curly ones I
> think.
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 11:21
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> The contents of the file cannot be read(so can't be printed on the
> console).. It is jus printing the "$(username)" and not the actual value.
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:32 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> >> My doubt is whether "user defined variable" pre-processor has to be
used
> and
> >> how.
>
> No, it doesn't.
>
> When you say it doesn't work, what actually happens?
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 11:00
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> I tried what was mentioned. It doesn't work.
> I jus have a CSV file with values for username and password. So my
variables
> will be "username,password" right? The default delimiter will be ','. I am
> using a Bean Shell sampler to print them.
> My doubt is whether "user defined variable" pre-processor has to be used
and
> how.
> Thanks in advance,
> Chetana
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:06 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> The variables names are used to refer to the data fields being read from
> each record in the CSV file.  Therefore if you have 3 fields in the CSV
> file, you need 3 variable names in the "Variable Names (comma delimited)"
> field of the CSV Data Set Config element.  As it says, the variable names
> must be separated by a comma.
>
> So, for example, you may have: Test case name, InputA, InputB.
>
> You use the variables with ${variable name}, for example ${Test case
name}.
>
> The character used to separate the fields in your CSV file must be entered
> into the "Delimiter" field of the CSV Data Set Config element.  I always
use
> comma, and that it the default value in the "Delimiter" field.
>
> Hope this helps.  It really is quite easy, honest.
>
> Bryn.
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 10:23
> To: jmeter-user@jakarta.apache.org
> Subject: CSV data set config
>
>
>
> Hi
>
> I wanted to know how exactly CSV data set config is used. What should be
> filled in for variables and delimiters?
>
>
>
> Thanks,
>
> Chetana
>
>
>
>
>
>
>
> **
>
> The information contained in, or attached to, this e-mail, contains
> confidential information and is intended solely for the use of the
> individual or entity to whom they are addressed and is subject to legal
> privilege. If you have received this e-mail in error you should notify the
> sender immediately by reply e-mail, delete the message from your system
and
> notify your system manager. Please do not copy it for any purpose, or
> disclose its contents to any other person. The views or opinions presented
> in this e-mail are solely those of the author and do not necessarily
> represent those of the company. The recipient should check this e-mail and
> any attachments for the presence of viruses. The company accepts no
> liability for any damage caused, directly or indirectly, by any virus
> transmitted in this email
>
> 
>
> -
> To unsubscribe, e-

Re: CSV data set config

2005-11-30 Thread sebb
Check jmeter.log

On 30/11/05, Chetana Anand <[EMAIL PROTECTED]> wrote:
>
> Yup..used the curly braces..
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:58 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> Are you using normal brackets() or curly {}.  You need the curly ones I
> think.
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 11:21
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> The contents of the file cannot be read(so can't be printed on the
> console).. It is jus printing the "$(username)" and not the actual value.
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:32 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> >> My doubt is whether "user defined variable" pre-processor has to be used
> and
> >> how.
>
> No, it doesn't.
>
> When you say it doesn't work, what actually happens?
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 11:00
> To: JMeter Users List
> Subject: RE: CSV data set config
>
>
>
> I tried what was mentioned. It doesn't work.
> I jus have a CSV file with values for username and password. So my variables
> will be "username,password" right? The default delimiter will be ','. I am
> using a Bean Shell sampler to print them.
> My doubt is whether "user defined variable" pre-processor has to be used and
> how.
> Thanks in advance,
> Chetana
>
> -Original Message-
> From: Bryn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 4:06 PM
> To: JMeter Users List
> Subject: RE: CSV data set config
>
> The variables names are used to refer to the data fields being read from
> each record in the CSV file.  Therefore if you have 3 fields in the CSV
> file, you need 3 variable names in the "Variable Names (comma delimited)"
> field of the CSV Data Set Config element.  As it says, the variable names
> must be separated by a comma.
>
> So, for example, you may have: Test case name, InputA, InputB.
>
> You use the variables with ${variable name}, for example ${Test case name}.
>
> The character used to separate the fields in your CSV file must be entered
> into the "Delimiter" field of the CSV Data Set Config element.  I always use
> comma, and that it the default value in the "Delimiter" field.
>
> Hope this helps.  It really is quite easy, honest.
>
> Bryn.
>
> -Original Message-
> From: Chetana Anand [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 10:23
> To: jmeter-user@jakarta.apache.org
> Subject: CSV data set config
>
>
>
> Hi
>
> I wanted to know how exactly CSV data set config is used. What should be
> filled in for variables and delimiters?
>
>
>
> Thanks,
>
> Chetana
>
>
>
>
>
>
>
> **
>
> The information contained in, or attached to, this e-mail, contains
> confidential information and is intended solely for the use of the
> individual or entity to whom they are addressed and is subject to legal
> privilege. If you have received this e-mail in error you should notify the
> sender immediately by reply e-mail, delete the message from your system and
> notify your system manager. Please do not copy it for any purpose, or
> disclose its contents to any other person. The views or opinions presented
> in this e-mail are solely those of the author and do not necessarily
> represent those of the company. The recipient should check this e-mail and
> any attachments for the presence of viruses. The company accepts no
> liability for any damage caused, directly or indirectly, by any virus
> transmitted in this email
>
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> **
>
> The information contained in, or attached to, this e-mail, contains
> confidential information and is intended solely for the use of the
> individual or entity to whom they are addressed and is subject to legal
> privilege. If you have received this e-mail in error you should notify the
> sender immediately by rep

RE: CSV data set config

2005-11-30 Thread Chetana Anand

Yup..used the curly braces..

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:58 PM
To: JMeter Users List
Subject: RE: CSV data set config

Are you using normal brackets() or curly {}.  You need the curly ones I
think.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 11:21
To: JMeter Users List
Subject: RE: CSV data set config



The contents of the file cannot be read(so can't be printed on the
console).. It is jus printing the "$(username)" and not the actual value.

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:32 PM
To: JMeter Users List
Subject: RE: CSV data set config

>> My doubt is whether "user defined variable" pre-processor has to be used
and
>> how.

No, it doesn't.  

When you say it doesn't work, what actually happens?

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 11:00
To: JMeter Users List
Subject: RE: CSV data set config



I tried what was mentioned. It doesn't work.
I jus have a CSV file with values for username and password. So my variables
will be "username,password" right? The default delimiter will be ','. I am
using a Bean Shell sampler to print them. 
My doubt is whether "user defined variable" pre-processor has to be used and
how.
Thanks in advance,
Chetana

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:06 PM
To: JMeter Users List
Subject: RE: CSV data set config

The variables names are used to refer to the data fields being read from
each record in the CSV file.  Therefore if you have 3 fields in the CSV
file, you need 3 variable names in the "Variable Names (comma delimited)"
field of the CSV Data Set Config element.  As it says, the variable names
must be separated by a comma.

So, for example, you may have: Test case name, InputA, InputB.

You use the variables with ${variable name}, for example ${Test case name}.

The character used to separate the fields in your CSV file must be entered
into the "Delimiter" field of the CSV Data Set Config element.  I always use
comma, and that it the default value in the "Delimiter" field.

Hope this helps.  It really is quite easy, honest.

Bryn.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 10:23
To: jmeter-user@jakarta.apache.org
Subject: CSV data set config



Hi

I wanted to know how exactly CSV data set config is used. What should be
filled in for variables and delimiters?

 

Thanks,

Chetana

 





**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---

RE: CSV data set config

2005-11-30 Thread Bryn Evans
Are you using normal brackets() or curly {}.  You need the curly ones I think.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 11:21
To: JMeter Users List
Subject: RE: CSV data set config



The contents of the file cannot be read(so can't be printed on the
console).. It is jus printing the "$(username)" and not the actual value.

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:32 PM
To: JMeter Users List
Subject: RE: CSV data set config

>> My doubt is whether "user defined variable" pre-processor has to be used
and
>> how.

No, it doesn't.  

When you say it doesn't work, what actually happens?

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 11:00
To: JMeter Users List
Subject: RE: CSV data set config



I tried what was mentioned. It doesn't work.
I jus have a CSV file with values for username and password. So my variables
will be "username,password" right? The default delimiter will be ','. I am
using a Bean Shell sampler to print them. 
My doubt is whether "user defined variable" pre-processor has to be used and
how.
Thanks in advance,
Chetana

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:06 PM
To: JMeter Users List
Subject: RE: CSV data set config

The variables names are used to refer to the data fields being read from
each record in the CSV file.  Therefore if you have 3 fields in the CSV
file, you need 3 variable names in the "Variable Names (comma delimited)"
field of the CSV Data Set Config element.  As it says, the variable names
must be separated by a comma.

So, for example, you may have: Test case name, InputA, InputB.

You use the variables with ${variable name}, for example ${Test case name}.

The character used to separate the fields in your CSV file must be entered
into the "Delimiter" field of the CSV Data Set Config element.  I always use
comma, and that it the default value in the "Delimiter" field.

Hope this helps.  It really is quite easy, honest.

Bryn.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 10:23
To: jmeter-user@jakarta.apache.org
Subject: CSV data set config



Hi

I wanted to know how exactly CSV data set config is used. What should be
filled in for variables and delimiters?

 

Thanks,

Chetana

 





**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**

The informat

RE: CSV data set config

2005-11-30 Thread Chetana Anand

The contents of the file cannot be read(so can't be printed on the
console).. It is jus printing the "$(username)" and not the actual value.

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:32 PM
To: JMeter Users List
Subject: RE: CSV data set config

>> My doubt is whether "user defined variable" pre-processor has to be used
and
>> how.

No, it doesn't.  

When you say it doesn't work, what actually happens?

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 11:00
To: JMeter Users List
Subject: RE: CSV data set config



I tried what was mentioned. It doesn't work.
I jus have a CSV file with values for username and password. So my variables
will be "username,password" right? The default delimiter will be ','. I am
using a Bean Shell sampler to print them. 
My doubt is whether "user defined variable" pre-processor has to be used and
how.
Thanks in advance,
Chetana

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:06 PM
To: JMeter Users List
Subject: RE: CSV data set config

The variables names are used to refer to the data fields being read from
each record in the CSV file.  Therefore if you have 3 fields in the CSV
file, you need 3 variable names in the "Variable Names (comma delimited)"
field of the CSV Data Set Config element.  As it says, the variable names
must be separated by a comma.

So, for example, you may have: Test case name, InputA, InputB.

You use the variables with ${variable name}, for example ${Test case name}.

The character used to separate the fields in your CSV file must be entered
into the "Delimiter" field of the CSV Data Set Config element.  I always use
comma, and that it the default value in the "Delimiter" field.

Hope this helps.  It really is quite easy, honest.

Bryn.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 10:23
To: jmeter-user@jakarta.apache.org
Subject: CSV data set config



Hi

I wanted to know how exactly CSV data set config is used. What should be
filled in for variables and delimiters?

 

Thanks,

Chetana

 





**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**

The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-

RE: CSV data set config

2005-11-30 Thread Bryn Evans
>> My doubt is whether "user defined variable" pre-processor has to be used and
>> how.

No, it doesn't.  

When you say it doesn't work, what actually happens?

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 11:00
To: JMeter Users List
Subject: RE: CSV data set config



I tried what was mentioned. It doesn't work.
I jus have a CSV file with values for username and password. So my variables
will be "username,password" right? The default delimiter will be ','. I am
using a Bean Shell sampler to print them. 
My doubt is whether "user defined variable" pre-processor has to be used and
how.
Thanks in advance,
Chetana

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:06 PM
To: JMeter Users List
Subject: RE: CSV data set config

The variables names are used to refer to the data fields being read from
each record in the CSV file.  Therefore if you have 3 fields in the CSV
file, you need 3 variable names in the "Variable Names (comma delimited)"
field of the CSV Data Set Config element.  As it says, the variable names
must be separated by a comma.

So, for example, you may have: Test case name, InputA, InputB.

You use the variables with ${variable name}, for example ${Test case name}.

The character used to separate the fields in your CSV file must be entered
into the "Delimiter" field of the CSV Data Set Config element.  I always use
comma, and that it the default value in the "Delimiter" field.

Hope this helps.  It really is quite easy, honest.

Bryn.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 10:23
To: jmeter-user@jakarta.apache.org
Subject: CSV data set config



Hi

I wanted to know how exactly CSV data set config is used. What should be
filled in for variables and delimiters?

 

Thanks,

Chetana

 





**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**

The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV data set config

2005-11-30 Thread Chetana Anand

I tried what was mentioned. It doesn't work.
I jus have a CSV file with values for username and password. So my variables
will be "username,password" right? The default delimiter will be ','. I am
using a Bean Shell sampler to print them. 
My doubt is whether "user defined variable" pre-processor has to be used and
how.
Thanks in advance,
Chetana

-Original Message-
From: Bryn Evans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 4:06 PM
To: JMeter Users List
Subject: RE: CSV data set config

The variables names are used to refer to the data fields being read from
each record in the CSV file.  Therefore if you have 3 fields in the CSV
file, you need 3 variable names in the "Variable Names (comma delimited)"
field of the CSV Data Set Config element.  As it says, the variable names
must be separated by a comma.

So, for example, you may have: Test case name, InputA, InputB.

You use the variables with ${variable name}, for example ${Test case name}.

The character used to separate the fields in your CSV file must be entered
into the "Delimiter" field of the CSV Data Set Config element.  I always use
comma, and that it the default value in the "Delimiter" field.

Hope this helps.  It really is quite easy, honest.

Bryn.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 10:23
To: jmeter-user@jakarta.apache.org
Subject: CSV data set config



Hi

I wanted to know how exactly CSV data set config is used. What should be
filled in for variables and delimiters?

 

Thanks,

Chetana

 





**

The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the
individual or entity to whom they are addressed and is subject to legal
privilege. If you have received this e-mail in error you should notify the
sender immediately by reply e-mail, delete the message from your system and
notify your system manager. Please do not copy it for any purpose, or
disclose its contents to any other person. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily
represent those of the company. The recipient should check this e-mail and
any attachments for the presence of viruses. The company accepts no
liability for any damage caused, directly or indirectly, by any virus
transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**

The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV data set config

2005-11-30 Thread Bryn Evans
The variables names are used to refer to the data fields being read from each 
record in the CSV file.  Therefore if you have 3 fields in the CSV file, you 
need 3 variable names in the "Variable Names (comma delimited)" field of the 
CSV Data Set Config element.  As it says, the variable names must be separated 
by a comma.

So, for example, you may have: Test case name, InputA, InputB.

You use the variables with ${variable name}, for example ${Test case name}.

The character used to separate the fields in your CSV file must be entered into 
the "Delimiter" field of the CSV Data Set Config element.  I always use comma, 
and that it the default value in the "Delimiter" field.

Hope this helps.  It really is quite easy, honest.

Bryn.

-Original Message-
From: Chetana Anand [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 10:23
To: jmeter-user@jakarta.apache.org
Subject: CSV data set config



Hi

I wanted to know how exactly CSV data set config is used. What should be
filled in for variables and delimiters?

 

Thanks,

Chetana

 





**

The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data Set Config

2005-08-17 Thread Sander Stevens
Yes, I agree about the part of relative paths. 
I try to solve this by making the path a variable in the User defined
variables. That will make it maintainable in my situation.

Indeed, I could copy the csv file to the .jmx dir.

-Sander 

-Original Message-
From: Michael Stover [mailto:[EMAIL PROTECTED] 
Sent: woensdag 17 augustus 2005 14:54
To: jmeter-user@jakarta.apache.org
Subject: RE: CSV Data Set Config

I'm not opposed to this - I can probably make the file server look for
an absolute path if the relative is not found.  But, the point of the
relative paths is that the days of a jmeter test being just a .jmx file
are pretty much gone.  Nowadays, any non-trivial test will likely have
one or more supporting files.  As a result, I want to move JMeter in a
direction where a "test script" is the whole deal - the .jmx plus all
supporting files.  

I want this so that A) remote testing can be simple and not require
setting up the target servers with all the supporting files before
running and B) so that test scripts can be packaged and transported
around without hassle.  This includes full support for the module
controller.  

If you make a test with an absolute pathname, that won't work on any
computer, thus the relative paths based on the location of the .jmx.  

For your situation, I'm not sure why it's "not possible".  If you like,
you can create a "testdata" directory under the dir where the .jmx is,
and if you are running jmeter via an automated script, I can't see why
it would be hard to copy the testdata to this directory.

-Mike

On Wed, 2005-08-17 at 13:59 +0200, Sander Stevens wrote:
> Thanks Mike.
> 
> Maybe a request to enhance the CSV Data Set Config so you can also use
a
> path? I store my scripts (jmx) and testdata separately (to create some
> order in the chaos...), but in this case it is not possible. If others
> have the same setup, it is maybe something to consider.
> 
> -Sander
> 
> -Original Message-
> From: Michael Stover [mailto:[EMAIL PROTECTED] 
> Sent: woensdag 17 augustus 2005 13:50
> To: jmeter-user@jakarta.apache.org
> Subject: RE: CSV Data Set Config
> 
> The component expects the file to be found relative to the directory
> where the .jmx is stored.
> 
> Skipping over empty columns sounds like a bug, I'll look at it today.
> 
> -Mike
> 
> On Wed, 2005-08-17 at 10:53 +0200, Sander Stevens wrote:
> > I encoutered the following:
> > 
> > The csv file should be in the folder where the jmx is located. A
path
> > (pointing the location of the file) is obviously (in my situation)
not
> > possible. Further more there is a problem with reading the csv file.
> If
> > some fields are empty, the CSV Data Set Config gets confused. When I
> > fill the empty fields with e.g. an 'x' (just to have something in
the
> > fields), it is working fine. 
> > 
> > Looks like the CSV Data Set Config is not working as expected. I
would
> > assume that empty fields ar eno problem and that I can use a path
for
> > the location of my csv file.
> > 
> > Am I right? Or am I missing something?
> > 
> > Sander 
> > 
> > -Original Message-
> > From: Sander Stevens 
> > Sent: woensdag 17 augustus 2005 9:50
> > To: jmeter-user@jakarta.apache.org
> > Subject: CSV Data Set Config
> > 
> > Hi,
> > 
> > I have some trouble with CSV Data Set Config and hoping that someone
> can
> > help me.
> > 
> > I added the CSV Data Set Config to my testplan. 
> > Entered the parameters as follows:
> > 
> > Filename: v:\testen\automation\testdata\tapis-history.csv
> > Variable names:
> > execute,testcase,description,errorcode,errordescription,ipaddress
> > Delimiter: ;
> > 
> > The variable are used later on in my testplan to execute test.
> > 
> > Nothing happens if I run the testplan and the message in the log
file
> > is:
> > 2005/08/17 09:30:26 ERROR - jmeter.config.CSVDataSet: Failed to read
> > file: v:\testen\automation\testdata\tapis-history.csv 
> > 
> > Strange, because the file is available.
> > 
> > I got the same configuration built up with User Parameters and that
is
> > working fine. Can open the file, fill the variables and run the
> > testplan.
> > 
> > Any ideas? Something I forgot to add maybe?
> > 
> > Thanks,
> > Sander Stevens
> > http://www.techtest.nl
> > 
> > 
> > 
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data Set Config

2005-08-17 Thread Michael Stover
I'm not opposed to this - I can probably make the file server look for
an absolute path if the relative is not found.  But, the point of the
relative paths is that the days of a jmeter test being just a .jmx file
are pretty much gone.  Nowadays, any non-trivial test will likely have
one or more supporting files.  As a result, I want to move JMeter in a
direction where a "test script" is the whole deal - the .jmx plus all
supporting files.  

I want this so that A) remote testing can be simple and not require
setting up the target servers with all the supporting files before
running and B) so that test scripts can be packaged and transported
around without hassle.  This includes full support for the module
controller.  

If you make a test with an absolute pathname, that won't work on any
computer, thus the relative paths based on the location of the .jmx.  

For your situation, I'm not sure why it's "not possible".  If you like,
you can create a "testdata" directory under the dir where the .jmx is,
and if you are running jmeter via an automated script, I can't see why
it would be hard to copy the testdata to this directory.

-Mike

On Wed, 2005-08-17 at 13:59 +0200, Sander Stevens wrote:
> Thanks Mike.
> 
> Maybe a request to enhance the CSV Data Set Config so you can also use a
> path? I store my scripts (jmx) and testdata separately (to create some
> order in the chaos...), but in this case it is not possible. If others
> have the same setup, it is maybe something to consider.
> 
> -Sander
> 
> -Original Message-
> From: Michael Stover [mailto:[EMAIL PROTECTED] 
> Sent: woensdag 17 augustus 2005 13:50
> To: jmeter-user@jakarta.apache.org
> Subject: RE: CSV Data Set Config
> 
> The component expects the file to be found relative to the directory
> where the .jmx is stored.
> 
> Skipping over empty columns sounds like a bug, I'll look at it today.
> 
> -Mike
> 
> On Wed, 2005-08-17 at 10:53 +0200, Sander Stevens wrote:
> > I encoutered the following:
> > 
> > The csv file should be in the folder where the jmx is located. A path
> > (pointing the location of the file) is obviously (in my situation) not
> > possible. Further more there is a problem with reading the csv file.
> If
> > some fields are empty, the CSV Data Set Config gets confused. When I
> > fill the empty fields with e.g. an 'x' (just to have something in the
> > fields), it is working fine. 
> > 
> > Looks like the CSV Data Set Config is not working as expected. I would
> > assume that empty fields ar eno problem and that I can use a path for
> > the location of my csv file.
> > 
> > Am I right? Or am I missing something?
> > 
> > Sander 
> > 
> > -Original Message-
> > From: Sander Stevens 
> > Sent: woensdag 17 augustus 2005 9:50
> > To: jmeter-user@jakarta.apache.org
> > Subject: CSV Data Set Config
> > 
> > Hi,
> > 
> > I have some trouble with CSV Data Set Config and hoping that someone
> can
> > help me.
> > 
> > I added the CSV Data Set Config to my testplan. 
> > Entered the parameters as follows:
> > 
> > Filename: v:\testen\automation\testdata\tapis-history.csv
> > Variable names:
> > execute,testcase,description,errorcode,errordescription,ipaddress
> > Delimiter: ;
> > 
> > The variable are used later on in my testplan to execute test.
> > 
> > Nothing happens if I run the testplan and the message in the log file
> > is:
> > 2005/08/17 09:30:26 ERROR - jmeter.config.CSVDataSet: Failed to read
> > file: v:\testen\automation\testdata\tapis-history.csv 
> > 
> > Strange, because the file is available.
> > 
> > I got the same configuration built up with User Parameters and that is
> > working fine. Can open the file, fill the variables and run the
> > testplan.
> > 
> > Any ideas? Something I forgot to add maybe?
> > 
> > Thanks,
> > Sander Stevens
> > http://www.techtest.nl
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data Set Config

2005-08-17 Thread Sander Stevens
Thanks Mike.

Maybe a request to enhance the CSV Data Set Config so you can also use a
path? I store my scripts (jmx) and testdata separately (to create some
order in the chaos...), but in this case it is not possible. If others
have the same setup, it is maybe something to consider.

-Sander

-Original Message-
From: Michael Stover [mailto:[EMAIL PROTECTED] 
Sent: woensdag 17 augustus 2005 13:50
To: jmeter-user@jakarta.apache.org
Subject: RE: CSV Data Set Config

The component expects the file to be found relative to the directory
where the .jmx is stored.

Skipping over empty columns sounds like a bug, I'll look at it today.

-Mike

On Wed, 2005-08-17 at 10:53 +0200, Sander Stevens wrote:
> I encoutered the following:
> 
> The csv file should be in the folder where the jmx is located. A path
> (pointing the location of the file) is obviously (in my situation) not
> possible. Further more there is a problem with reading the csv file.
If
> some fields are empty, the CSV Data Set Config gets confused. When I
> fill the empty fields with e.g. an 'x' (just to have something in the
> fields), it is working fine. 
> 
> Looks like the CSV Data Set Config is not working as expected. I would
> assume that empty fields ar eno problem and that I can use a path for
> the location of my csv file.
> 
> Am I right? Or am I missing something?
> 
> Sander 
> 
> -Original Message-
> From: Sander Stevens 
> Sent: woensdag 17 augustus 2005 9:50
> To: jmeter-user@jakarta.apache.org
> Subject: CSV Data Set Config
> 
> Hi,
> 
> I have some trouble with CSV Data Set Config and hoping that someone
can
> help me.
> 
> I added the CSV Data Set Config to my testplan. 
> Entered the parameters as follows:
> 
> Filename: v:\testen\automation\testdata\tapis-history.csv
> Variable names:
> execute,testcase,description,errorcode,errordescription,ipaddress
> Delimiter: ;
> 
> The variable are used later on in my testplan to execute test.
> 
> Nothing happens if I run the testplan and the message in the log file
> is:
> 2005/08/17 09:30:26 ERROR - jmeter.config.CSVDataSet: Failed to read
> file: v:\testen\automation\testdata\tapis-history.csv 
> 
> Strange, because the file is available.
> 
> I got the same configuration built up with User Parameters and that is
> working fine. Can open the file, fill the variables and run the
> testplan.
> 
> Any ideas? Something I forgot to add maybe?
> 
> Thanks,
> Sander Stevens
> http://www.techtest.nl
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data Set Config

2005-08-17 Thread Michael Stover
The component expects the file to be found relative to the directory
where the .jmx is stored.

Skipping over empty columns sounds like a bug, I'll look at it today.

-Mike

On Wed, 2005-08-17 at 10:53 +0200, Sander Stevens wrote:
> I encoutered the following:
> 
> The csv file should be in the folder where the jmx is located. A path
> (pointing the location of the file) is obviously (in my situation) not
> possible. Further more there is a problem with reading the csv file. If
> some fields are empty, the CSV Data Set Config gets confused. When I
> fill the empty fields with e.g. an 'x' (just to have something in the
> fields), it is working fine. 
> 
> Looks like the CSV Data Set Config is not working as expected. I would
> assume that empty fields ar eno problem and that I can use a path for
> the location of my csv file.
> 
> Am I right? Or am I missing something?
> 
> Sander 
> 
> -Original Message-
> From: Sander Stevens 
> Sent: woensdag 17 augustus 2005 9:50
> To: jmeter-user@jakarta.apache.org
> Subject: CSV Data Set Config
> 
> Hi,
> 
> I have some trouble with CSV Data Set Config and hoping that someone can
> help me.
> 
> I added the CSV Data Set Config to my testplan. 
> Entered the parameters as follows:
> 
> Filename: v:\testen\automation\testdata\tapis-history.csv
> Variable names:
> execute,testcase,description,errorcode,errordescription,ipaddress
> Delimiter: ;
> 
> The variable are used later on in my testplan to execute test.
> 
> Nothing happens if I run the testplan and the message in the log file
> is:
> 2005/08/17 09:30:26 ERROR - jmeter.config.CSVDataSet: Failed to read
> file: v:\testen\automation\testdata\tapis-history.csv 
> 
> Strange, because the file is available.
> 
> I got the same configuration built up with User Parameters and that is
> working fine. Can open the file, fill the variables and run the
> testplan.
> 
> Any ideas? Something I forgot to add maybe?
> 
> Thanks,
> Sander Stevens
> http://www.techtest.nl
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CSV Data Set Config

2005-08-17 Thread Sander Stevens
I encoutered the following:

The csv file should be in the folder where the jmx is located. A path
(pointing the location of the file) is obviously (in my situation) not
possible. Further more there is a problem with reading the csv file. If
some fields are empty, the CSV Data Set Config gets confused. When I
fill the empty fields with e.g. an 'x' (just to have something in the
fields), it is working fine. 

Looks like the CSV Data Set Config is not working as expected. I would
assume that empty fields ar eno problem and that I can use a path for
the location of my csv file.

Am I right? Or am I missing something?

Sander 

-Original Message-
From: Sander Stevens 
Sent: woensdag 17 augustus 2005 9:50
To: jmeter-user@jakarta.apache.org
Subject: CSV Data Set Config

Hi,

I have some trouble with CSV Data Set Config and hoping that someone can
help me.

I added the CSV Data Set Config to my testplan. 
Entered the parameters as follows:

Filename: v:\testen\automation\testdata\tapis-history.csv
Variable names:
execute,testcase,description,errorcode,errordescription,ipaddress
Delimiter: ;

The variable are used later on in my testplan to execute test.

Nothing happens if I run the testplan and the message in the log file
is:
2005/08/17 09:30:26 ERROR - jmeter.config.CSVDataSet: Failed to read
file: v:\testen\automation\testdata\tapis-history.csv 

Strange, because the file is available.

I got the same configuration built up with User Parameters and that is
working fine. Can open the file, fill the variables and run the
testplan.

Any ideas? Something I forgot to add maybe?

Thanks,
Sander Stevens
http://www.techtest.nl



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]