15 years ago
SoapUI test step help
Hi, I have just started using soapUI and loadUI to test web service calls into an API. I am passing in a fixed telephone number in the url. All else in the url will remain the same. Some of the thi...
def path = groovyUtils1.getProjectPath();
def propFile = "\\phone.properties";
FileInputStream read = new FileInputStream(path + propFile);
Properties prop = new Properties();
prop.load(read);
def totalCount= Integer.parseInt(prop.getProperty("totalCount"));
for (counter in 1..totaCount)
{
def url = "http:\\phone.number.com\phonenumber=";
def ph = "Phone";
ph = ph + counter;
phnumber = prop.getProperty(ph);
url = url + phnumber;
// you can now pass this url to target property in your test case and call the test case from here itself
}