I have some Jmeter script on groovy
1.upto(${amount_of_items}, { index ->
def data = new File('data/ids.csv').readLines().get(index).split(',')
def attr = [:]
attr.put('id', data[0].toInteger())
def attributes = [:]
def param = [:]
param.put('quantity', ${quantity})
param.put('status_id', 4)
attributes.put('statuses', [param])
attributes.put('identity', attr)
adjustItems.add(attributes)
})
Is there any solution to get access to my csv which I try to parse from Blazemeter?
def data = new File('data/ids.csv').readLines().get(index).split(',')
Could I upload my csv to Shared Folder in Blazemeter and use it in script?
There shouldn't be a problem to access your file in BlazeMeter given you upload it to the shared folder. See Shared Folders article for more details.
Also according to JSR223 Sampler documentation:
So I would recommend amending your code to use
vars
shorthand for JMeterVariables class instance like: