Automated Web Test Script Generation via Validation and Conversion
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Software testing for web applications is prone to errors due to the complexity of manually generating and executing test scripts, especially for non-developers and non-testers, and the difficulty in programming complex functionalities.
Innovation Solution
A software testing system that automatically generates test scripts from high-level descriptive steps in a predetermined format, using a validator to ensure conformity and a converter to translate these steps into executable code for web application testing tools like Selenium, reducing the opportunity for errors and enabling non-technical users to create test scripts.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If manual test script generation is used, then flexibility and customization are improved, but error rate and complexity increase
Solution Approach 1:
The patent introduces an automated test script generation system that acts as an intermediary between test requirements and executable test scripts. This system includes components for parsing test cases, generating test scripts automatically, and validating the generated scripts, thereby reducing manual errors while maintaining flexibility through configurable test case templates and parameters.
2Reliability
If automated test script generation is implemented, then error rate is reduced, but system complexity increases
Solution Approach 1:
The automated test script generation system is divided into distinct modular components: test case parsing module, test script generation module, validation module, and execution module. Each component performs a specific function and can be independently configured and maintained, reducing the perceived complexity while providing robust automated generation capabilities.
Solution Approach 2:
The patent introduces intermediate representation layers and template systems that mediate between high-level test requirements and low-level executable scripts. These intermediaries include test case models, script templates, and validation rules that simplify the generation process while ensuring correctness, thereby managing system complexity effectively.
3Ease of operation
If non-technical users create test scripts, then accessibility is improved, but script quality may deteriorate
Solution Approach 1:
The system provides an intermediary automated generation engine that translates user-friendly test case descriptions into professionally-quality test scripts. Non-technical users interact with simplified test case templates and natural language inputs, while the underlying generation system handles the complex script writing, validation, and optimization, ensuring high script quality regardless of user technical expertise.
Solution Approach 2:
The test script generation system performs self-validation and self-correction through built-in validation rules, error detection mechanisms, and automatic refinement processes. The system can identify and correct common script quality issues without human intervention, maintaining high script quality while enabling non-technical users to create tests independently.
Data Source
AI summary
According to an example of the present disclosure, a test script to test a web application is generated from a test case and web objects extracted from a web application. A web application testing tool may be invoked to test a functionality of the web application by executing the test script.


