jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From moondance <oziet...@yahoo.com>
Subject Re: Saving the reply in Jmeter
Date Thu, 11 Aug 2011 13:04:46 GMT
So I did as you said for the value:
Reference name : keyvalue
regular expresion : <a:Value>(.+?)</a:Value> 
Template: $1$ 
match No. : -1
Default value :5000

The I added a Preprocessor beanShell :


StringBuilder sb = new StringBuilder();
            Random generator = new Random();
            int count = 5;
           
            for (int i = 1; i < count; i = i + 1)
            {
                String variableName = "keyvalue_"+ i;
	
                sb.append("\t\t<arr:guid>");
                sb.append(vars.get(variableName));
                sb.append("</arr:guid>\n");
            }
            System.out.println(sb.toString());
            vars.put("Accounts",sb.toString());

then in the WebService(SOAP) request Id this :
 ${Accounts}
but when I look at the soap request it has this :
           	<arr:guid>null</arr:guid>
		<arr:guid>null</arr:guid>
		<arr:guid>null</arr:guid>
		<arr:guid>null</arr:guid>

any ideas what I am doing wrong ?

Thanks
 Oren




--
View this message in context: http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689452.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
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