DO NOT REPLY [Bug 48487] New: Method JavaSamplerContext.getParameterNamesIterator return iterator with wrong number of elements

[email protected]
Newsgroups gmane.comp.jakarta.jmeter.devel
Message-ID <[email protected]/bugzilla/>
https://issues.apache.org/bugzilla/show_bug.cgi?id=48487

           Summary: Method JavaSamplerContext.getParameterNamesIterator
                    return iterator with wrong number of elements
           Product: JMeter
           Version: 2.3.4
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


// Set default 

@Override
public Arguments getDefaultParameters() {

Arguments arguments = new Arguments();

Integer defaultParamValue = 0;
       
arguments.addArgument("probabilityOfOccurence1",defaultParamValue.toString());
       
arguments.addArgument("probabilityOfOccurence2",defaultParamValue.toString());
       
arguments.addArgument("probabilityOfOccurence3",defaultParamValue.toString());
       
arguments.addArgument("probabilityOfOccurence4",defaultParamValue.toString());
       
arguments.addArgument("probabilityOfOccurence5",defaultParamValue.toString());
        return arguments;

    }

@Override
    public SampleResult runTest(JavaSamplerContext javaSamplerContext) {

        Iterator iter = javaSamplerContext.getParameterNamesIterator();


iter HAS 6 Elements instead of 5

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.