https://issues.apache.org/bugzilla/show_bug.cgi?id=52284

             Bug #: 52284
           Summary: StringFromFile does not respect its contract : JMeter
                    instantiates a copy of each function for every
                    reference in a Sampler or elsewhere; each instance
                    will open its own copy of the the file
           Product: JMeter
           Version: 2.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 28023
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28023
Test plan

I think there is an issue in StringFromFile function.
In the docs and javadocs it is said that:
- JMeter instantiates a copy of each function for every reference in a Sampler
or elsewhere; each instance will open its own copy of the the file

But debugging the attached Test Case , I see only one instance of
StringFromFile shared by the 3 threads.
So this leads to a buggy result.
Expected result shoud be that each time threadNum should match file Num (not
the case)
And each file should be read, depending on execution some files are not read at
all.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to