Custom Utility - Make_MARInfo&MARUtility

book

Article ID: 129591

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)

Issue/Introduction

There is not an out of the box utility provided to create a MAR Info file, only to create a MAR file - MakeMar Utility.
A custom utility to create a MARI file is provided in the link below:
MarInfoUtility.zip - https://communities.ca.com/docs/DOC-231156572

When using the Make_MARInfo&MARUtility we are getting the following exception:
============================================================================
| Exception:
============================================================================
| Message: Script throw an exception: bsh.EvalError: Sourced file: inline evaluation of: ``import com.itko.lisa.model.mar.*; import com.itko.lisa.model.mar.ModelArchiveIn . . . '' : Typed variable declaration : Error in method invocation: Static method createVSMARInfo(java.lang.String, java.lang.String, int, int, boolean, boolean, java.lang.String) not found in class'com.itko.lisa.model.mar.ModelArchiveInfo' : at Line: 27 : in file: inline evaluation of: ``import com.itko.lisa.model.mar.*; import com.itko.lisa.model.mar.ModelArchiveIn . . . '' : ModelArchiveInfo .createVSMARInfo ( dsFileName , projectPath + "/Configs/" + configFileName , capacity , thinkScale , autoRestart , startSeviceOnDeployment , groupTag )
in inline evaluation of: ``import com.itko.lisa.model.mar.*; import com.itko.lisa.model.mar.ModelArchiveIn . . . '' at line number 27

Cause

This custom utility was created with DevTest on release 7.X.
There were several changes to the product that might affect this test case.

Environment

DevTest on release 10.4.

Resolution

It was verified the signature being referenced in the call made by Java script step is not available.
The signatures that are available in 10.4 are as given in the image below

<Please see attached file for image>

User-added image
You may need to make a change to the method call to reflect the supported signature.
Example: ModelArchiveInfo mari = ModelArchiveInfo.createVSMARInfo(dsFileName, projectPath+"/Configs/"+configFileName, capacity, thinkScale,autoRestart, startSeviceOnDeployment);

Attachments

1558688477118000129591_sktwi1f5rjvs16fme.png get_app