Forum Discussion
praneeth12
Occasional Contributor
licNum = con.rows("SELECT * from LICENSE where LICENSE_NUMBER='564767' ")
I am getting data from data base all column values with below format useing jdbcRequst from groovy.
[{LICENSE_ID=421, IS_ACTIVE=1, LICENSE_CLASS_ID=1, APPROVED_EVENT_DATE=null}]
how to Set above Name and values to properties.
HimanshuTayal
5 years agoCommunity Hero
If it is a array then you can use:
arrSize = licNum.size();
for(int i= 0 ; i < arrSize ; i++){
if(i==0){
testRunner.testCase.getTestStepByName("Properties").setPropertyValue("LICENSE_ID",licNum[i])
}
else if(i == 1){
testRunner.testCase.getTestStepByName("Properties").setPropertyValue("IS_ACTIVE",licNum[i])
}
}
likewise, hope it will resolve your issue 🙂
Related Content
Recent Discussions
- 11 days ago