Test case design method and apparatus

A test case and design method technology, applied in software testing/debugging, calculation, error detection/correction, etc., can solve problems such as easy failure of test data and difficulty in effective inheritance of test assets, so as to achieve clear test logic, realize efficient inheritance, Solve the effect of failure

Active Publication Date: 2018-04-13
AGRICULTURAL BANK OF CHINA +1
View PDF16 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above problems, the present invention provides a test case design method and device, which solves the problems that test data is easy to fail and test assets are difficult to effectively inherit

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
  • Test case design method and apparatus
  • Test case design method and apparatus
  • Test case design method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] see figure 1 A method for designing a test case provided in Embodiment 1 of the present invention, the method includes the following steps:

[0060] S11. Create an interface object model according to the interface object information, and set a test object template according to the interface object model, wherein the interface object information includes basic information, version information, and positioning information of interface elements;

[0061] It should be noted that the test object can also be understood as an interface object. It is used to describe all the basic information of interface elements, including interface path, interface screenshot, object name, object description, object type, object screenshot, etc. This information is used to filter out appropriate interface elements during test case design and execute the test case Specific elements are identified during the analysis of test results. Among them, the interface path is used to specify the inter...

Embodiment 2

[0081] Referring to embodiment one of the present invention and figure 1 The specific process of steps S11 to S14 described in the above, the implementation process of each step will be described in this embodiment.

[0082] First, set up the test object module. The test object template mainly includes three types of features: basic information, version information, and location information. For specific characteristics and main functions of each type of information, please refer to the corresponding description in Embodiment 1, and will not repeat them here. .

[0083] Refer to Table 1 for the type definition table of the test object (also called interface object) provided in the embodiment of the present invention, in which the test object is described in a standardized manner.

[0084] Table 1 Test object type definition table

[0085]

[0086]

[0087]

[0088] Table 1 above defines 12 common types of interface objects, which can cover most of the interface obje...

Embodiment 3

[0159] Corresponding to the test case design method disclosed in Embodiment 1 and Embodiment 2 of the present invention, Embodiment 3 of the present invention also provides a test case design device, see image 3 ,include:

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 test case design method and apparatus. The method comprises the steps of creating an interface object model according to interface object information, and according to the interface object model, setting a test object template; determining a test type of test data, setting a data identifier corresponding to the test type, and according to the data identifier, creating a test data template; by setting formats of elements of an atomic test step, obtaining a template of the atomic test step, and according to the template of the atomic test step, creating a test logic model; and according to the test object template, the test data template and the test logic model, generating a test case. Through standardization processing of a test object, test data and test logic, the problems of easy failure of the test data and difficulty in effective inheritance of test assets are solved.

Description

technical field [0001] The invention relates to the technical field of data testing, in particular to a test case design method and device. Background technique [0002] The test case is an important asset produced in the testing work of commercial banks and the most basic unit of testing operations. The writing of traditional test cases is designed by testers based on test data. However, this kind of test case mainly has the following deficiencies in the testing work of commercial banks. [0003] On the one hand, the preparation of test data takes a long time. At the same time, the test data is affected by factors such as test environment switching and test execution, and the probability of failure is relatively high, which causes great difficulties in test preparation. On the other hand, with the rapid development of the software testing industry, the market demand for professional testing talents is increasing year by year. Facing the high salary competition in the sof...

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 AGRICULTURAL BANK OF CHINA
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