Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A Method of Automated Testing Based on Reflection

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

Active Publication Date: 2017-11-07
BEIJING INST OF SPACECRAFT SYST ENG
View PDF5 Cites 0 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
  • A Method of Automated Testing Based on Reflection
  • A Method of Automated Testing Based on Reflection
  • A Method of Automated Testing Based on Reflection

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, concrete steps of the present invention include:

[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 service...

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

A reflection-based automated testing method, first obtain all test unit modules of the system under test, and compile the corresponding Java code for each test unit module; then select the required test unit modules to form test cases, and test The use cases and corresponding test case information are stored in the database; finally, the test cases are read sequentially from the database, and the parameter array of Object[] type, the Class object of the Java class and the corresponding Java object are created according to the test unit module in the test case, and then executed complete test. Compared with the prior art, the present invention avoids the translation and conversion process from test cases to scripts, can directly execute tests dynamically according to test unit modules, does not need additional script interpreters, and has high execution efficiency and is easy to expand.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products