jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Känngård <jo...@kanngard.net>
Subject Re: Nested variables?
Date Wed, 14 Apr 2004 14:30:19 GMT
Thanks for your answer, Mike! Enabling/disabling a User Defined 
Variables element greatly decrease the time to swap between the 
environments!

 - Johan

Michael Stover wrote:

>Basically, no.  You can't parameterize the names of functions.  I'd
>think your best option would be to have multiple versions of a User
>Defined Variables element and swap them in and out of your tests.
>
>-Mike
>
>On Wed, 2004-04-14 at 07:04, Johan Känngård wrote:
>  
>
>>Hi
>>
>>I have been using JMeter for a couple of weeks, and it really rocks!!
>>
>>Is it possible to have nested variables, like ${host_${environment}}, so 
>>that i can have a "User Defined Variables"-element like this:
>>
>>host_dev=my.devserver.internal.dns
>>host_test=my.testserver.internal.dns
>>host_prod=my.prodserver.dns
>>enviroment=dev
>>host=${host_${environment}}
>>
>>or is there another way of acomplish this? Tried to search the archives, 
>>but I haven't found anyone with the same question.
>>The example above is very simple, but my setup is quite complex, since I 
>>am testing an HTTPS application in different environments, with 
>>different variables but the same "flow".
>>
>>Off topic: Who Am I?
>>Johan Känngård, works in Stockholm, Sweden, IBM/Lotus developer since 
>>1997, knows things like Java, XML, XSL, CSS, JavaScript, LotusScript, 
>>VB.NET and C#. Among things I've created are  Log4LS 
>>(http://log4ls.sourceforge.net), a LotusScript port of Log4J and my 
>>DominoAppender , NotesExceptionRenderer and DominoConfigurator to use 
>>with Log4J and Domino.
>>
>>Thanks,
>>
>>Johan Känngård
>>johan@kanngard.net
>>http://dev.kanngard.net/
>>    
>>

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


Mime
View raw message