LISA-INVOKE runMar script of suite is failing with an error

book

Article ID: 140225

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

LISA-INVOKE runMar script of suite is failing with an error

The test suite appears to be executing but still gives error output on the command line:

curl -X POST http://wimidpalm02:1505/lisa-invoke/runMar?marOrMariPath=C%3A%5Cworkspace%5CTests%5CSuites%5Csuite1.mar&async=false
<invokeResult>
  <method name="RunMar">
    <params>
      <param name="marOrMariPath" value="C:\workspace\Tests\Suites\suite1.mar" />
      <param name="callbackKey" value="5F24B22DCC2411E997850050569B7669" />
    </params>
  </method>
  <status>ERROR</status>
  <result>
    <message>An error occured in 'runMar'. Message: Timeout (60,000 ms, actual wait 60,003 ms) on server object tcp://MYSERVER:2011/5F379DC9CC2411E99BE00050569B7669 on method startTest &#xD;
 Stack: java.rmi.RemoteException: Timeout (60,000 ms, actual wait 60,003 ms) on server object tcp://MYSERVER:2011/5F379DC9CC2411E99BE00050569B7669 on method startTest&#xD;
 ...
  </result>
</invokeResult>

 

Environment

Release : 10.5

Component : CA Application Test

Resolution

The best way to resolve this issue of running a suite (with lisa-invoke) and getting the output is to run the suite directly.

Instead of using:

/lisa-invoke/runMar?marOrMariPath=


Use:

/lisa-invoke/runSuite?suitePath=


The suite already contains the staging document(s) so there is no need for a .mar in that case.

If you need to use a .mari, then you can contain this in a container suite and then call this container suite directly.



Additional Information

The new way of running tests from the browser or using CURL or Postman is to use the API as documented here: 

http://localhost:1505/lisa-test-invoke/api/v1/swagger-ui


https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/continuous-testing/devtest-solutions/10-5/using/using-the-apis/test-invoke-api.html