Scripting Application Privacy Mode Coordination

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The increasing complexity and functionality of web applications, particularly those using Asynchronous JavaScript and XML (AJAX), make it challenging to accurately record and replay scripts for load testing while maintaining high performance, as layout rendering is a CPU-intensive task and existing browser engines retain resources across iterations, complicating the simulation of new users.

Innovation Solution

Employing the 'privacy mode' feature of a browser engine to reset user state data at the beginning of each iteration, ensuring that each script execution starts from a blank state, and using a real browser engine for accurate DOM emulation and delegation of JavaScript handling to maintain performance and scalability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If layout rendering is performed to ensure DOM accuracy, then measurement precision is improved, but use of energy increases due to CPU-intensive tasks

Engineering Contradiction:
ImproveDOM accuracyVSAvoidCPU energy consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The system performs layout rendering and DOM analysis in advance during script recording, storing the results for later reuse during replay. This preliminary action eliminates the need to perform CPU-intensive rendering operations repeatedly during load testing, thus maintaining DOM accuracy while reducing energy consumption during actual testing iterations.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates and uses copies of DOM structures and layout information rather than performing full rendering operations during each test iteration. By capturing the DOM structure during recording and using replicated versions during replay, the system maintains measurement precision without the associated energy costs of repeated rendering.

Inventive Principle:
Principle #26Copying

2Productivity

If browser engine retains resources across iterations, then productivity is improved through resource reuse, but reliability deteriorates due to inability to simulate new users

Engineering Contradiction:
Improveresource reuse efficiencyVSAvoidnew user simulation accuracy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system segments the testing process into distinct recording and replay phases, with separate resource management for each. During recording, resources are allocated and DOM structures are built. During replay, the system uses stored DOM copies rather than retained browser resources, ensuring each iteration starts fresh while maintaining productivity through reuse of recorded script data.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system discards browser engine resources between recording and replay phases, ensuring clean state for each iteration. By recovering only the essential script data and DOM structure information while discarding session-specific resources like cookies and cached data, the system maintains both reliability for new user simulation and productivity through selective resource reuse.

Inventive Principle:
Principle #34Discarding and recovering

3Reliability

If privacy mode is enabled to reset user state data, then reliability is improved for new user simulation, but device complexity increases due to mode switching coordination

Engineering Contradiction:
Improveuser state isolationVSAvoidprivacy mode coordination
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system merges the privacy mode activation with the existing iteration start event in the testing framework. By combining these two actions into a single coordinated operation at the beginning of each iteration, the system achieves reliable user state isolation without proportionally increasing complexity, as the privacy mode switching is integrated into the existing test lifecycle management.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS8443292B2Scripting application with privacy mode coordination
Publication Date: 2013.05.14 MICRO FOCUS LLC
  • US8443292B2 patent drawing
  • US8443292B2 patent drawing
  • US8443292B2 patent drawing

AI summary

In at least some embodiments, a computer system includes a processor and a computer-readable storage medium coupled to the processor and storing a scripting application. The scripting application, when executed, is configured to coordinate use of a browser engine privacy mode with emulation of user operations on a browser-hosted application.