Does Taurus support more than one before/after type JSR223 block in a single scenario? More than one script file?
Example, with apologies - the text formatting tools seem to remove all YAML indentation, there is no option to format as code, etc.
requests:
- url: /dummy/sampler
method: GET
jsr223:
- language: groovy
#script-file: script/conc_proto.groovy
script-text: |
import org.apache.jmeter.threads.JMeterVariables
JMeterVariables vars = ctx.getVariables()
Integer local_count = vars.get('count1').toInteger()
local_count++
log.info(local_count)
vars.put('count1',local_count)
execute: before
jsr223:
- language: groovy
#script-file: script/conc_proto.groovy
script-text: |
import org.apache.jmeter.threads.JMeterVariables
JMeterVariables vars = ctx.getVariables()
Integer local_count = vars.get('count1').toInteger()
count2++
log.info(count2)
vars.put('count1',local_count)
execute: before
sampler:
classname: com.blazemeter.jmeter.citrix.client.Sampler
arguments: []