Automated Web Server Test Script Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional test scripts for web servers are difficult and time-consuming to generate and maintain, especially when web server software applications change, such as with new web page formats or sequences, requiring significant engineering time and resulting in inaccurate test code.

Innovation Solution

A method and system for automatically generating test scripts for virtual web user systems that record and select only user actions communicating with the web server or having side effects, reducing script size and allowing instantiation for multiple users in functional, load, or monitoring tests, minimizing engineering time and improving accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional test scripts are manually generated and maintained, then test coverage can be comprehensive, but engineering time and maintenance effort increase significantly

Engineering Contradiction:
Improvetest coverageVSAvoidengineering time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system creates virtual copies of user interactions with the web server. Instead of manually writing test scripts, the system records actual user actions and generates test scripts by copying and formalizing these recorded interactions. This allows comprehensive test coverage to be achieved by simply recording and replaying user behaviors, eliminating the need for time-consuming manual script creation and maintenance.

Inventive Principle:
Principle #26Copying

2Reliability

If test scripts include all user actions, then comprehensive testing is achieved, but script size and complexity increase

Engineering Contradiction:
Improvetest completenessVSAvoidscript size
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system extracts only the essential elements from recorded user actions. By analyzing recorded interactions, the system identifies and extracts only those actions that communicate with the web server or have side effects that alter future communications. Non-essential actions are filtered out, resulting in compact test scripts that maintain complete test coverage without unnecessary complexity.

Inventive Principle:
Principle #2Taking out (Extraction)

3Manufacturing precision

If test scripts are manually updated when web server changes, then test accuracy is maintained, but maintenance time increases

Engineering Contradiction:
Improvetest accuracyVSAvoidmaintenance speed
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The system performs preliminary recording of user actions during normal web server operation. When the web server changes, the system can re-record user interactions with the updated server, automatically generating new test scripts that reflect the current server behavior. This preliminary recording approach ensures test accuracy matches the current server version without requiring time-consuming manual updates of existing scripts.

Inventive Principle:
Principle #10Preliminary action

4Reliability

If multiple virtual web users are created for load testing, then server capacity is thoroughly tested, but system resources increase

Engineering Contradiction:
Improveload testing capabilityVSAvoidsystem resources
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The system creates universal test scripts that can be instantiated multiple times to simulate different virtual web users. A single recorded user interaction sequence serves as a template that can be replicated N times to simulate N concurrent users. This multi-functionality allows comprehensive load testing with multiple virtual users while minimizing system resources, as the same test script infrastructure serves all virtual user simulations.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS7877736B2Computer language interpretation and optimization for server testing
Publication Date: 2011.01.25 ORACLE INT CORP
  • US7877736B2 patent drawing
  • US7877736B2 patent drawing
  • US7877736B2 patent drawing

AI summary

A method, software application and computer system provides computer language interpretations and optimization for web server testing by first recording user actions associated with an instance of a user interaction with a web server. The actions are analyzed to determine a collection of actions which alter communications with the server or have side effects which alter a future communication with the server. A test program is generated from the collection of actions. The test program is used to perform one or more of functional, load, and monitoring testing of a web server.