Reputation: 465
jmeter is giving warning and not getting inside if controller
Upvotes: 1
Views: 1175
Reputation: 58772
Add double quotes to parameters so string concatenation will work
"${BASE_FILE_PATH}" + "/" + "${FHIR_VERSION}" + "...
Also see @DmitriT for better variable usage in scripts
Upvotes: 1
Reputation: 168072
vars
shorthand instead. Consider using file.separator
property instead of slash so your expression could work on Windows
${__groovy(new File(vars.get('BASE_FILE_PATH') + System.getProperty('file.separator') + vars.get('FHIR_VERSION') + '/Post/indexForPost.csv').readLines().size() == vars.getIteration(),)}
Check out 6 Tips for JMeter If Controller Usage for more details.
Upvotes: 1