Forum Discussion

ilovechiku's avatar
ilovechiku
Contributor
9 years ago
Solved

How can we reference the groovy step in a testcase from assertion?.

I want to use the queries written in groovy step (star step) in my scripted assertions. How can i achieve this?. my assertions are added not as a groovy step.
  • nmrao's avatar
    nmrao
    9 years ago
    Please use below statement for the same:
    context.testCase.getPropertyValue('CompanyID1') to get the value of CompanyID1 of test case property.