What is property name to reference the Callback Key ? - which is returned in the Lisa-Invoke Rest API response.
My Scenario:
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:
http://DevTestServer:1505/lisa-invoke/runMar?marOrMariPath=%2Ftmp%2FtestArguments.mar&async=true&-DMyTag=appModelId%3D123%3BappInstanceId%3D234
Rest-API Response to the above request
<?xml version="1.0" encoding="UTF-8"?>
<invokeResult>
<method name="RunMar">
<params>
<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;" />
</params>
</method>
<status>OK</status>
<result>
<callbackKey>A5659983755C11E8B07B00505696EF5A</callbackKey>
<message>The LISA mar/i '/tmp/testArguments.mar' was launched asynchronously at Thu Jun 21 09:09:00 CDT 2018.</message>
</result>
</invokeResult>
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,
Custom Tag In LISA Invoke Response
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.