Webpage Source Code Rewriting for Cloud-Based Testing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing web testing tools require environmental changes and software installations, making them inconvenient for users who need to test webpages without modifying their system settings or installing plugins.

Innovation Solution

A method and system that rewrite the source code of a webpage to redirect user actions through a server, using DNS wildcard host records and code injection, allowing for functional testing without altering the user's environment or installing software, enabling cloud-based testing and playback of user interactions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If a dedicated application, plugin, or software component is installed locally to control browser actions during testing, then automated functional testing capability is improved, but device complexity and ease of operation deteriorate due to installation requirements and environmental modifications

Engineering Contradiction:
Improveautomated functional testing capabilityVSAvoidease of operation
Core Design Contradiction:
Extent of automationVSEase of operation

Solution Approach 1:

The patent introduces a server as an intermediary component that mediates between the user's browser and the webpage being tested. The server receives requests from the browser, modifies them by injecting code segments that enable testing functionality, and returns modified responses. This intermediary approach allows automated testing capabilities to be provided without requiring local software installations or environmental modifications on the user's device, thereby improving ease of operation while maintaining automation capability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the mechanical approach of installing local software components and configuring system environments with a network-based solution. Instead of modifying the user's device through installations and configuration changes, the system uses network communication to transmit modified webpage content and control instructions from a server to the browser, enabling automated testing without local system modifications.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Extent of automation

If browser network communication is redirected through a pre-configured proxy server, then automated testing control is improved, but device complexity and ease of operation worsen due to network setting reconfiguration requirements

Engineering Contradiction:
Improveautomated testing controlVSAvoidease of operation
Core Design Contradiction:
Extent of automationVSEase of operation

Solution Approach 1:

The server acts as an intermediary that provides testing control functionality without requiring the user to configure network proxies or modify browser settings. The server injects code segments directly into the webpage content, enabling automated testing control to be achieved through content modification rather than network infrastructure changes, thereby eliminating the need for user-side configuration.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Extent of automation

If code segments are injected into webpage source code to enable testing functionality, then automated testing capability is improved, but manufacturing precision and reliability worsen due to modification of existing code

Engineering Contradiction:
Improveautomated testing capabilityVSAvoidreliability
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The patent segments the webpage code into distinct functional components: the original webpage content and the injected testing code segments. By separating these functions, the original code remains intact and unchanged, while the testing functionality is added as independent modules. This segmentation approach maintains the reliability of the original webpage while enabling automated testing capability through the injected segments.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The injected code segments act as intermediaries that bridge the original webpage functionality and the testing requirements. These segments intercept and modify requests without altering the core webpage code, allowing testing functionality to be added while preserving the original code's reliability and behavior.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10382386B2Functional webpage testing tool
Publication Date: 2019.08.13 RANOREX GMBH
  • US10382386B2 patent drawing
  • US10382386B2 patent drawing
  • US10382386B2 patent drawing

AI summary

A method for facilitating testing of a webpage at a server is described. The method includes receiving a request from a user device to facilitate testing of a webpage, and loading the webpage at the server. The method further includes rewriting the source code of the webpage. The rewriting includes injecting a first code segment into the existing code of the webpage, the first code segment causing a rewriting function to be called that rewrites one or more URLs on the webpage such that a selection of a rewritten URL is redirected to the server. The rewriting further includes injecting a second code segment into the existing code of the webpage to cause a recording function to be provided on the webpage. The method further includes forwarding the webpage with the rewritten source code for presentation in a browser of the user device.