Event simulation-based user interface test method and device

A user interface and testing method technology, applied in software testing/debugging, etc., can solve problems such as easy missed testing, and achieve the effect of avoiding missed testing

Active Publication Date: 2011-05-25
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem in the prior art that it is easy to miss a test in user interface testing based on event simulation, the present invention provides a user interface testing method based on event simulation. The specific technical solution includes the following steps:

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
  • Event simulation-based user interface test method and device
  • Event simulation-based user interface test method and device
  • Event simulation-based user interface test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0038] Please refer to figure 2 , figure 2 It is a schematic diagram of the overall flow of the user interface testing method based on event simulation in the embodiment of the present invention. The method mainly includes the following steps:

[0039] Step 101: Receive the test case. The test case includes the description of the event type and the type of the control where the event occurs, that is, the description of what event is requested to be simulated on which control. If the event needs to pass parameters, the request also includes the parameter description of the event .

[0040] The test case is written by the tester, and its purpose is to observe the response of the system through the operation of these test cases, so as to find ou...

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 an event simulation-based user interface test method, which comprises the following steps of: receiving a test case which comprises the type explanation of an event required to be tested and the type explanation of a control used when the event occurs; sending a current event simulation request according to the test case; judging the rationality and completeness of a current event and processing the current event according to the rationality and the completeness; establishing the current event by calling an upper layer working environment interface; and recording the running log of the current event. According to the test method, the layout change situation of a user interface can be processed well during testing of the user interface, linkage between events is considered, the logical relation between the control and the event is considered in every event simulation request and a test action which is consistent with the logical relation of the event required to be simulated is generated automatically, so that test missing is avoided well.

Description

【Technical field】 [0001] The invention relates to the field of user interface testing, in particular to a user interface testing method and device based on event simulation. 【Background technique】 [0002] With the wide application of the Internet, the content, layout, and style of the web pages on the website often need to be changed, which leads to an increasing number of new defects (BUG) introduced by changes in the front-end user interface during the project upgrade process. There is also such a problem in other software products, that is, the modification of the user interface will lead to new bugs in the project, so it is necessary to have a better testing method to effectively test the user interface. [0003] There are currently two types of test tools: the first type is a simple simulation of the mouse track, that is, the test script is the coordinate track of the mouse passing and the click on the track. In this way, when the layout of the user interface changes,...

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