Hi, Tried that already and it doesn't work.
I can't use a file, as I want to dynamically set the variable's, as a result form a regex extractor from a search result. eg, strip out a <a href=".." out of a page, and use this URL to launch a next sample request. (I want some sort of "for each" controller. My idea to solve this is let the regex postprocessor pull all the links out of a result, put them in a variable, with the extension equal to a number, and then walk through this list using the number of the result. I made a small enhancemet on the postprocessor regex extractor to strip out all the links I want, but got stuck on this part. I tried to find in the source where the replacemnets are made, but cannot find it. It seems that all the variables which are used are put in some list, and I supoose that it goes wrong there already (i think the variable userpassword_${countNumber} is placed litteraly in this list, and that this list is used to replace variables during runtime. I cannot figure out yet where this all happens, and how it could be solved. Any hints on that are also welcome) -----Original Message----- From: BAZLEY, Sebastian [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 12:09 To: 'JMeter Users List' Subject: RE: defining a varibale in a variable? Might be worth trying with an intermediate variable: TEMP = userpassword_${countNumber} PASSWORD = ${TEMP} Not tested. Let us know if it does...! If this does not work, then you could always use StringFromFile or CSVRead to set up the two variables. S. -----Original Message----- From: Smits.Dolf [mailto:[EMAIL PROTECTED] Sent: 10 January 2004 18:13 To: 'JMeter Users List' (E-mail) Subject: defining a varibale in a variable? Hi All, I try to have a sort of multi-layer variable. I mean something like ' password=${userpassword_${countNumber}} ' this should be interpreted as follows: if countNumber equals 8, and userpassword_8 equals "secret" i want the value of the vaiable userpassword_8 substituted so ${countNumber} needs to be interpreted first, and then the new variable userpassword_8. so it should be translated to ' password=secret ' It doesn't work like this. Is there a solution/workaround possible to get this ( i tried the javascript function, but it either not works, or throws al kind of exceptions) Thansk for any hints/help Dolf Smits Dolf Smits Consultant Meta Directory Solutions Siemens Nederland N.V. ICS SBD MDS Bezoekadres Prinses Beatrixlaan 26 Den Haag Correspondentieadres Postbus 16068 NL-2500 BB Den Haag 070 333 3654 070 333 2801 06 55844837 [EMAIL PROTECTED] www.siemens.nl Deze e-mail is uitsluitend bedoeld voor kennisneming door de geadresseerde(n), en mag niet aan anderen worden doorgestuurd of op andere wijze ter kennis worden gebracht. Indien u niet de geadresseerde bent, verzoek ik u om de afzender te waarschuwen en de e-mail direct te verwijderen/vernietigen. De afzender wijst elke aansprakelijkheid voor (de inhoud van) deze e-mail af. --------------------------------------------------------------------- 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]