Raju_Vusirikala
16 years agoContributor
Not able to do assertion for xml responase with JDBC Response
Hi,
I have created soap request step that is request1.xml which gives response1.xml.
I have created a JDBC Request, which is giving results from databse as an xml.
Now I want to do assertion with response1.xml and jdbcresponse.xml.
In this step I am able to select node from the xpath expression(//Results[1]/ResultSet[1]/Row[1]/TP_CUSTOMER_ID[1]) but not able to select node that i want in the Expected Results.
I am able to go upto this path (${CCAddCustomerRequest#Response#//ns1:APIResponse[1]/response[1]}) but i want to select a node which in the response/body/id
How could i access child node structre?
Please find the attached screen shots.
Regards,
Raju.
I have created soap request step that is request1.xml which gives response1.xml.
I have created a JDBC Request, which is giving results from databse as an xml.
Now I want to do assertion with response1.xml and jdbcresponse.xml.
In this step I am able to select node from the xpath expression(//Results[1]/ResultSet[1]/Row[1]/TP_CUSTOMER_ID[1]) but not able to select node that i want in the Expected Results.
I am able to go upto this path (${CCAddCustomerRequest#Response#//ns1:APIResponse[1]/response[1]}) but i want to select a node which in the response/body/id
How could i access child node structre?
Please find the attached screen shots.
Regards,
Raju.