Need Help! REST Assertion
Good day! I'm having some trouble with assertions. Currently I have a JSON response below:
<Response xmlns="URL">
<code null="true"/>
<message null="true"/>
<status>Success</status>
<data>
<providerType>Medical</providerType>
<providerNumber>AAAAA</providerNumber>
<providerName>NAME</providerName>
<registrations>
<e>
<dateOn>30/10/1995</dateOn>
<dateOff/>
<state>NSW</state>
<status>PracticeActiveOpen</status>
<bulkPayIndicator>NoBulkPayment</bulkPayIndicator>
</e>
</registrations>
<specialityCodes>
<e>
<code>33</code>
<dateOn>01/07/1997</dateOn>
<dateOff/>
</e>
<e>
<code>104</code>
<dateOn>02/01/1987</dateOn>
<dateOff/>
</e>
</specialityCodes>
<supplements>
<e>
<hospitalType/>
<hospitalClass>0</hospitalClass>
<coPay>P</coPay>
<contractInd>true</contractInd>
<groupBenefitCode/>
<dateOn>23/02/1998</dateOn>
<dateOff/>
</e>
<e>
<hospitalType/>
<hospitalClass>0</hospitalClass>
<coPay>P</coPay>
<contractInd>true</contractInd>
<groupBenefitCode/>
<dateOn>23/02/1998</dateOn>
<dateOff>23/02/1998</dateOff>
</e>
<e>
<hospitalType/>
<hospitalClass>0</hospitalClass>
<coPay>P</coPay>
<contractInd>true</contractInd>
<groupBenefitCode/>
<dateOn>23/02/1998</dateOn>
<dateOff>23/02/1998</dateOff>
</e>
<e>
<hospitalType/>
<hospitalClass>0</hospitalClass>
<coPay>P</coPay>
<contractInd>true</contractInd>
<groupBenefitCode/>
<dateOn>23/02/1998</dateOn>
<dateOff>23/02/1998</dateOff>
</e>
</supplements>
</data>
</Response>
How can I have assertions for each of the below elements using the DB value? The elements can be dynamic as we can add or delete a particular hospital type.
<hospitalType/>
<hospitalClass>0</hospitalClass>
<coPay>P</coPay>
<contractInd>true</contractInd>
<groupBenefitCode/>
<dateOn>23/02/1998</dateOn>
<dateOff>23/02/1998</dateOff>
Thanks for the inputs.