Closed AntonioSun closed 2 years ago
Hi, this is mostly because the main source for the insert is the script classpath which is folder where you execute the script. You can workaround it by adding structure folder to your class path e.g.:
groovy -cp ../structure script.groovy
Assuming the structure folder has fragments folder you don't need to change insert you can leave it as it was. Means the insert 'fragments/xxx'
Thanks!
I got
Failed to create component for 'insert'
. Here is the way to replicate the problem:structure
tostructure-2
folder as-is.structure-2
is parallel tostructure
folderscript.groovy
works in thestructure
folder just fine, butscript.groovy
under structure-2 to refer to structure, I made a simple change, to replace allinsert 'fragments/xxx'
asinsert '../structure/fragments/xxx'
, but groovy-jmeter just cannot handle it any more: