The Lisa invoke API call gives encoded response instead of the plain text response. Is there a way to see the plain text response?
For example, the API call http://lisa-registryxxx.com/lisa-test-invoke/api/v1/tests/reports/3344444444462140A80C7/cycles/2321345B0B11ECBA2A327C44B1F1F4 shows the below response:
{
"stepGUID": "E1A4CDA7FA0011EBB4D53E2EFFAD6698",
"stepName": "Success Log Message",
"type": "STEP",
"errorCount": "0",
"warningCount": "0",
"quite": "false",
"startTime": "2021-09-21T18:40:06+0000",
"endedState": "PASSED",
"endedStateValue": "0",
"stacktrace": null,
"stepCommand": {
"request": null,
"response": "VGVzdCBjYXNlIElEID0gQ0JfMDAxClRlc3QgY2FzZSBEZXNjID0gU2VuZEFQSQpUZXN0IGNhc2UgU2V2ZXJpdHkgPSBDcml0aWNhbApTdGF0dXM9UEFTU0VE",
"requestBase64Encoded": null,
"responseBase64Encoded": "true"
},
Expected plain text like below
Test case ID = Rover
Test case Desc = SendAPI
Test case Severity = Critical
Status=PASSED
Release : 10.x
Component : DevTest API
Encoded response is by design.
By design, Lisa-Test-Invoke API returns Base64 Encoded response and there is no property which can be configured to get the plain text response. This is by design.
Below information will answer why the API responses are Base64 Encoded.
If a plain text response is expected then write a wrapper to encode the Base64 response as a workaround.