Batch test method and device for DTO class

A batch testing and test-to-be-tested technology, applied in the computer field, can solve the problems of wasting manpower and time and energy, complicated AT use case writing, etc., to simplify the AT process, save coding time and energy, and improve the efficiency of automated testing.

Pending Publication Date: 2019-10-11
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Based on this, in order to solve the above-mentioned problem that the writing of AT use cases is complicated, which will lead to a waste of a lot of manpower and time, a batch test method of DTO class is provided. Based on this method, each DTO in the DTO class list can be obtained At least one attribute corresponding to the class object, and the target method corresponding to each attribute in at least one attribute is acquired, and the target method is executed by calling the method through reflection, so as to realize batch testing of all DTO classes contained in the DTO class list

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
  • Batch test method and device for DTO class
  • Batch test method and device for DTO class
  • Batch test method and device for DTO class

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0047] First, the DTO class, introspection method, reflection mechanism, and reflection calling method mentioned in the embodiment of the present invention are introduced.

[0048]1. The DTO class is a data transmission object class. A DTO class can be regarded as a JavaBean. Among them, a JavaBean is a reusable component written in the JAVA language and is a class with the following characteristics:

[0049] Contains at least one public no-argument constructor; al...

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

The embodiment of the invention is suitable for testing in the field of R research and development management, and discloses a batch testing method and device for DTO class, and the method comprises the steps: obtaining a DTO class object list of a to-be-tested data transmission object, and enabling the DTO class object list to comprise the identification of at least one DTO class object; obtaining at least one attribute corresponding to a target DTO class object through an introspection method according to the identifier of the target DTO class object, the target DTO class object being any one of the at least one DTO class object; and obtaining a target method corresponding to each attribute in the at least one attribute, and executing the target method through a reflection calling method. By adopting the method and the device, AT case writing and AT testing processes are simplified, so that the coding time and energy are greatly saved, and the automatic testing efficiency is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a DTO-like batch testing method and device. Background technique [0002] With the rapid development of computer and network technology, the process of project development is more complicated, and the implemented program code is often relatively long. In order to ensure the normal operation of the project, in the later stage of project development, developers need to automate the project program (automated testing, AT) test, the program code in the project development process is written in the AT case, used to test the classes and methods implemented in the project, and then use other statistical tools to count the AT coverage rate, so as to ensure that the project development has reached The expected results may meet the expected requirements, so AT testing is extremely important in project development, and the writing of AT test cases is also an essential process. However, 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
CPCG06F11/3684
Inventor 刘翔钱晨
Owner PING AN TECH (SHENZHEN) CO LTD
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