Service Virtualization

  • 1.  Rest Service not Working

    Posted Sep 21, 2017 03:40 AM

    Hi All,

     

    When we are trying to stub a Rest service, LISA is trying to compare the Request with only one query parameter. Although, as per our requirement, we want to stub a request with multiple query parameters and we do not want to compare against the value of the query parameter. Could you please provide the solution for this query.

     

     

    Thanks in Advance

    Akhil Kukreja 



  • 2.  Re: Rest Service not Working

    Posted Sep 21, 2017 09:31 AM

    Is there a particular reason you want to ignore the query string parameters?

    It seems like you are trying to send one response to any request or perhaps, the service is implementing some sort of custom selection criteria.

     

    Some potential ways to address this are:

    - Use the copy feature in the VSI to generate additional transactions each having a varying number of query string arguments and set the Comparison Operator for each query string argument to "Anything"

    - Change the Operation Match Style from "Signature" to "Operation" and maintain only one transaction in the VSI



  • 3.  Re: Rest Service not Working
    Best Answer

    Broadcom Employee
    Posted Sep 21, 2017 01:56 PM

    By design, VSI will create "Specific transactions" with "Exact" match style and "META transactions" with "Signature" match style. If you don't want query string parameter values to be validated then you can do the below.

    . One is the way as Joel said, change the "Comparison Operator" of all the Request Data -->Arguments to "Anything".

    . Simple change the Specific transaction-->Match style to "Signature". This way it will ignore the values and just look for argument names only. When you change the "Specific transaction" Match style to "Signature", you need to change the "META transaction" Match style to "Operation".