Web Application Testing with Traffic Replay for Offline Stability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing web application testing methods rely on actual online network traffic, leading to increased costs, instability due to server dependencies, network fluctuations, and reduced test efficiency, especially when testing across different geographic locations.

Innovation Solution

A method and apparatus that intercepts and records network requests and responses in a traffic file, allowing tests to be conducted offline, reducing dependency on server or network performance, and ensuring accurate and stable testing by using a traffic file to return pre-recorded responses when the test case is not updated.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If actual online network traffic is used for testing, then test results reflect real-world performance, but test stability decreases due to server dependencies and network fluctuations

Engineering Contradiction:
Improvetest stabilityVSAvoidserver dependency and network fluctuation
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The patent creates a traffic file that copies and stores network traffic data (requests and responses) before actual testing. This copy is then used to replay the exact network conditions during testing, eliminating the need for actual server connections and network traffic during test execution, thus improving stability while preserving real-world performance characteristics.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent performs preliminary recording of network traffic data before the actual testing phase. The traffic file is generated in advance by capturing real network communications, and this pre-recorded data is then used during subsequent testing phases, allowing tests to be conducted independently of actual server availability and network conditions.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If actual online network traffic is used for testing, then test coverage is comprehensive, but test efficiency decreases due to network latency and server response time

Engineering Contradiction:
Improvetest efficiencyVSAvoidnetwork latency and server response time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent performs preliminary recording of network traffic data before the actual testing phase. The traffic file is generated in advance by capturing real network communications, and this pre-recorded data is then used during subsequent testing phases, allowing tests to be conducted independently of actual server availability and network conditions.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates a traffic file that copies and stores network traffic data (requests and responses) before actual testing. This copy is then used to replay the exact network conditions during testing, eliminating the need for actual server connections and network traffic during test execution, thus improving stability while preserving real-world performance characteristics.

Inventive Principle:
Principle #26Copying

3Measurement precision

If actual online network traffic is used for testing, then test results are accurate, but testing cost increases due to server resources and network infrastructure

Engineering Contradiction:
Improvetest result accuracyVSAvoidserver resources and network infrastructure
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent creates a traffic file that copies and stores network traffic data (requests and responses) before actual testing. This copy is then used to replay the exact network conditions during testing, eliminating the need for actual server connections and network traffic during test execution, thus improving stability while preserving real-world performance characteristics.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent extracts the essential network traffic data from actual server communications and stores it in a traffic file. This extracted data can be reused multiple times without requiring the actual servers or network infrastructure, significantly reducing resource consumption while maintaining test accuracy.

Inventive Principle:
Principle #2Taking out (Extraction)

4Adaptability or versatility

If actual online network traffic is used for testing, then test coverage includes real network conditions, but test adaptability decreases when servers are unavailable or geo-restricted

Engineering Contradiction:
Improvegeographic accessibilityVSAvoidtest availability
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent creates a traffic file that copies and stores network traffic data (requests and responses) before actual testing. This copy is then used to replay the exact network conditions during testing, eliminating the need for actual server connections and network traffic during test execution, thus improving stability while preserving real-world performance characteristics.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS20260023680A1Method and apparatus, device, medium and program product for testing web applications
Publication Date: 2026.01.22 BEIJING ZITIAO NETWORK TECH CO LTD
  • US20260023680A1 patent drawing
  • US20260023680A1 patent drawing
  • US20260023680A1 patent drawing

AI summary

Embodiments of the present disclosure relate to a method and apparatus for testing a web application, a device, a medium and a program product. The method comprises obtaining, based on a test case, a target request sent from a web end of the web application to a server end of the web application. The method also comprises determining, based on the target request, whether a traffic file corresponding to the web application is present. The method further comprises in response to presence of the traffic file corresponding to the web application, determining whether the test case is updated. The method also includes in response to the test case not being updated, returning to the web end a target return content corresponding to the target request based on the traffic file, to complete a test for the web application.