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

Method, device and equipment for generating test case and computer readable storage medium

A technology for generating test cases and test cases, applied in the computer field, can solve the problems of cumbersome process, insufficient visualization, and high technical requirements of Java language, so as to improve efficiency and ensure ease of use.

Inactive Publication Date: 2018-07-27
HAIER YOUJIA INTELLIGENT TECH BEIJING CO LTD
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for the first graphically-based test case development method, the test script is still used to drive the execution of the test case, and the problem of complex grammar of the test script is not solved; for the second test method based on Java reflection mechanism, use The database is used to access test cases, which makes the process of generating test cases too cumbersome, and the Java language has high technical requirements for testers, and the visualization is not good enough

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
  • Method, device and equipment for generating test case and computer readable storage medium
  • Method, device and equipment for generating test case and computer readable storage medium
  • Method, device and equipment for generating test case and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to further explain the technical means and functions adopted by the present invention to achieve the intended purpose, the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0040] The first embodiment of the present invention proposes a method for generating test cases, such as figure 1 As shown, the method specifically includes the following steps:

[0041] Step S101: Obtain the class file to be tested, and at least obtain the methods in the class file.

[0042] Specifically, obtain the class files to be tested, including:

[0043] Obtain the JAR (Java Archive, Java archive file) package in the project to be tested, and obtain the class file to be tested in the JAR package.

[0044] Further, at least obtain the methods in the class file, including:

[0045] According to the preset annotations in this type of file, use the reflection mechanism to obtain the method, method return val...

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 invention provides a method, device and equipment for generating a test case and a computer readable storage medium. The method comprises the steps of obtaining a class file to be tested and at least obtaining a method in the class file; generating a Java management extensible JMX file containing the method; according to the JMX file, generating the test case of the class file. When the test case is generated, a complex script does not need to be compiled, a database is not utilized either, the efficiency of generating the test case can be improved, and meanwhile, a visualized interface ensures the usability of a testing tool.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device, equipment and computer-readable storage medium for generating test cases. Background technique [0002] In order to reduce the complexity of writing traditional test scripts, the following two methods are provided in the prior art: the first one adopts a graphical-based test case development method, and testers can combine various test actions to complete the test case script The second method adopts the test method based on Java reflection mechanism, first saves the test cases generated for various test modules in the database, then reads the test cases from the database, and according to the test business of each test module The Java class directly executes the Java class of the test service by using the Java reflection technology. However, for the first graphically-based test case development method, the test script is still used to drive the execu...

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
IPC IPC(8): G06F11/36
CPCG06F11/3672G06F11/3684
Inventor 黎韦
Owner HAIER YOUJIA INTELLIGENT TECH BEIJING CO LTD
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