Automated Web Service Testing via Data Model Retrieval
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Modern web services, despite conforming to industry standards, often mask complex back-end systems that require extensive testing and maintenance, making it challenging to validate data and functionality through their public interfaces.
Innovation Solution
The Test Anything Protocol (TAP) system automatically tests web services by retrieving data models and accessing individual data records, verifying field types and values, and performing CRUD operations to ensure data integrity and functionality, independent of the data type or service provider.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If web services use standardized protocols (SOAP/WSDL) to define interfaces, then interoperability and ease of operation are improved, but device complexity and difficulty of detecting back-end functionality worsen
Solution Approach 1:
The test system automatically retrieves the data model from the web service itself and uses it to generate test cases, eliminating the need for manual test case creation and reducing dependency on human expertise about the service's internal data structures
Solution Approach 2:
The patent introduces an intermediary test system that sits between the tester and the web service, using the data model as a mediator to translate high-level service definitions into comprehensive test cases that cover back-end functionality
2Ease of operation
If web services mask complex back-end systems behind standardized interfaces, then ease of operation is improved, but measurement precision and reliability of validation worsen
Solution Approach 1:
The test system performs preliminary actions by first retrieving and analyzing the data model before executing test cases, allowing it to understand the expected data structures and validation rules in advance
Solution Approach 2:
The system implements feedback by comparing actual web service responses against the retrieved data model, automatically identifying discrepancies between the standardized interface and the actual back-end behavior
3Ease of manufacture
If manual testing methods are used to validate web service data, then ease of manufacture is maintained, but productivity and measurement precision worsen
Solution Approach 1:
The test system is self-service in that it automatically retrieves the data model, generates test cases, executes tests, and reports results without requiring manual intervention, dramatically improving productivity while maintaining ease of implementation
Solution Approach 2:
The patent replaces manual mechanical testing processes with an automated system that uses programmatic retrieval of data models and algorithmic generation of test cases, substituting human effort with automated computational processes
4Reliability
If comprehensive testing of back-end systems is performed, then reliability and measurement precision are improved, but loss of time and device complexity worsen
Solution Approach 1:
The system performs preliminary retrieval of the data model to understand the complete structure of expected data before testing, allowing for comprehensive test coverage without manually exploring each endpoint
Solution Approach 2:
The test system is designed to be universal by working with any web service that provides a data model, using the same automated process to test different services without requiring service-specific test scripts or extensive customization
Data Source
AI summary
A method of automated testing of a Web Service public interface may include retrieving a first data set from the Web Service. The first data set may include information for accessing individual data records stored by the Web Service. The method may also include retrieving a second data set from the Web Service. The second data set may include a data model for the individual data records. The method may additionally include retrieving a first data record from the Web Service using the information for accessing individual data records. The method may further include verifying that the first data record retrieved from the Web Service is correct by comparing fields in the first data record with the data model.


