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

Method and system for automatically generating test item

A test item, automatic generation technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problem of low test efficiency and achieve the effect of improving test efficiency

Inactive Publication Date: 2017-04-26
GUANGZHOU PINWEI SOFTWARE
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But because the test items are different, the above codes often need to be repeated, and the test efficiency is not high

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 and system for automatically generating test item
  • Method and system for automatically generating test item
  • Method and system for automatically generating test item

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0042] The present invention provides a method for automatically generating test items, referring to figure 1 , in the first embodiment of the method for automatically generating test items of the present invention, the method for automatically generating test items includes the following steps:

[0043] Step S10, selecting a test item template in the template library according to the test target;

[0044] In the new test project, the Maven (project object model) template is provided to generate the project through Maven Archtype (the plug-in of the project object model). The template can be a template that only generates a single test item including test codes and files; a template that only generates a single test item framework; or a template that can generate multiple test items at the same time.

[0045] It sho...

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 discloses a method for automatically generating a test item. The method for automatically generating the test item comprises the following steps: selecting a test item template in a template library according to a test target; scanning a tested item to obtain a service type of the tested item; using a reflecting method to obtain relevant information of the service type according to the service type; and using the test item template to generate the test item containing a test code according to the relevant information. The invention further discloses a system for automatically generating the test item. When the test item is created, the template is selected according to the test target, the service type of the tested item is obtained by the template, and the test code of the test item is created by using the reflecting method, thereby omitting the trouble of the tester to manually compile the test code, and improving the test efficiency.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a method and system for automatically generating test items. Background technique [0002] Among the existing testing frameworks, such as TestNg, Junit, selenium, etc. are the underlying frameworks, each business testing team needs to build a functional automation testing framework suitable for its own business characteristics on the basis of these underlying frameworks, and further write the code of the test project. Many parts of many test projects are the same, such as the basic class of database configuration and operation, various external interfaces, etc. Most of the tests have the same configuration and test code. However, because the test items are different, the above codes often need to be repeated, and the test efficiency is not high. Contents of the invention [0003] The main purpose of the present invention is to provide a method and system for automatic...

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/3608G06F11/3684
Inventor 马家麒
Owner GUANGZHOU PINWEI SOFTWARE
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