Hi Vaibhav,
I am using Devtest 10.5 version and I did try service Virtualization api in postman and am able to download the MAR file. However when i tried creating a devtest testcase am unable to download the same.
Below are the steps i have tried
1) Created a HTTP/HTML Request step
2) Created a REST api step
3) Added header "accept:application/zip"
But it did not work in any of the case. Is there anything i have missed to add here.
Original Message:
Sent: 05-04-2020 12:58 AM
From: Vaibhav Jain
Subject: Download mar file in devtest test case
Hi Varun,
LISA Invoke APIs are for executing the testcases, suites and MARs.
If you are using 10.5 or above version:
---------------------------------------------
You can use Service Virtualization API v3 to download the mar files via http call.
Below is the syntax for the same:
GET /vses/{NameofVSE}/services/{NameofVirtualService}
This endpoint either retrieves information about an existing virtual service or gets the existing virtual service as a MAR file. You control which function is performed by setting the response content type header.
-----------------------------------------------------------------------------------
If you are using version < 10.5
Use Virtual Service Invoke API in 2 steps
1. Get the vse ID:
GET /vses
2. Get the list of VS:
GET /vses/{vseId}/services
3.Download the mar
GET /vses/{vseId}/services/{serviceId}
Thanks.
------------------------------
Regards,
Vaibhav Jain
Capgemini
Original Message:
Sent: 05-03-2020 02:54 PM
From: Varun Chand
Subject: Download mar file in devtest test case
Hi,
I am trying to download the mar file using LISA Invoke 2.0 api in a DevTest testcase. Below is the api i am using
/VSEs/{serviceName}/{virtualServiceName}/actions/getMar
Could someone please guide how to download a mar file using the lisa invoke 2.0 api in a lisa test case..
------------------------------
Thanks,
Varun Chand
------------------------------