Function-Message Identifier Test Case Generation for Globalization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing test automation systems face challenges in efficiently generating test cases for continuous globalization verification testing in agile computer program development, particularly due to hardcoded messages in source code, which lead to translatability issues and bottlenecks in the DevOps process, where developers lack time to generate test cases for new features and translate messages in each sprint.

Innovation Solution

A function-message identifier oriented test case generation method that identifies newly added globalization functions in source code, generates function-message data associating function identifiers with message identifiers, and automatically creates test cases to verify message output in different languages, providing real-time translatability error prevention and continuous globalization verification testing.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If developers manually generate test cases and translate messages in each sprint, then globalization verification accuracy is improved, but development time and productivity deteriorate

Engineering Contradiction:
Improveglobalization verification accuracyVSAvoiddevelopment time
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The system performs preliminary actions by automatically generating test cases and identifying translation requirements before the actual globalization verification process. The automated test case generation system proactively analyzes source code changes, identifies hardcoded messages, and creates verification test cases in advance, eliminating the need for manual intervention during each sprint while maintaining high verification accuracy.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If automated test case generation is implemented, then productivity is improved, but test case quality and verification precision deteriorate

Engineering Contradiction:
Improvetest case generation efficiencyVSAvoidtest case quality
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The system incorporates feedback mechanisms where test execution results are automatically analyzed and used to improve future test case generation. The system learns from previous test outcomes, identifies patterns in translation requirements, and continuously refines its test case generation algorithms, ensuring that automated test cases maintain high quality while improving generation efficiency over time.

Inventive Principle:
Principle #23Feedback

3Ease of manufacture

If hardcoded messages are used in source code, then ease of manufacture is improved, but translatability and adaptability deteriorate

Engineering Contradiction:
Improvecode implementation simplicityVSAvoidtranslatability
Core Design Contradiction:
Ease of manufactureVSAdaptability or versatility

Solution Approach 1:

The system extracts hardcoded messages from the source code and separates them into translatable string resources. By taking out these messages and storing them in external message files with unique identifiers, the system maintains the simplicity of code implementation while enabling easy translation and localization without requiring changes to the core source code structure.

Inventive Principle:
Principle #2Taking out (Extraction)

4Measurement precision

If manual message translation is performed for each sprint, then translation accuracy is improved, but time consumption and complexity increase

Engineering Contradiction:
Improvetranslation accuracyVSAvoidtranslation process complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system implements self-service by automatically identifying messages requiring translation, generating translation requests, and integrating translation results back into the codebase. The automated system handles the entire translation workflow including message extraction, translation coordination, and integration, reducing manual intervention while maintaining translation accuracy through systematic processes.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS10909023B2Function-message oriented test case generation for supporting continuous globalization verification testing
Publication Date: 2021.02.02 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10909023B2 patent drawing
  • US10909023B2 patent drawing
  • US10909023B2 patent drawing

AI summary

One or more embodiments are described for function-message identifier oriented test case generation for seamlessly supporting continuous globalization verification testing in agile computer program product development. An example computer-implemented method includes identifying a newly added globalization function in a modified source code, the globalization function including a message to be output via a user-interface, the message being in a first language. The method also includes generating function-message data that associates a function identifier of the globalization function with a message identifier of the message. The method also includes generating, automatically, a test case for verifying the globalization function outputs the message via the user-interface in a second language using the function-message data. The method also includes creating and broadcasting a test report to a development team, the test report indicating a result of executing the test case.