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

A method and device for generating integrated test cases

An integrated test and generation device technology, applied in the field of integrated test case generation, can solve the problems of low test case coverage, high script maintenance cost, and different output data, so as to avoid inconsistent test logic, facilitate management and maintenance, The effect of simplifying the generation steps

Active Publication Date: 2018-01-26
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, because the input and output data of different unit test cases implement different logic standards, each unit test case has different requirements for input data, and the format and form of output data are also different. Testers need to spend a lot of time writing intermediate scripts to achieve The connection and data exchange between unit test cases, the writing of scripts is more complicated, and it is more difficult to integrate the existing unit test cases, and these intermediate scripts are composed of a large number of simple judgments. It will become more and more bloated, and the maintenance cost of the script will become higher and higher
In practice, testers often prefer to rewrite the integration test cases directly, but the rewriting of the integration test cases does not reuse the existing unit test cases, obviously the cost of writing is high and the efficiency is low; at the same time, the rewritten test cases The coverage of use cases is often not high, and its reliability is difficult to be recognized by the team

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 and device for generating integrated test cases
  • A method and device for generating integrated test cases
  • A method and device for generating integrated test cases

Examples

Experimental program
Comparison scheme
Effect test

test Embodiment A, test Embodiment test Embodiment B

[0070] A specific application scenario of the embodiment of the present invention is as follows: an instant messaging system has two modules of login and friend, the unit test case of the login module has a unit test case A for verifying whether the login is successful, and the unit test case of the friend module has For the unit test case B for verifying whether the friend is online, use the unit test case A and unit test case B to construct the integration test case for verifying whether the online status of the friend in the friend list is correct when the friend logs in according to the generation method of the above-mentioned integration test case.

[0071] The output data of the standardized unit test case A is:

[0072]

[0073]

[0074] Among them, result indicates whether the unit test case A is successfully executed, and info.state indicates the current online status of the user, which includes "online" (online), "busy" (busy), "leave" (leave) and "offline " (o...

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 and device for generating an integrated test case. The method includes: standardizing the output data of the pre-unit test case, converting the output data into a preset format, and obtaining the standardized output data ; Extract useful data from the standardized output data, generate standardized input data for post-unit test cases according to the useful data, and perform corresponding data filling; wherein, the format of the standardized input data is the same as that of the standardized output data The format is the same; the standardized input data is converted into a form acceptable to the post-unit test case and input into the post-unit test case. The invention can simplify the generation process of the integration test case, improve the generation efficiency of the integration test case, and reduce the maintenance cost of the test case.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a method and device for generating integrated test cases. Background technique [0002] Integration testing, also called assembly testing or joint testing, refers to assembling some or all modules into subsystems or systems based on unit testing according to design requirements (such as according to structural diagrams) for testing. A certain function of the system is usually implemented by multiple modules working together. In order to verify a certain function during integration testing, these modules need to be tested together to ensure that the modules can work together according to the established intention and do not occur. conflict. [0003] Integration testing is a logical extension of unit testing. Before integration testing, unit testing needs to be completed first. In the process of testing modules such as smoke testing and unit testing, a lot of unit testing cases are...

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 NETEASE (HANGZHOU) NETWORK 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