Additional arguments are not working in LISA_INVOKE

Document ID : KB000102414
Last Modified Date : 18/06/2018
Show Technical Document Details
Issue:
Requirement:

a) Run a model archive using LISA_INVOKE from a different tool/ browser
b) Need to pass arguments to the MAR file.
c) Test script (.tst) inside the mar file should consume the value of the arguments to make workflow decisions use the argument value we are using LISA_INVOKE for running a mar file to invoke a test on a remote simulator

Per the below documentation from CA-DevTest, additional arguments can be passed to a Mar File using -D as part of the API call. How the arguments can be used within the test scripts?

Currently the value of these arguments are showing null in the test case

https://docops.ca.com/devtest-solutions/10-1/en/using/using-ca-application-test/using-devtest-workstation-with-ca-application-test/running-test-cases-and-suites/lisa-invoke/run-model-archives-with-lisa-invoke

Below is the LISA_INVOKE API call being used http://[LISA SERVER NAME:1505/lisa-invoke/runMar?marOrMariPath=/tmp/Test_Windows_v1.mar&async=false&-DappInstanceId=295

Here appInstanceId is the additional arguments which the test case needs inside the script.
Resolution:
Customer resolved this issue.

We were able to successfully pass the arguments to the MAR file while invoking the LISA_INVOKE API.

They followed the approach from the below community thread and it did worked.

The example here showed for Running a test, but the same worked for Running a MAR to.

https://communities.ca.com/thread/241777442-passing-data-to-a-test-via-lisa-invoke