Solved
Forum Discussion
ilovechiku
Contributor
i have a groovy step called GetEditableRole (starStep that you add as a test step)
in this i have
testRunner.testCase.setPropertyValue("CompanyID1", menuDetailReturn.co)
also am able to print it ... both get and get are working fine.
log.info testRunner.testCase.getPropertyValue("CompanyID1")
Now i want to use this property in my assertion.
def starProperty = context.expand( '${GetEditableRole #CompanyID1}' )
log.info starProperty
i dont get the company value on printing starProperty. Why?
nmrao
9 years agoChampion Level 3
Please use below statement for the same:
context.testCase.getPropertyValue('CompanyID1') to get the value of CompanyID1 of test case property.
context.testCase.getPropertyValue('CompanyID1') to get the value of CompanyID1 of test case property.
Related Content
Recent Discussions
- 16 hours agodipsthorat
- 20 hours agoisbiat
- 24 hours agoLea
- 2 days agoarmygrad