You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Höfer, Ulrich <Ho...@juris.de> on 2008/04/09 16:48:50 UTC

User Parameters, problems with "next"

User Parameters, problems with "next"

 

Hi,

 

I need help about "User Parameters" .  With ${__CSVRead(portal/suchbegriffe.txt,0)} I have no problems. No I want to read the next line and I tried  ${__CSVRead(portal/suchbegriffe.txt,next)} and then ${__CSVRead(portal/suchbegriffe.txt,next())} without access?

 

What is wrong?

What can I do?

 

Greetings

 

 

Ulrich Höfer 
Systementwicklung 

juris GmbH 
Abteilung IT 
Gutenbergstraße 23 
66117 Saarbrücken 
Telefon: 0681 5866-0, Durchwahl -0 
Telefax: 0681 5866-239 
E-Mail: hoefer@juris.de <ma...@juris.de>  
www.juris.de <http://www.juris.de>  

Geschäftssitz: Saarbrücken, Amtsgericht Saarbrücken, HRB 8485 
Geschäftsführer: Dr. h. c. Gerhard Käfer (Sprecher) und Samuel van Oostrom 
Aufsichtsratsvorsitzender: Ministerialdirektor Gerrit Stein 


Re: User Parameters, problems with "next"

Posted by sebb <se...@gmail.com>.
On 10/04/2008, Höfer, Ulrich <Ho...@juris.de> wrote:
> Hi sebb,
>
>  thx for your answer. Could you send me a little ".jmx"-example please?
>
>  In every thread I want to CSVRead the file search.txt three times (with a repeat-controller) and then I'll do a google-search.
>  The content of search.txt is for example:
>  mouse
>  house
>  nice
>  town
>  meeting
>  and so on ...
>

No need for a repeat controller:

Define 3 variables as follows:

VAR1   ${__CSVRead(portal/suchbegriffe.txt,0)}${__CSVRead(portal/suchbegriffe.txt,next)}
VAR2   ${__CSVRead(portal/suchbegriffe.txt,0)}${__CSVRead(portal/suchbegriffe.txt,next)}
VAR3   ${__CSVRead(portal/suchbegriffe.txt,0)}${__CSVRead(portal/suchbegriffe.txt,next)}


>  Greetings
>
>  Ulrich Höfer
>  Systementwicklung
>
>  juris GmbH
>  Abteilung IT
>  Gutenbergstraße 23
>  66117 Saarbrücken
>  Telefon: 0681 5866-0, Durchwahl -0
>  Telefax: 0681 5866-239
>  E-Mail: hoefer@juris.de
>
> www.juris.de
>
>  Geschäftssitz: Saarbrücken, Amtsgericht Saarbrücken, HRB 8485
>  Geschäftsführer: Dr. h. c. Gerhard Käfer (Sprecher) und Samuel van Oostrom
>  Aufsichtsratsvorsitzender: Ministerialdirektor Gerrit Stein
>
>
> -----Ursprüngliche Nachricht-----
>  Von: sebb [mailto:sebbaz@gmail.com]
>  Gesendet: Mittwoch, 9. April 2008 17:17
>  An: JMeter Users List
>  Betreff: Re: User Parameters, problems with "next"
>
>
>  On 09/04/2008, Höfer, Ulrich <Ho...@juris.de> wrote:
>  > User Parameters, problems with "next"
>  >
>  >
>  >
>  >  Hi,
>  >
>  >
>  >
>  >  I need help about "User Parameters" .  With ${__CSVRead(portal/suchbegriffe.txt,0)} I have no problems. No I want to read the next line and I tried  ${__CSVRead(portal/suchbegriffe.txt,next)} and then ${__CSVRead(portal/suchbegriffe.txt,next())} without access?
>  >
>
>  next and next() merely advance to the next line - they do not read any data.
>
>  You may find the CVS Dataset element easier to use.
>
>
>  >
>  >
>  >  What is wrong?
>  >
>  >  What can I do?
>  >
>  >
>  >
>  >  Greetings
>  >
>  >
>  >
>  >
>  >
>  >  Ulrich Höfer
>  >  Systementwicklung
>  >
>  >  juris GmbH
>  >  Abteilung IT
>  >  Gutenbergstraße 23
>  >  66117 Saarbrücken
>  >  Telefon: 0681 5866-0, Durchwahl -0
>  >  Telefax: 0681 5866-239
>  >  E-Mail: hoefer@juris.de <ma...@juris.de>
>  >  www.juris.de <http://www.juris.de>
>  >
>  >  Geschäftssitz: Saarbrücken, Amtsgericht Saarbrücken, HRB 8485
>  >  Geschäftsführer: Dr. h. c. Gerhard Käfer (Sprecher) und Samuel van Oostrom
>  >  Aufsichtsratsvorsitzender: Ministerialdirektor Gerrit Stein
>  >
>  >
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


AW: User Parameters, problems with "next"

Posted by Höfer, Ulrich <Ho...@juris.de>.
Hi sebb,

thx for your answer. Could you send me a little ".jmx"-example please?

In every thread I want to CSVRead the file search.txt three times (with a repeat-controller) and then I'll do a google-search.
The content of search.txt is for example: 
mouse
house
nice
town
meeting
and so on ...

Greetings  

Ulrich Höfer 
Systementwicklung
 
juris GmbH
Abteilung IT
Gutenbergstraße 23
66117 Saarbrücken
Telefon: 0681 5866-0, Durchwahl -0
Telefax: 0681 5866-239
E-Mail: hoefer@juris.de
www.juris.de
 
Geschäftssitz: Saarbrücken, Amtsgericht Saarbrücken, HRB 8485
Geschäftsführer: Dr. h. c. Gerhard Käfer (Sprecher) und Samuel van Oostrom
Aufsichtsratsvorsitzender: Ministerialdirektor Gerrit Stein

-----Ursprüngliche Nachricht-----
Von: sebb [mailto:sebbaz@gmail.com] 
Gesendet: Mittwoch, 9. April 2008 17:17
An: JMeter Users List
Betreff: Re: User Parameters, problems with "next"

On 09/04/2008, Höfer, Ulrich <Ho...@juris.de> wrote:
> User Parameters, problems with "next"
>
>
>
>  Hi,
>
>
>
>  I need help about "User Parameters" .  With ${__CSVRead(portal/suchbegriffe.txt,0)} I have no problems. No I want to read the next line and I tried  ${__CSVRead(portal/suchbegriffe.txt,next)} and then ${__CSVRead(portal/suchbegriffe.txt,next())} without access?
>

next and next() merely advance to the next line - they do not read any data.

You may find the CVS Dataset element easier to use.


>
>
>  What is wrong?
>
>  What can I do?
>
>
>
>  Greetings
>
>
>
>
>
>  Ulrich Höfer
>  Systementwicklung
>
>  juris GmbH
>  Abteilung IT
>  Gutenbergstraße 23
>  66117 Saarbrücken
>  Telefon: 0681 5866-0, Durchwahl -0
>  Telefax: 0681 5866-239
>  E-Mail: hoefer@juris.de <ma...@juris.de>
>  www.juris.de <http://www.juris.de>
>
>  Geschäftssitz: Saarbrücken, Amtsgericht Saarbrücken, HRB 8485
>  Geschäftsführer: Dr. h. c. Gerhard Käfer (Sprecher) und Samuel van Oostrom
>  Aufsichtsratsvorsitzender: Ministerialdirektor Gerrit Stein
>
>

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


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


Re: User Parameters, problems with "next"

Posted by sebb <se...@gmail.com>.
On 09/04/2008, Höfer, Ulrich <Ho...@juris.de> wrote:
> User Parameters, problems with "next"
>
>
>
>  Hi,
>
>
>
>  I need help about "User Parameters" .  With ${__CSVRead(portal/suchbegriffe.txt,0)} I have no problems. No I want to read the next line and I tried  ${__CSVRead(portal/suchbegriffe.txt,next)} and then ${__CSVRead(portal/suchbegriffe.txt,next())} without access?
>

next and next() merely advance to the next line - they do not read any data.

You may find the CVS Dataset element easier to use.


>
>
>  What is wrong?
>
>  What can I do?
>
>
>
>  Greetings
>
>
>
>
>
>  Ulrich Höfer
>  Systementwicklung
>
>  juris GmbH
>  Abteilung IT
>  Gutenbergstraße 23
>  66117 Saarbrücken
>  Telefon: 0681 5866-0, Durchwahl -0
>  Telefax: 0681 5866-239
>  E-Mail: hoefer@juris.de <ma...@juris.de>
>  www.juris.de <http://www.juris.de>
>
>  Geschäftssitz: Saarbrücken, Amtsgericht Saarbrücken, HRB 8485
>  Geschäftsführer: Dr. h. c. Gerhard Käfer (Sprecher) und Samuel van Oostrom
>  Aufsichtsratsvorsitzender: Ministerialdirektor Gerrit Stein
>
>

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