Software testing method facing to software upgrading
A software testing method and software upgrading technology, applied in software testing/debugging, program loading/starting, program control devices, etc., can solve problems such as lack of
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach
[0044] a) For the program code of the existing software version (the program that realizes the calculation function of a specific function), the tester uses the automatic construction technology of the metamorphosis relationship of the present invention to construct the metamorphosis relationship of each program.
[0045] b) During the software upgrade process, for the modified program, testers generate n random numbers within a certain range (such as -5~5) as test cases.
[0046] c) Substitute each test case and its corresponding output in the modified program into the transformation relation constructed by the program before modification, and check whether the transformation relation is established. If the modified program does not conform to the metamorphic relationship constructed before, it means that there is an error in the software upgrade process.
[0047] Among them, the detailed process of constructing the metamorphic relationship is as follows:
[0048] The invent...
Embodiment
[0080] Assume that a developer a wants to modify and upgrade a program that realizes the sin function in a mathematical function library.
[0081] Before the upgrade, the tester b uses the present invention to construct the metamorphic relationship of the original version of the program. The main metamorphic relations detected are as follows:
[0082]
[0083] After the developer upgrades the program that implements the sin function, in order to check the correctness of the upgraded program, the tester needs to check whether the upgraded program satisfies each transformation relationship in the above table. For example, for the transformation relationship sin(x)-sin(x-2π)=0, testers need to generate 100 random numbers between -5 and 5 as test cases, and bring these 100 test cases into the transformation relationship sin( x)-sin(x-2π)=0 to check whether the equation is still valid. If a test case makes the equation not valid, it means that the test case has failed the test....
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com