Forum Discussion

StooH's avatar
StooH
New Contributor
5 years ago

Groovy Scripts & Base64 Encoding

Hi guys,   I'm new to SoapUI and I'm currently creating a SOAP project to test an API and part of the XML request that is sent needs to include user authentication which is a base64 hash of the use...
  • HimanshuTayal's avatar
    HimanshuTayal
    5 years ago

    Hi StooH :

     

    You can store the output in class level property by following:

     

    testRunner.testCase.setPropertyValue("KEYNAME", OUTPUT);

     

    and store where ever in Test Case you wanted to use if you want to use by following:

     

    context.expand('${#TestCase#KEYNAME}')