Service Virtualization

Expand all | Collapse all

Create VSI from R/R pairs via Command Line ??

Jump to Best Answer
  • 1.  Create VSI from R/R pairs via Command Line ??

    Posted 10-10-2018 10:41 AM

    Is there a way to create (or update) a VSI from request/response pairs using the command line?

     

    JT



  • 2.  Re: Create VSI from R/R pairs via Command Line ??

    Posted 10-10-2018 10:47 AM


  • 3.  Re: Create VSI from R/R pairs via Command Line ??
    Best Answer

    Posted 10-10-2018 11:02 AM

    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.



  • 4.  Re: Create VSI from R/R pairs via Command Line ??

    Posted 10-10-2018 10:54 AM


  • 5.  Re: Create VSI from R/R pairs via Command Line ??

    Posted 10-10-2018 11:03 AM

    Thanks Steven.  I appreciate the quick response.  Very helpful....!!

     

    JT



  • 6.  Re: Create VSI from R/R pairs via Command Line ??

    Posted 11-02-2018 02:37 AM

    Hi Rick.Brown,

     

    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

    Locale: en_AU

    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)

    Installed patches:

    .... 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

    vTest

    .... sqljdbc4.jar: iteration 0 built for an unknown version of DevTest

     

    You need to specify a recording session file to use during the recording.



  • 7.  Re: Create VSI from R/R pairs via Command Line ??

    Posted 11-07-2018 01:19 PM

    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.



  • 8.  Re: Create VSI from R/R pairs via Command Line ??

    Posted 11-07-2018 01:27 PM

    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.