Is there a way to create (or update) a VSI from request/response pairs using the command line?
Thanks for the quick response, Rick. I did not realize that the "VSFromRRPairsTransportProtocol" was available in the VRS. I've been working with the REST APIs for quite some time and I had always associated the VRS with live recording. This is a huge A-HA !! moment for me.
Something like this? Create a Service Image from Request-Response Pairs from the Command Line - DevTest Solutions - 10.4 - CA Technologies Do…
Would also recommend Virtual Service API https://docops.ca.com/devtest-solutions/10-3/en/using/using-the-apis/virtual-service-invoke-api
Thanks Steven. I appreciate the quick response. Very helpful....!!
Thanks for the link. I have tried creating the Virtual service with the steps provided in the link. But getting the below error.
Could you please help .
C:\Program Files\CA\DevTest\bin>ServiceImageManager vrs=H:\Desktop\VRSFile.vrs vsi=H:\Desktop\RRTry.vsi vsm=H:\Desktop\RRTry.vsm --record
Setting System.out and System.err to: Cp1252
LISA_HOME set to C:\PROGRA~1\CA\DevTest\DevTest temporary directory is C:\Users\L112220\lisatmp_10.3.0Configuring logging from 'C:\PROGRA~1\CA\DevTest\logging.properties'
DevTest Solutions, Copyright (c) 2002-2018 CA, All rights reserved.
DevTest Service Image Manager
DevTest Solutions Version :: 10.3.0 (10.3.0.297)
.... imsconn.jar: iteration 0 built for an unknown version of DevTest
.... imsutils.jar: iteration 0 built for an unknown version of DevTest
.... itkoext-westpac-lek-7.0.jar: iteration 0 built for an unknown version of De
.... sqljdbc4.jar: iteration 0 built for an unknown version of DevTest
You need to specify a recording session file to use during the recording.
I'm concerned about your installation. Presumably you've upgraded from an older version of DevTest?
The bit I'm worried about is that your LISA_HOME is set to a different directory than where DevTest is being run from. If you have an old version of DevTest in LISA_HOME, and your classpath is picking up JARs from a subfolder from there, then it's going to be trying to use the older JAR files along with the newer DevTest, and you'll get errors like you're seeing.
Additionally / alternatively, you've specified "vrs=" rather than "--vrs=". Was this intentional?
When I run ServiceImageManager --help, part of the help response is this:
-v recording-session-file, --vrs=recording-session-file
Specifies the recording session file that contains all the
configuration information for the recording or import operation.
-s vsi-file, --si-file=vsi-file
Specifies the name of the service image file to record or import
transactions into. If this file does not already exist, it will
be created. Otherwise the recorded/imported transactions will
be merged into the existing service image.
-m vsm-file, --vsm-file=vsm-file
Specifies the name of the virtual service model file to create
during a recording or import.
so it looks like your command line options all need to be checked for syntax.
Retrieving data ...