Web Resource Validation Service for Web API Testing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional methods for validating Web resources, such as Web services and applications, require complex testing processes involving specific knowledge of APIs and XPath parsing, making it difficult for testers to validate responses from remote Web entities efficiently.

Innovation Solution

A Web resource validation service acts as an intermediary between clients and remote Web entities, abstracting XPath functionality and allowing clients to specify validation requirements through a standardized schema, enabling automated validation and caching of responses for subsequent requests.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional validation methods are used, then validation can be performed, but the process becomes complex and requires specific knowledge of APIs and XPath parsing

Engineering Contradiction:
Improvevalidation accuracyVSAvoidtesting process complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent introduces a validation service as an intermediary component between the test client and the web service under test. This validation service handles the complex XPath parsing and response validation logic, allowing clients to perform validation with simple method calls without needing to understand the underlying complexity of XML parsing and XPath expressions.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If detailed XPath parsing is implemented, then precise validation is achieved, but the difficulty of operation increases for testers

Engineering Contradiction:
Improveresponse validation precisionVSAvoidtester operation ease
Core Design Contradiction:
Measurement precisionVSEase of operation

Solution Approach 1:

The patent extracts the complex XPath parsing and validation logic from the client-side testing process and relocates it to a dedicated validation service. Clients only need to call simple validation methods with basic parameters, while the extracted validation service handles the sophisticated XPath expression parsing and response verification internally.

Inventive Principle:
Principle #2Taking out (Extraction)

3Adaptability or versatility

If manual validation processes are used, then flexibility is maintained, but productivity decreases

Engineering Contradiction:
Improvevalidation flexibilityVSAvoidtesting efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The validation service implements self-service by automatically performing XPath parsing, response validation, and result generation without requiring manual intervention. The service accepts validation requests, autonomously processes the complex validation logic, and returns validation results, thereby maintaining flexibility while significantly improving testing productivity.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS8145726B1Method and apparatus for web resource validation
Publication Date: 2012.03.27 AMAZON TECH INC
  • US8145726B1 patent drawing
  • US8145726B1 patent drawing
  • US8145726B1 patent drawing

AI summary

Method and apparatus for Web resource validation. Embodiments may provide a Web resource validation service for validating Web services and Web sites in general. Embodiments may be implemented internally in a Web entity's architecture and/or exposed externally as a Web service. In embodiments, a client configures a call to the Web service or Web site under test according to a Web resource validation service (WRVS) request schema that specifies validation requirements. The client then submits the WRVS request to the Web resource validation service. The Web resource validation service calls the Web service or Web site under test as specified in the WRVS request, and validates the response received from the Web service or Web site under test as specified in the WRVS request. Results of the validation are returned to the client formatted according to a WRVS response schema.