Automated Test Script Generation for Mobile Apps

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current testing frameworks for mobile applications require advanced programming expertise, leading to non-optimized test scripts that are difficult to adapt across multiple platforms, necessitating the need for automated script creation and source code generation without requiring advanced programming knowledge.

Innovation Solution

A system that generates a test script user interface with sections for displaying test steps, properties, source code, and a screen representation of a mobile device application, allowing users to create and execute test scripts without writing code, using a server computing device to automatically generate source code in a second programming language based on user input.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If test engineers manually write automated test scripts using programming languages, then test coverage and reliability can be improved, but the complexity and difficulty of operation increase significantly

Engineering Contradiction:
Improvetest coverageVSAvoidprogramming expertise required
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent introduces an intermediary system that translates natural language test cases into executable code. This intermediary layer allows test engineers to write tests in plain language while the system automatically generates the underlying programming code, thus maintaining high test coverage without requiring advanced programming skills from the test engineers.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system enables test engineers to self-generate executable test scripts through natural language input. The automated code generation feature allows users to create production-ready test code without manually writing programming syntax, making the test creation process accessible to non-programmers while maintaining professional quality standards.

Inventive Principle:
Principle #25Self-service

2Manufacturing precision

If test scripts are manually crafted by software engineers, then programming quality can be improved, but adaptability across multiple mobile platforms deteriorates

Engineering Contradiction:
Improveprogramming qualityVSAvoidcross-platform adaptability
Core Design Contradiction:
Manufacturing precisionVSAdaptability or versatility

Solution Approach 1:

The patent implements a universal test script generation system that can adapt to multiple mobile platforms through a single natural language interface. The system generates platform-specific code from generic natural language test cases, enabling the same test logic to be executed across iOS, Android, and other mobile platforms without requiring separate manual scripts for each platform.

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

Solution Approach 2:

The system dynamically adjusts code generation parameters based on the target platform. When generating test scripts, the system automatically modifies programming language syntax, API calls, and platform-specific configurations based on the selected target platform, while maintaining the core test logic defined in natural language. This allows high-quality, platform-adapted code generation without manual intervention.

Inventive Principle:
Principle #35Parameter changes

3Ease of operation

If automated test scripts are created without code generation, then ease of use is improved, but code redundancy and resource consumption increase

Engineering Contradiction:
Improveuser friendlinessVSAvoidprocessor execution cycles
Core Design Contradiction:
Ease of operationVSLoss of energy

Solution Approach 1:

The system performs preliminary code generation and optimization before test execution. By pre-compiling and caching generated code, the system eliminates the need to generate and parse code during each test run, significantly reducing processor execution cycles and memory usage during actual test execution while maintaining ease of use through automated generation.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system uses template-based code generation that creates reusable code patterns. Once a test case structure is generated, similar test cases can be created by copying and adapting existing templates, reducing overall code redundancy. The system also implements code caching to store frequently used code patterns, avoiding regenerating the same code multiple times and thus reducing computational resource consumption.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS10235280B2Automated script creation and source code generation for testing mobile devices
Publication Date: 2019.03.19 FMR CORP
  • US10235280B2 patent drawing
  • US10235280B2 patent drawing
  • US10235280B2 patent drawing

AI summary

Methods and apparatuses are described for automated script creation and source code generation for testing mobile devices. A server computing device generates a test script user interface for creating test scripts. The test script user interface comprises a first section for displaying a first plurality of test steps, a second section for displaying one or more properties of a programmatic method, a third section for displaying source code of the programmatic method, and a fourth section for displaying a screen representation of a mobile device application under test. The server computing device generates the first plurality of test steps in an ordered sequence, and automatically generates source code of the programmatic method for each of the first plurality of test steps. The server computing device creates a test script using the automatically-generated source code and executes the test script against a mobile device application on a mobile device.