jmeter - Beanshell Integer.parseInt() errors -


hey i'm doing beanshell scripting web application in jmeter. i've written quite few jmeter scripts beanshell embedded , reason 1 keeps giving me errors integer.parseint() method invocation.

here's error:

2014/06/27 10:08:58 error - jmeter.util.beanshellinterpreter: error invoking bsh method: eval sourced file: inline evaluation of: import java.io.*; import java.util.*; int containercount = 0; int secondval = . . . '' : method invocation integer.parseint 2014/06/27 10:08:58 warn - jmeter.modifiers.beanshellpreprocessor: problem in beanshell script org.apache.jorphan.util.jmeterexception: error invoking bsh method: eval sourced file: inline evaluation of:import java.io.; import java.util.; int containercount = 0; int secondval = . . . '' : method invocation integer.parseint

all of integer.parseint() invocations listed below , seem pretty legitimate me, if anyone's beanshell expert , me identify error, that'd awesome, thanks!

int containercount = 0; int secondval = 0; int bpnumselected = 0;  //branch plant in response page more 1 container, in site shipment must initialized here. boolean mult = false;   //boolean see if site shipment has more 1 container  string scontainercount= vars.get("availableqty_matchnr"); string ssecondval = vars.get("secondval");         if(scontainercount!=null)         containercount = integer.parseint(scontainercount); //refers number of containers in site shipment     if(ssecondval!=null)         secondval = integer.parseint(ssecondval); //a weird value passed in parameter name after selectedlotid,        if(vars.get("bpnumselected")==null){         vars.put("bpnumselected","0");     }      if(containercount>1){     string sbpnumselected = vars.get("bpnumselected");     bpnumselected = integer.parseint(sbpnumselected); //gets branch plant id if more 1 container     mult = true;     } 

and also...

slocpackedqtyvalue = vars.get("locpackedqtyvalue"); savailqtynocomma = vars.get("availqtynocomma");          if(vars.get("locpackedqtyvalue")!=null)             packedqtyval = integer.parseint(slocpackedqtyvalue);         if(vars.get("availqtynocomma")!=null)             availableroom = integer.parseint(savailqtynocomma); 

try use packedqtyval = ${locpackedqtyvalue} without integer.parseint() method. works me in jmeter 2.11 in beanshell , bsf processors.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -