Service Virtualization

Expand all | Collapse all

scriptable protocol request matching for fixed delimiters

Jump to Best Answer
  • 1.  scriptable protocol request matching for fixed delimiters

    Posted 09-06-2018 02:12 AM

    Using script able protocol did hogan mainframe fixed length delimited text protocol it worked,but how to add multiple request matching response in existing VSI?

     

    Steps followed:

    1. create RRpairs txt files

    2. create new vsi with RRpairs

    3. select scritpable protocol to convert special character delimiters

    4. Finish recording  - creates VSI & VSM

     

    5. Modify VSI to add more request & response for different scenarios (stuck) , not sure how to match incoming request

     

    EX Request:  HDMH-V00        K5K5PACAC 4DTUSER             S                                                 FORBID_IÃ01ÃDEFAULTAB

    Response: XVKO Ú00Ú@PACCT_IMÚ0001ÚDÚ994ÚÚÚ@PXAMN_OSÚ00Ú@YÚNÚEMÚÚNÚWFAÚÚ@PXADL_OSÚ00Ú@ADPGPMA

     

    how to match multiple request coming in VSI. 



  • 2.  Re: scriptable protocol request matching for fixed delimiters

    Posted 09-06-2018 10:16 AM

    Hello Sai,

     

    I believe one way will be to create a new Virtual Service for the new request and response pairs you have and then merge the Virtual Service Images (VSI). There is not an option to merge the VSMs, so you need to make sure the Data Protocols are updated.

     

    Combine Service Images - DevTest Solutions - 10.1 - CA Technologies Documentation 

     

    Hope it helps.

    Heloisa



  • 3.  Re: scriptable protocol request matching for fixed delimiters
    Best Answer

    Posted 09-06-2018 10:18 AM

    After creating VS with one request and then adding other requests to VSI is not advisable when you are using Scriptable DPH.

     

    If you are recording multiple requests, I would recommend to try recording at the same time and use Scriptable Data protocol to configure your requests. This way you can see all requests are parsed correctly or no and VSI is created accordingly.