Recording and playback test method and related device

A test method and technology for testing software, applied in the direction of software testing/debugging, etc., can solve problems such as affecting test progress, inconsistency, playback failure, etc., to reduce the probability of playback failure, improve test reliability, and ensure the effect of consistency

Inactive Publication Date: 2019-06-07
度小满科技(北京)有限公司
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when using the existing recording and playback test method to actually test the software, it is very easy to fail the playback due to various reasons, which not only affects the testing, but also affects the judgment of the test results
For example, the existing recording and playback method records the click operation based on recording the absolute coordinates or relative coordinates of the click position on the operation interface, but in actual playback, it may be due to interface changes, screen size changes, or scroll bar position errors As a result, the clicked content during playback is inconsistent with the clicked content corresponding to the coordinates during recording, so playback fails
Obviously, the result of this kind of playback failure is because the method cannot adapt to changes such as interface or screen size, so the result of this kind of playback failure should not be used as the key basis for judging whether the software test is passed or not
It can be seen that the reliability of the existing recording and playback test methods is poor, and the test results lack accuracy.

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
  • Recording and playback test method and related device
  • Recording and playback test method and related device
  • Recording and playback test method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] see figure 1 , which is a flow chart of a recording and playback testing method provided in an embodiment of the present application. This method is used to test software.

[0072] Such as figure 1 As shown, the recording playback test method provided in the embodiment of the present application includes:

[0073] Step 101: Obtain the operation sequence recorded when the software under test is manually operated.

[0074] It should be noted that, in this embodiment, the operation sequence records multiple operations determined in execution order, and a screenshot of the operation interface corresponding to each operation. As an example, a software tester performs n operations in sequence, which are sequentially recorded as: operation 1, operation 2, ... operation n in the sequence of operations. Where n is an integer greater than or equal to 2. Operation 1, operation 2, ... the operation interface screenshots corresponding to operation n are the operation interface ...

Embodiment 2

[0097] see figure 2 , which is a flow chart of another recording and playback testing method provided in the embodiment of the present application.

[0098] Such as figure 2 As shown, the recording playback test method provided in this embodiment includes:

[0099] Step 201: Obtain the operation sequence recorded when the software under test is manually operated.

[0100] In this embodiment, the implementation manner of step 201 is the same as the implementation manner of step 101 in the foregoing embodiments. For related descriptions about step 201, reference may be made to the foregoing embodiments, and details are not repeated here.

[0101] Step 202: Classify the triggered controls in the screenshot of the operation interface to obtain the classification information of the triggered controls; and / or identify the text information of the triggered controls to obtain the identified Text information of the triggered control; and / or, performing image feature recognition o...

Embodiment 3

[0143] see image 3 , which is a flow chart of another recording and playback testing method provided in the embodiment of the present application.

[0144] Such as image 3 As shown, the recording playback test method provided in this embodiment includes:

[0145] Step 301: Obtain the operation sequence recorded when the software under test is manually operated.

[0146] Step 302: Obtain the semantic information of the triggered control by using the screenshot of the operation interface.

[0147] Step 303: Obtain a screenshot of the first response interface corresponding to the operation.

[0148] The screenshot of the first response interface refers to the screenshot of the response effect presented by the software under test after the triggered control on the screenshot of the operation interface of the software under test is triggered by the operation corresponding to the screenshot of the operation interface during recording.

[0149] Step 304: Mark at least one refer...

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 recording and playback test method and a related device. The method includes the steps of determining a target control matched with triggered control on operation interface during recording from operation interface during playback based on semantic information of control on operation interface of tested software during recording and playback; during recording, correspondingly applying the operation applied to triggered control to target control during playback, so that playback of operation corresponding to operation interface during recording is realized; and recording each operation in the obtained operation sequence, determining the target control one by one according to the execution sequence of each operation in the operation sequence, and executing the corresponding operation, so that the playback of the whole operation sequence can be completed, and finally, the test result of the tested software is determined. According to the method, the control is matched according to the semantic information of the control, operation playback is carried out depending on the coordinate position on the operation screenshot, the playback failure probability is effectively reduced, and the test reliability is improved. And furthermore, a more accurate test result of the tested software can be obtained.

Description

technical field [0001] The present application relates to the technical field of software testing, in particular to a recording and playback testing method and related devices. Background technique [0002] At present, when the software needs to be tested, the testing operation can be performed manually by the testers, but the disadvantage is that it consumes manpower and the efficiency is low. Recording and playback testing is another commonly used software testing method. By recording the operation process of manual testing and replaying the operation, the automation of software testing is realized, which greatly saves manpower consumption and improves the efficiency of software testing. . [0003] The recording and playback test process roughly includes the following three links: First, when the tester manually operates on the software under test (such as screen click operation and / or button operation), the coordinate position and coordinate position of the clicked inter...

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 度小满科技(北京)有限公司
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