14 years ago
Response XML Mock Data Generation
Hi, Please find below my scenario. I am very new to XML and Web Services Testing but working on a fix for this issue for my team
During the Design, coding, unit testing of Web Services, developers have to create the XML format manually requesting data from external system. Inturn the external system will generate response xml with loaded actual data.
The web service response XML's size limits will be a constraint. For Instance, External system could handle response XML with maximum of 100KB limit. It is very hard for the developers to create a load data file of maximum size manually. Fully loaded response XML file should be considered in order to avoid the errors in later stage. If my response is above 100 Kb, then I have redesign everything again which will be too late
Using WDSL and XML, we need a tool to build a response XML for all the fields including occurences with some sample data. We can give the field length as Input parameter if needed.
But once the data is built, we can pass it back to Web service and check whether it can take up the load and will not return any memory overflow issue.
What happens now is we test in lower regions, where the data is limited and the testing goes fine. Once in Production, the responseXML size increases to hit the 100Kb limit.
My question, can SOAPUI be used to achieve the above feature. I read about dynamic mock response generation, but not sure whether I can my above situation resolved.
Idea is SOAPUI to develop a response XML with mock data for all the fields as per the request XML.
Thanks, Tektronics
During the Design, coding, unit testing of Web Services, developers have to create the XML format manually requesting data from external system. Inturn the external system will generate response xml with loaded actual data.
The web service response XML's size limits will be a constraint. For Instance, External system could handle response XML with maximum of 100KB limit. It is very hard for the developers to create a load data file of maximum size manually. Fully loaded response XML file should be considered in order to avoid the errors in later stage. If my response is above 100 Kb, then I have redesign everything again which will be too late
Using WDSL and XML, we need a tool to build a response XML for all the fields including occurences with some sample data. We can give the field length as Input parameter if needed.
But once the data is built, we can pass it back to Web service and check whether it can take up the load and will not return any memory overflow issue.
What happens now is we test in lower regions, where the data is limited and the testing goes fine. Once in Production, the responseXML size increases to hit the 100Kb limit.
My question, can SOAPUI be used to achieve the above feature. I read about dynamic mock response generation, but not sure whether I can my above situation resolved.
Idea is SOAPUI to develop a response XML with mock data for all the fields as per the request XML.
Thanks, Tektronics