What is property name to reference the Callback Key ? - which is returned in the Lisa-Invoke Rest API response.
I have a test case which at the end of the test, stores the custom test results(.xml format) in a database. this test case is packaged as a mar file and kept in DevTest_Server. Whovever wants to trigger the test cases should make the REST-API call as shown below using LISA-INVOKE to run a Mar file which contains the test case to run on the remote simulator.
REST-API request call to run a MAR file:
Rest-API Response to the above request
<?xml version="1.0" encoding="UTF-8"?>
<param name="marOrMariPath" value="/tmp/testArguments.mar" />
<param name="async" value="true" />
<param name="callbackKey" value="A5659983755C11E8B07B00505696EF5A" />
<param name="MyTag" value="appModelId=123;appInstanceId=234;" />
<message>The LISA mar/i '/tmp/testArguments.mar' was launched asynchronously at Thu Jun 21 09:09:00 CDT 2018.</message>
I need the API response to be customized with my test results. I see there is already an idea proposed for this to include custom tag in response. As the idea is still in the proposal phase,
If the call back key is accessible by the test case within the MAR package, then i can add steps to log my custom test results in a database where it can be uniquely referenced using the callback key. Then i can develop a new api where it can accept the callback key in the request and sends my custom result as response.