Test method and terminal equipment

A technology of terminal equipment and testing methods, which is applied in the computer field and can solve problems such as data drive errors, test coverage omissions, and data not necessarily completely correct, etc.

Inactive Publication Date: 2016-06-01
ALIBABA GRP HLDG LTD
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Although the Mock front-end business flow method reduces the complexity of test case design and focuses the test focus on the process node, there is a potential risk: the mock front-end data may not be completely correct, such as the front-end business flow output If the parameters are changed, but the mock data is not updated in time, data-driven errors will occur, resulting in omission of test coverage
[0006] Test the source code to solidify the business flow method, and obtain the data generated by the pre-process by running the business flow solidified in the test code. This kind of data has a high degree of simulation and can avoid the problem of driving data errors in the mock pre-mode, but This design method has the following defects: the business process is solidified in the test code, and each business flow needs to design a corresponding test case; a large part of the business flow front-end process is the same, and the front-end business flow data The preparation has similarities, but cannot be reused; the entire business process drives data softly in one test case, which increases the complexity of test case maintenance; when encountering complex long-process business, the above defects will be more obvious

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 method and terminal equipment
  • Test method and terminal equipment
  • Test method and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In the technical solution provided by the embodiments of the present application, the testing of the source code under test is implemented by configuring test nodes, the test nodes corresponding to the execution nodes of each business process of the source code under test are defined, and different test nodes are combined to achieve different Business scenario testing. In the test execution process, complete the test of the tested source code business of the corresponding processing steps of each test node according to the information of the test node obtained in the test case, and finally complete the test of the business process of the entire tested source code to achieve The information of the same test node can be used in different test cases, and the test cases can be configured flexibly by the information of the test node.

[0053] The technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this appli...

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 method and terminal equipment. The test method comprises the following steps: the terminal equipment determines a test node which executes a test function corresponding to each processing step and obtains the information of each test node according to processing steps contained in the business flow of a tested source code; the terminal equipment generates the information of each test node into a test use case according to the business flow of the tested source code; and the terminal equipment tests the tested source code according to the test case. Through the test method and the terminal equipment, the same test node can be used in different test use cases, and the test use cases can be flexibly configured by the test nodes.

Description

Technical field [0001] This application relates to the computer field, and in particular to a testing method and terminal equipment. Background technique [0002] Integration testing is generally integrated into the source code under test as an independent test module. The purpose of integration testing is to cover the overall business logic and abnormal branches of the source code under test by running test cases to ensure the correctness of business and exception handling. The design of the integration test is mainly composed of two parts: the source code to be tested and test cases. The test cases are driven data collections composed of various business parameters, which are used to simulate the use cases of certain business scenarios. The test cases are responsible for The parameters are combined according to certain rules and passed to the corresponding interface of the tested source code. The tested source code completes the simulation operation, and then the test case chec...

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
Inventor 何雷王敬财舒梁明段末
Owner ALIBABA GRP HLDG 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