Unable to set Rest URI template parameters using groovy script.
I am using REST URI template service for my testing and URI looks as below:
http://XXX.XX.X.XX:XXXX/HawkService/dh/Login/{userid}/{pwd}
I am getting my userid and pwd parameters and its values from external file..
parameters: userid,pwd
values:xxx,xx
I am able to read the parameters and values successful from external files but when i execute the below code it is not setting the parameters and values to the request.
for (intcount=0;intcount<tagsize;intcount++)
{
log.info (intcount)
inputtagList =inputtagArray.getAt(intcount);
log.info " after split :$inputtagList"
inputValueList = inputValueArray.getAt(intcount)
log.info " after split :$inputValueList"
log.info(ServiceName)
log.info(methodname)
****** i am tring to set the parameters and values at the below step **********
context.testCase.testSuite.project.testSuites["Services"].testCases[ServiceName].testSteps[(methodname)].setPropertyValue(inputtagList.getAt(intcount),inputValueList.getAt(intcount))
}
I browsed google and this forum and still unable to find a solution for this.. Any help is greatly appreciated.