Test method and related device

A test method and technology to be tested, applied in the field of data processing, can solve the problems of cumbersome test process and low test efficiency, and achieve the effect of improving test efficiency and simplifying test process

Pending Publication Date: 2022-04-22
TENCENT TECH (SHENZHEN) CO LTD
0 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

When testing the software to be tested, multiple interfaces will be called. Front-end testers need to create different interface test cases one by one according...
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

Method used

When realizing target business function, the state that this target business function involves can be a lot, and the transformation between the state is very complicated, can pass through the method for traversing, traverse all states that this target business function involves, determine that the software to be tested realizes The state jump path of the target business function, thereby improving the accuracy of obtaining the state jump path. The embodiment of the present application does not specifically limit the traversal method, for example, a depth-first traversal method may be used, and a breadth-first traversal method may also be used.
When the interface is called more in different business functions, the state that changes is more, the test situation of the interface is easily missed when creating the test case by the interface one by one, thereby causing the test for the interface to be incomplete, and then causing waiting The testing of the test software is incomplete. As the business functions of the software to be tested increase, such as order status flow software, financial approval software, etc., it is easier to miss through the interface-by-interface testing method, and the state machine configuration file can simplify complex logic into a limited number of stable states. The complex interface calling process can be simplified into a state change process, and all situations can be covered by defining state changes, improving the coverage rate of test situations.
[0060] Through the interface test case, it can be verified whether changing from one state to another state meets expectations, that is, the jump process between adjacent states corresponds to an interface test case. Add the interface test cases required on the state transition path used to realize the target business function to the same use case set, so that the interface test can be called from the use case set corresponding to the target business test function when the target business function is subsequently tested Use cases to improve test efficiency.
[0075] The input data in the condition of the state machine configuration file is an interface parameter, and the interface parameter can be modified, so that the corresponding interface can be tested multiple times through the modified interface parameter. The state machine configuration file has a mod...
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

Abstract

The embodiment of the invention discloses a test method and a related device, when to-be-tested software is tested, the to-be-tested software is not tested one by one according to interfaces required for implementing the to-be-tested software, but is tested one by one according to business functions of the to-be-tested software, and even the test of a plurality of business functions can be processed in batches. When the target service function is tested, a plurality of states involved in the implementation of the target service function by the to-be-tested software are obtained, and a state jump path for the implementation of the target service function by the to-be-tested software can be determined according to a state jump sequence of the plurality of states. The interface test cases required for realizing adjacent state skipping on the state skipping path are added into the case sets, the interface test cases are called from the corresponding case sets in sequence according to the skipping sequence of the state skipping path during testing, the output of the previous interface test case is the input of the next interface test case, and the next interface test case is the input of the next interface test case. The realization process of the target business function is simulated, the test process is simplified, and the test efficiency is improved.

Application Domain

Technology Topic

TestwarePathPing +6

Image

  • Test method and related device
  • Test method and related device
  • Test method and related device

Examples

  • Experimental program(1)
  • Effect test(1)

Example

[0047] Jumping between different states requires different interface test cases, such as from never receiving task status to receiving task, uncommitted task status needs to use interface test case x, from received task, uncommitted task status to complete the task state requires the use of interface test case y. Server 200 may determine the interface test cases x and y required to implement the "do task" business function corresponding to the jump path, and the interface test case x and interface test case y is added to the use case set 201 for implementing the "do task" business function.
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

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
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

Similar technology patents

Classification and recommendation of technical efficacy words

  • The testing process is simple
  • Improve test efficiency

Automatic test method based on Android

Owner:GUANGDONG OPPO MOBILE TELECOMM CORP 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