Test case generating method and test case generating device for user terminal

A test case generation and user terminal technology, which is applied in software testing/debugging, etc., can solve problems such as the inability to realize automatic generation of test cases, and achieve the effect of automatic generation

Active Publication Date: 2014-04-09
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, during the actual use of the user terminal by the user, the operation of the mobile phone may be a continuous operation sequence of irrelevant functions. For this commonly used scenario, the test case generation method for each function point in the prior art is obvious. The automatic generation of test cases cannot be realized, and the function points can only be combined or connected in series manually

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 generating method and test case generating device for user terminal
  • Test case generating method and test case generating device for user terminal
  • Test case generating method and test case generating device for user terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] figure 1 The flow chart of the test case generation method for the user terminal provided by Embodiment 1 of the present invention, as shown in figure 1 As shown, the method includes the following steps:

[0050] Step 101: Collect user behavior information of the user terminal, the user behavior information includes: user's operation behavior, operation object and operation time.

[0051] There is usually an event interface on the user terminal to record user behavior information on the user terminal, for example, an event (event) interface exists in the android system. Wherein, the above-mentioned operation behavior of the user includes operations such as clicking and sliding, and the operation object is, for example, a program icon clicked, a button clicked, a page swiped, and the like.

[0052] The user terminal usually sends the recorded user behavior information to the server. In addition to the user behavior information, it can also send information such as the ...

Embodiment 2

[0070] image 3 A structural diagram of a device for generating test cases for user terminals provided in Embodiment 2 of the present invention, as shown in image 3 As shown, the device includes: a behavior collection unit 300 , a sequence generation unit 310 and a use case generation unit 320 .

[0071] The behavior collection unit 300 is configured to collect user behavior information of the user terminal, and the user behavior information includes: the user's operation behavior, operation object and operation time.

[0072] Specifically, when collecting the user behavior information of the user terminal, the behavior collection unit 300 may obtain the user behavior information recorded by the user terminal through the event interface and uploaded to the server. In addition, in addition to user behavior information, information such as user terminal identification, user account number, and system version number may also be sent at the same time.

[0073] The sequence gene...

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 provides a test case generating method and a test case generating device for a user terminal. The method includes: S1, collecting user behavior information of the user terminal; S2, counting the collected user behavior information to acquire a user scenario operation sequence; S3, generating a test case according to the user scenario operation sequence. The user behavior information includes user's operation behaviors, operation objects and operation time; the user scenario operation sequence includes skips among the operation objects according to an operation execution sequence under the operation behaviors. By the test case generating method and the test case generating device, automatic test case generation for the user terminal can be realized.

Description

【Technical field】 [0001] The invention relates to the technical field of computer testing, in particular to a method and device for generating test cases for user terminals. 【Background technique】 [0002] With the continuous development of Internet technology, user terminals such as mobile phones and tablet computers are more and more widely used, and the testing of user terminals will inevitably be involved in the research and development process. However, the existing tests for user terminals are mainly functional tests. Test cases for each function point are designed based on the function list of the user terminal, and some typical abnormalities, stability or performance tests are added. [0003] However, during the actual use of the user terminal by the user, the operation of the mobile phone may be a continuous operation sequence of irrelevant functions. For this commonly used scenario, the test case generation method for each function point in the prior art is obvious...

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 BAIDU ONLINE NETWORK TECH (BEIJIBG) CO 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