Lets start of with an example where you have created web services scripts under IBM Rational Performance Tester and have included content verification point for the response. The couple of elements in response
xml changes depending on the test data that you pass in the request xml content. However the requirement here is to ignore selective XML elements from the response XML content.
Below is one such snapshot of the test log where you want to ignore few XML elements from the response content.
In the above response xml, there are two xml elements namely <brcMarket> and <ImpProsecutionFlag> which are not there in the Expected value, and these elements will be present in the response xml for different set of test
data which you tend to pass in request xml. If you want to remove these elements in contain verification point(Expected value) it might fail for the iteration where these elements returned in the response for other set of test data. So how do we handle such situations?
This is possible using the popup action against a specific xml node to create a 'small' contains vp, and to assemble several of such vps so that (for this use case) the message can be tested:
For instance here a vp that will search an author name is created:
And then using the same process a contains vp that will check another element is created etc. etc.
Final test with several contains vp:
Doing this way would allow the end user to execute tests with vps that will focus on individual nodes ( case id, contact id ... score ) ignoring the potential brcMarker and impProsecutionFlag nodes.
End user test structure:
cased id vp
contact id vp
correlation id vp
etc... as required