AnsweredAssumed Answered

When using LISA Invoke 2 API, where should I put the file?

Question asked by tommy_jp on Dec 12, 2014
Latest reply on Nov 1, 2016 by howst04

Case: http://[host]:[port]/api/Dcm/CoordinatorServers/serviceName/actions/deployMar

 

Callers of the API (ex. Jenkins) is running on other PC (HostA).
Mar file is in the HostA. When using API, parameter of deployMar is as follows.

[key] fileURI
[value] file:///{{LISA_PROJ_ROOT}}/Tests/Suites/inquiry075.mar


Registry, Coordinator and Simulator running on other PC (HostB).
Mar file (inquiry075.mar) does not exist anywhere.

When running API in HostA, the following error has occurred.

 

<?xml version="1.0" encoding="UTF-8"?>
<Error xmlns="http://www.ca.com/lisa/invoke/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="application/vnd.ca.lisaInvoke.error+xml" xsi:schemaLocation="http://www.ca.com/lisa/invoke/v2.0 Error.xsd">
  <Id>1004</Id>
  <Message>Can't open file:///C:/Lisa7.5.2/Projects/as/Tests/Suites/inquiry075.mar please check again.</Message>
  <AdditionalInformation>com.itko.lisa.invoke.exception.BadRequestException: Can't open file:///C:/Lisa7.5.2/Projects/as/Tests/Suites/inquiry075.mar please check again.&#xD;
 at com.itko.lisa.invoke.ParamterUtils.getInputStream(ParamterUtils.java:90)&#xD;

 

Place the inquiry075.mar in the folder (file:///C:/Lisa7.5.2/Projects/as/Tests/Suites/) of HostB, then API was run successfully.

 

Where should I put the file?
I saw the manual, but did not see any such description.

Outcomes