Forum Discussion

ravi4iit's avatar
ravi4iit
Occasional Contributor
11 years ago

How to transfer a Property Transfer Value to a groovy script

Hi,

How to transfer a response (Property Transfer) value to a groovy script.

In groovy script I want to validate the response (Actual =expected OR Actual !=expected). How to do it, please let me know.


If Actual =expected, then move to step.. OR else step...

Below is the sample wsdl url.

http://www.webservicex.com/CurrencyConvertor.asmx?wsdl


Thanks,
R...

1 Reply

  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    Property can be at different level.
    - Project
    - Suite
    - TestCase

    If a property, say USERNAME, is at test case level, the same can be accessed by using
    context.expant('${#TestCase#USERNAME}')

    Similarly you may access other properties by replacing the Project or Suite respectively.