Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi!
the groovy datasource works a bit differently; the script is passed a "result" map variable that it should fill with the data for the current row; if it is left empty this is interpreted as there is no more data. So in your example you could try:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def sProjectPath = groovyUtils.projectPath
// get current row
def row = context.currentStep.currentRow
if( row < 15 )
result["FilePath"] = sProjectPath + "\\File" + (row+1) + ".jpg"
Does that help?
regards!
/Ole
eviware.com
the groovy datasource works a bit differently; the script is passed a "result" map variable that it should fill with the data for the current row; if it is left empty this is interpreted as there is no more data. So in your example you could try:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def sProjectPath = groovyUtils.projectPath
// get current row
def row = context.currentStep.currentRow
if( row < 15 )
result["FilePath"] = sProjectPath + "\\File" + (row+1) + ".jpg"
Does that help?
regards!
/Ole
eviware.com