Am not getting it soem how right ...

I have my Get_Subpackage_id_matchNr=30 , Get_event_Id_matchNr=10

int countSubpackage =
Integer.parseInt(vars.get("Get_Subpackage_id_matchNr"));
int countPackage =   Integer.parseInt(vars.get("Get_event_Id_matchNr"));
for(int i=1;i<=countPackage;i++)
{
    for(int j=i;j<=3;j++)
    {
       sampler.addArgument( "package["+ vars.get("Get_event_Id_" +
i)+"]"+"["+vars.get("Get_Subpackage_id_"
+j)+"]",vars.get("Get_Subpackage_id_"+j) );
    }
}

all i want is

1,1 =1,1,2=2,1,3=3
2,4=4,2,5=5,2,6=6
3,7=7,3,8=8,3,9=9
so on ...

Am not getting it right ..my brain is just going bleak ....



On Tue, Dec 6, 2011 at 8:20 AM, Felix Frank <[email protected]> wrote:

> Hi,
>
> On 12/05/2011 06:02 PM, Shaba K wrote:
> > here's how my bean shell looks
>
> for what it's worth, I've found debugging BeanShell inside Jmeter to be
> rather excrutiating.
> Here is the general workflow I adopted:
>
> - watch the jmeter.log for BeanShell related errors
> - comment out almost everything from the PreProcessor
> - confirm that no errors are logged
> - uncomment the BeanShell code peacemeal until errors return
>
> Granted, eyeing my code sharply would have done it for me as well, but
> it was a helpful starting point.
>
> Cheers,
> Felix
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to