Service Virtualization

 View Only
  • 1.  Virtualisation using json request respons

    Posted Jun 10, 2022 02:56 AM
    Hi Team,
    We have requirement to virtualise a service using json request/ response pair . We have created a VSI and VSM file but when the request hits the virtual service then we ar getting the error message as "The requested URL was not found on this server." Can we virtualise the virtual service using json request response pair ? Can anyone please help us.

    Thanks,
    Sunikl


  • 2.  RE: Virtualisation using json request respons

    Broadcom Employee
    Posted Jun 10, 2022 03:07 AM
    Hi Sunil
    Yes, if you have JSON Request and Response pairs, you can create
    a virtual service using them. There are examples available on the Docs
    site. Please refer to them.

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-7/using/using-service-virtualization/using-devtest-portal-with-service-virtualization/create-virtual-services-from-request-response-pairs.html

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-7/using/using-service-virtualization/service-virtualization-concepts/request-response-pairs.html

    --
    regards
    Sankar Natarajan

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 3.  RE: Virtualisation using json request respons

    Broadcom Employee
    Posted Jun 10, 2022 03:07 AM
    Hi,

    Yes, you can virtualise the virtual service using json request response
    pair.

    For the request you are trying to send to your deployed virtual service:
    1. Double-check host and port are correct

    2. What is the basepath of your VSM?
    It is defined in the Listen step of your VSM, but you can also see the
    value in the Portal -> Monitor -> VSE page when the virtual service is
    deployed.
    The basepath must match the beginning portion of the URL you send to the
    deployed virtual service (but also make sure your basepath is not too
    restrictive)

    Cheers,

    Danny Saro

    Client Services Consultant

    Broadcom Software


    -------------------------------------------------

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 4.  RE: Virtualisation using json request respons

    Posted Jun 12, 2022 02:03 PM
    Hi Sunil,

    Please validate the Operation name defined in VSI and the operation name received as part of the request.

    You can virtualize the JSON r-r pair service, however, it is better to include the header values as part of the message:


    Kind Regards,
    Vaibhav J

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------