Service Virtualization

 View Only
  • 1.  Match Script is not working when match style is Operation

    Posted Jul 08, 2019 05:33 PM
    Hi Team,

    I am using match script to match the response. I have condition to check the value of one element in request and based on the value different response will be selected.

    In my service request message is not constant. it structure is keep changing. 

    For that i used match Style as "operation" and same matching condition in mach script. If i use match style operation, match script is not considered.
    Always first response is getting selected.

    Can match script be used when match style is "Operation"

    Please let me knoe the details

    Than You
    Rajasekhar


  • 2.  RE: Match Script is not working when match style is Operation
    Best Answer

    Posted Jul 09, 2019 09:45 AM
    Yes, match script can be used also for match style "Operation".

    I would think that there might be an error in your match script and the match script of your first response always returns true???

    For assessing, I would try to put in some hardcoding and force the response not to match, then you should get a matching from one of your next responses. I think that would give some insight whether it is the match script logic or something else.

    Cheers,
    Danny

    ------------------------------
    Cheers,
    Danny
    ------------------------------