Download a MAR file using the Virtual Services Invoke API with DevTest
search cancel

Download a MAR file using the Virtual Services Invoke API with DevTest

book

Article ID: 126690

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder)

Issue/Introduction



The Virtual Services Invoke API have the option to download a MAR file.

Environment

DevTest supported releases

Resolution

Try the following GET call  to download a MAR file: 

http://PortalServer:1507/devtest/api/sv/vse/service/mar/VSE/http?securityToken=<bbbaaasecurityToken>  


Where PortalServer is the address where the Portal service is running, http is my VSM name and the securityToken value is the accessToken generated when we login to the Portal. 

The following POST call can be used to generate the securityToken/accessToken: 

http://PortalServer:1507/devtest/api/login  

In the request body we would need to have the username and password like the below sample:  

{"username":"admin","password":"admin"}  


The response will contain the accessToken in the response body:  

"access_token": "<bbbaaasecurityToken> ",  


With this information you will be able to send the GET request: 

http://PortalServer:1507/devtest/api/sv/vse/service/mar/VSE/http?securityToken=<bbbaaasecurityToken>  
 

Make sure to update the PortalServer address, the VSM name and the securityToken.