Cloud Service API Testing Through Resource-Based Dependency Graphs

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional test methods for cloud services with microservice architectures suffer from low accuracy in identifying API dependency relationships due to inconsistent API parameter-naming styles, leading to inadequate vulnerability detection in distributed systems.

Innovation Solution

Constructing an API knowledge graph based on the reference relationship between API parameters and resource objects to accurately identify dependencies, using a cloud service test system that extracts knowledge from various data sources and applies AI models for iterative test case generation and optimization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If API dependency relationship is identified by matching parameter names, then the test can be performed, but the identification accuracy is low due to inconsistent naming styles

Engineering Contradiction:
ImproveAPI dependency identification accuracyVSAvoiduniversality of test method
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent introduces an API knowledge graph as an intermediary structure that stores standardized API definitions and parameter mappings. Instead of directly matching parameter names between APIs (which fails due to naming inconsistencies), the system uses the knowledge graph as a mediator to resolve dependencies through standardized identifiers and semantic relationships, thereby achieving both high accuracy and universality across different services with varying naming conventions

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent transforms the dependency identification approach from direct parameter name matching to identifier-based matching through parameter standardization. By changing the matching parameter from human-readable names (which vary) to standardized unique identifiers (which are consistent), the system resolves the contradiction between accuracy and universality

Inventive Principle:
Principle #35Parameter changes

2Reliability

If conventional parameter name matching method is used, then the test can be executed, but the vulnerability detection is inadequate

Engineering Contradiction:
Improvevulnerability detection effectivenessVSAvoidAPI dependency identification accuracy
Core Design Contradiction:
ReliabilityVSMeasurement precision

Solution Approach 1:

The patent performs preliminary construction of an API knowledge graph before vulnerability testing. This knowledge graph pre-stores standardized API definitions, parameter mappings, and dependency relationships extracted from service code and documentation. By preparing this structured knowledge base in advance, the system enables more reliable and accurate vulnerability detection during actual testing, rather than attempting to parse and match parameters on-the-fly

Inventive Principle:
Principle #10Preliminary action

3Device complexity

If subjective test design by testers is used, then the test can be performed, but it is insufficient for complex distributed systems

Engineering Contradiction:
Improvesystem complexity handling capabilityVSAvoidtest adequacy
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The patent implements an automated system that extracts API definitions, parameter information, and dependency relationships directly from service code, documentation, and interface descriptions without requiring manual test design. The system automatically builds the API knowledge graph and generates test cases, enabling it to handle complex distributed systems with thousands of microservices that would be impractical to test manually

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS20250245131A1Cloud Service Test Method and Related Device
Publication Date: 2025.07.31 HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
  • US20250245131A1 patent drawing
  • US20250245131A1 patent drawing
  • US20250245131A1 patent drawing

AI summary

This application provides a cloud service test method, including: constructing an application programming interface API knowledge graph of a cloud service, where the API knowledge graph includes a reference relationship between an API parameter and a resource object; then identifying an API dependency relationship based on the reference relationship between an API parameter and a resource object; and then testing the cloud service based on the API dependency relationship, to obtain a test result. In the method, the API dependency relationship is identified based on the reference relationship between an API parameter and a resource object. Even if API parameter names do not match, the API dependency relationship can be accurately identified based on a same pointed resource object, thereby improving accuracy of a cloud service test. The method is universal and can meet a service requirement.