Forum Discussion

afnanashraf10's avatar
afnanashraf10
New Contributor
5 years ago
Solved

The operation cannot be performed, because the user session is disconnected.

I'm running Test Complete tests using Jenkins from master to slave node. When i RDP to the slave machine and run the job test will succeeds. But if the RDP is closed and when i try to exectute tests ...
  • nmrao's avatar
    3 years ago

    Here is some example to encode into base64:

     

    def data = "Hello, world!"
    def encodedData = data.bytes.encodeBase64().toString()
    log.info "Encoded data: $encodedData"
    

    if you want to use in your json payload, then there are multiple ways

    1. store the encoded value in a test case custom property and use that in json

    2. Use inline code in JSON such as "${= "Hello World".bytes.encodeBase64().toString()}"