Hi Experts,
I want to handle a scenario, where my system fails when run against the Virtual Service. Please help me resolve this.
I have recorded an incoming request as below using the live traffic:
Operation Name: UpdateCustomer()
UpdateCustomer_Profile_RequestItem_AccountNumber:{}
UpdateCustomer_Profile_RequestItem_AccountName:{}
UpdateCustomer_Profile_RequestItem_CurrentPlan_Internet:{}
UpdateCustomer_Profile_RequestItem_CurrentPlan_HomePhone:{}
UpdateCustomer_Profile_RequestItem_CurrentTarrif_Internet:{}
UpdateCustomer_Profile_RequestItem_CurrentTarrif_HomePhone:{}
UpdateCustomer_Profile_RequestItem_NewPlan_Internet:{}
UpdateCustomer_Profile_RequestItem_NewPlan_HomePhone:{}
UpdateCustomer_Profile_RequestItem_NewTarrif_Internet:{}
UpdateCustomer_Profile_RequestItem_NewTarrif_HomePhone:{}
I have a response recorded for the above request in the VSI. While play back, the image is matched if the exact scenario is repeated, irrespective of test data. But the image is not matched when the scenario is slightly modified.
For example, if the incoming request is like below (few more arguments added to the incoming request), the matching fails, resulting in an error. (I can do an operation match to make it pass, but that's not the expected scenario)
Operation Name: UpdateCustomer()
UpdateCustomer_Profile_RequestItem_AccountNumber:{}
UpdateCustomer_Profile_RequestItem_AccountName:{}
UpdateCustomer_Profile_RequestItem_CurrentPlan_Internet:{}
UpdateCustomer_Profile_RequestItem_CurrentPlan_MobilePhone:{}
UpdateCustomer_Profile_RequestItem_CurrentPlan_HomePhone:{}
UpdateCustomer_Profile_RequestItem_CurrentPlan_HomeTV:{}
UpdateCustomer_Profile_RequestItem_CurrentTarrif_Internet:{}
UpdateCustomer_Profile_RequestItem_CurrentTarrif_MobilePhone:{}
UpdateCustomer_Profile_RequestItem_CurrentTarrif_HomePhone:{}
UpdateCustomer_Profile_RequestItem_CurrentTarrif_HomeTV:{}
UpdateCustomer_Profile_RequestItem_NewPlan_Internet:{}
UpdateCustomer_Profile_RequestItem_NewtPlan_MobilePhone:{}
UpdateCustomer_Profile_RequestItem_NewPlan_HomePhone:{}
UpdateCustomer_Profile_RequestItem_NewPlan_HomeTV:{}
UpdateCustomer_Profile_RequestItem_NewTarrif_Internet:{}
UpdateCustomer_Profile_RequestItem_NewTarrif_MobilePhone:{}
UpdateCustomer_Profile_RequestItem_NewTarrif_HomePhone:{}
UpdateCustomer_Profile_RequestItem_NewTarrif_HomeTV:{}
Please help me handle this kind of a dynamic incoming request scenario. what's the best approach for this? I think of writing a match script to throw the recorded response irrespective of the incoming request, provided the operation name matches. But I have no idea how to write a match script for this.
Is there any other inbuilt functionality to handle this? Please suggest.
Thanks,
Senthi