Reflection-based automated testing method

A technology of automated testing and testing units, applied in software testing/debugging, etc., can solve problems such as high complexity, low interpretation and execution efficiency, complexity, etc., and achieve the effect of simple execution, easy execution and expansion, and high execution efficiency

Active Publication Date: 2015-07-01
BEIJING INST OF SPACECRAFT SYST ENG
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the disadvantage of this method is that it needs to deal with the mapping relationship between test actions (test unit modules) and test scripts, and generate scripts with correct syntax, which is more complicated
At the same time, the execution of test cases is actually realized by executing test scripts. It is necessary to develop corresponding script functions in advance and rely on script interpreters to interpret and execute scripts. The scalability is poor, the complexity is high, and the efficiency of interpretation and execution is low.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Reflection-based automated testing method
  • Reflection-based automated testing method
  • Reflection-based automated testing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention proposes a reflection-based automated testing method, which improves the traditional graphical test case execution technology, such as figure 1 Shown is a technical comparison diagram between the present invention and the traditional execution method of graphical test cases. figure 1 The upper middle is the traditional graphical test case execution technology, which has gone through the process from translation of use case modules to intermediate scripts and then to execution. figure 1 The following is the reflection-based use case execution method of the present invention, which can directly execute the test case in real time based on the module information and reflection technology, such as figure 2 Shown, the concrete steps of the present invention comprise:

[0020] (1) For all typical test services of the system under test that cannot be split further, multiple corresponding test unit modules are used to encapsulate the corresponding test se...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Provided is a reflection-based automated testing method. The method comprises the following steps that all test unit modules of a tested system are obtained, a corresponding Java code is programmed on each test unit module, and compiling is carried out; the needed test unit modules are selected to form test cases, and the test cases and corresponding test case information are stored in a database; the test cases are sequentially read from the database, and after an Object [] type parameter array, a Java-type Class object and a corresponding Java object are established according to the test unit modules in the test cases, testing is completed. Compared with the prior art, the translating conversion process from the test cases to scripts is avoided, testing can be directly and dynamically executed carried out according to the test unit modules, meanwhile extra script interpreters are not needed, the execution efficiency is high, and the extension is easy to carry out.

Description

technical field [0001] The invention relates to a technique in the field of automated testing, in particular to a reflection-based automated testing method. Background technique [0002] In the traditional automated testing field, test cases are generally described and executed by directly writing scripts. However, script-based development syntax is more complicated, not intuitive, and poor maintainability. Compared with scripts, the graphical test case development method is simpler, quicker, more intuitive and easier to maintain. Graphical test case design is generally completed by test case designers by combining various test unit modules. How to drive the execution of test cases is a key issue. [0003] The patent "An automated test system and method for generating and running test scripts" (application number CN200710086936) proposes a graphical interface for testers to select test actions (equivalent to test unit modules), set corresponding parameters, and then pass t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 吕伟宋宏江何晓宇孙波张海祥
Owner BEIJING INST OF SPACECRAFT SYST ENG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products