Forum Discussion
praneeth12 : I am not getting what error you are facing could you please elaborate where have you stuck.
- praneeth125 years agoOccasional 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.
- HimanshuTayal5 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
- 15 years ago