Forum Discussion
srirajms
10 years agoNew Contributor
Hi,
Can you share the project for what ever you have achieved till now ? even i am in search of a solution for this requirement.
Thanks
Sri - srirajms@gmail.com
Can you share the project for what ever you have achieved till now ? even i am in search of a solution for this requirement.
Thanks
Sri - srirajms@gmail.com
- yashm710 years agoNew Contributor
Hi,
You can use below script to fetch files from a folder.
import java.io.File;
import java.util.Date;
import jxl.*;
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
import groovy.sql.Sql
def fileList = []
new File("path where u hv stored the files").eachFile{ f ->
if (f.isFile()&& f.name.contains('.xml'))
{
def filename = f.name[0..-1]
fileList.add(filename)
log.info filename
}
}
if (fileList.size() <1)
{
testRunner.fail("No request files found")
}
context.put('fileList',fileList)- nmrao10 years agoChampion Level 3This is not the requirement of the original author of this topic.
Related Content
Recent Discussions
- 6 days agoruchisingh