Forum Discussion

Said's avatar
Said
Contributor
7 years ago

Base64 decode password

Hi All,   I have a a project property that has a password that I use in a request. In the password field of the request I use syntax below to get password in request: ${#Project#servicePwd} T...
  • groovyguy's avatar
    groovyguy
    7 years ago

    I think you could get what you want with this snippet of code:

     

    ${= new String (context.testCase.testSuite.project.getPropertyValue("servicePwd").decodeBase64() )}