Unable to Deploy Virtual Service MAR file - MARInfo file is invalid

book

Article ID: 7079

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

When trying to deploy the MAR file that contains a virtual service, was facing the error Unable to load file: $lisatmp_dir/lads/.../<ProjectName>/VirtualServices/<VSMName.vsm>.

The MAR file is created using the command line utility Make Mar.

Cause

The issue was caused because the project name was modified and the MARInfo file wasn't updated accordingly.

The structure of a MARInfo file for a VSM is basically the following:

 <?xml version="1.0" ?>

<MarInfo>

<name>DatabaseModel</name>

<type>VIRTUAL_SERVICE</type>

<optimized>true</optimized>

<deployInfo>

    <PrimaryAsset>VServices/DatabaseModel.vsm</PrimaryAsset>

    <Configuration>Configs/project.config</Configuration>

    <ConcurrentCapacity>1</ConcurrentCapacity>

    <ThinkTimePercent>100</ThinkTimePercent>

    <AutoRestart>true</AutoRestart>

</deployInfo>

</MarInfo>

This above structure will change based on how a MARI file was created, i.e. from a test case, a test suite or a virtual service.

You can modify the MARI file using DevTest Workstation and also using a text editor. However, there is no feature to validate the manually modified MARInfo file.

Make sure the MARI file has the correct asset information. For example: correct path, name to the VSM and config file.

Environment

All DevTest supported releases.

Resolution

Update the MARInfo file with the correct virtual service and project name.

Additional Information

Creating MARInfo file using Workstastion - Create MAR Info Files

Editing MARInfo file using Workstation - Edit MAR Info Files