Hi,
You state "It means that respond step in VSM is not sending the duplicate properties.", how did you verify this?
To verify this you need to be sure that a lisa_vse_response which actually has duplicate meta-data keys is not sending them out. I see 2 ways of verifying:
- First method I already shared, it is to print out the metadata key-value pairs to the log and verifying that addAll() has actually added them. It is unclear from your reply if you already did this?
Try below script and verify in the corresponding log file:
for (int i = 0; i < lisa_vse_response.size() ;i++)
{
ParameterList pl = lisa_vse_response.get(i).getMetaData();
pl.setAllowDupes(true);
pl.addAll(lisa_vse_request.getMetaData(), true);
}
for (int j = 0; j < lisa_vse_response.size() ;j++)
{
System.out.println(" Metadata for response(" + j + ") : " + lisa_vse_response.get(j).getMetaData() );
}
return true;
- Second method would be to manually add a duplicate key-value pair to your metadata in the VSI editor and then run your test against the VS and validate that the Respond step has added the duplicate property.
Cheers,
Danny
::DISCLAIMER::
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Original Message------
Hi Danny,
We have created a virtual service using fixed length request and response pairs. We are getting expected response data from the VS.
Issue with MQRFH2 Usr folder (Which has duplicate properties). Using below script we are getting all metadata except duplicates. It means that respond step in VSM is not sending the duplicate properties.
for (int i = 0; i < lisa_vse_response.size() ;i++)
{
lisa_vse_response.get(i).getMetaData().addAll(lisa_vse_request.getMetaData(), true);
}
Transport protocol? IBM MQ Native Transport Protocol
Data protocol? Null Data Protocol.
FYI.. We are trying to send duplicate User properties in the RFH2 header.
https://docops.ca.com/devtest-solutions/10-2/en/reference/test-step-descriptions/ibm-steps/ibm-mq-native-send-receive-step#IBMMQNativeSendReceiveStep-IBMMQNativeRFH2Header
IBM MQ Native RFH2 Header
The Contents area of the step editor lets you configure the message payload. You can include an RFH2 header by setting the payload type to IBM RFH2 Header.
To edit the properties in the fixed portion of the RFH2 header, click Open Editor to the right of the RFH Header Properties label and click the plus sign to select the properties.
To add a folder to the RFH2 header, perform the following steps:
- Display the advanced parameters.
- Click the plus sign in the RFH2 Folders area.
- Select the folder type.
You can now click Open Editor to the right of the folder name to configure the properties in the folder.
Regards
Shashavali
Thanks
Shashavali