How can I do that, what should I use (I heard about beanshell, wouldn't it be 
too much this  simple operation )?!


I couldn't find any way other than using BeanShell.


---sample BeanShell code ---
if (debug == "True")
        log.info("Processing " + vars.get("MessageType") + " message")
---sample BeanShell code ---

The methods you'll most likely use are

vars.get
vers.put
and vars.remove

See http://jakarta.apache.org/jmeter/api/ for more information.

On a side note, I'm still having issue getting this code to work
---snip---
Iterator i = vars.getIterator();
while(i.hasNext())
{
    Map.Entry me = i.next();
    if(String.class.equals(me.getValue().getClass())) {
       print(me);
}
---snip---

Keep getting this error

---snip---
Caused by: Sourced file: inline evaluation of: ``import bsh.util.*; debug = "True"; majorDebug = "True"; if (debug == "True") . . . '' : Typed variable declaration : Error in method invocation: No args method getIterator() not found in class'org.apache.jmeter.threads.JMeterVariables' : at Line: 9 : in file: inline evaluation of: ``import bsh.util.*; debug = "True"; majorDebug = "True"; if (debug == "True") . . . '' : vars .getIterator ( )
---snip---

*sniff*
Adam


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

Reply via email to