jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZK <stevesenio...@gmail.com>
Subject Re: beanshell get highest value of a regular expression
Date Tue, 18 Oct 2011 14:51:03 GMT
hi,
you could try this:

totalMatches = Integer.decode(vars.get("IDH_matchNr"));
int arrSize = totalMatches;
int[] myArray = new int[arrSize];


for (int i = 0; i < myArray.length; i++)
{ 
                myArray[i]=Integer.decode(vars.get("IDH_g"+(i+1)));
}

Arrays.sort(myArray);
System.out.println("Minimum = " + myArray[0]);
System.out.println("Maximum = " + myArray[myArray.length-1]);


/(disclaimer.... I am a tester not a programmer)/


ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4913980.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