CN103019937B - A kind of human-machine interaction interface traverse test method - Google Patents

A kind of human-machine interaction interface traverse test method Download PDF

Info

Publication number
CN103019937B
CN103019937B CN201210538442.2A CN201210538442A CN103019937B CN 103019937 B CN103019937 B CN 103019937B CN 201210538442 A CN201210538442 A CN 201210538442A CN 103019937 B CN103019937 B CN 103019937B
Authority
CN
China
Prior art keywords
test
traversal
interface element
interface
human
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210538442.2A
Other languages
Chinese (zh)
Other versions
CN103019937A (en
Inventor
康宗学
岳闯
蔡华成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201210538442.2A priority Critical patent/CN103019937B/en
Publication of CN103019937A publication Critical patent/CN103019937A/en
Application granted granted Critical
Publication of CN103019937B publication Critical patent/CN103019937B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a kind of human-machine interaction interface traverse test method, be applied to mobile terminal, comprise the following steps: a. arranges pattern and the intensity of traversal test, and described traversal mode divides according to control type, and described traversal intensity divides according to interface element path; B. control type and interface element Path Recognition module is embedded at mobile terminal; C. open arbitrary application, the control information at all interfaces of this application of autoscan identification and interface element path also generate list, select the pattern of traversal test and intensity to carry out traversal and test; D. judge whether there is exception in test process, have and extremely then abnormal information is saved as test text; E. judge whether traversal test completes, do not complete and then continue to perform traversal test, otherwise terminate test and preserve test result.The present invention can all interfaces in traversal applications fast and accurately, and automatic recording exceptional position, recording exceptional daily record, facilitates user to make corresponding measure timely.

Description

A kind of human-machine interaction interface traverse test method
Technical field
The present invention relates to a kind of method of testing, particularly relate to a kind of human-machine interaction interface traverse test method.
Background technology
So-called traversal (Traversal), refers to along certain search pattern, all does once and only does successively once access each node in tree.The operation that access node does depends on concrete application problem.Traversal is one of most important computing on binary tree, is the basis of binary tree carrying out other computing.The concept of certain traversal is also suitable for the situation of multielement set, as array.
Test at present for android application is mainly a large amount of unordered test, although this test ensure that the stability of software itself, but the feature of the randomness due to it, us are caused therefrom cannot accurately to locate the concrete parts led to errors, like this, our test just cannot understand the root of problem in depth, with the describing mode that people are familiar be exactly, this is a kind of perception test, we rest on the top layer of application program from start to finish, and cannot accomplish to allow test perform according to our step of anticipation, such test purpose is not strong, the test effect of our needs can only be reached by improving its testing time, if the situation of all elements on interface cannot be obtained accurately, just cannot locate the checkpoint that we need to test fast, Here it is, and we often need to perform up to ten thousand times even reason of 100,000 operations when performing this kind of test.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art; a kind of human-machine interaction interface traverse test method is provided; all interfaces in traversal applications fast and accurately; for in human-computer interaction interface control element level; program occurs abnormal or critical when there is unusual condition when performing test; automatic recording exceptional position, recording exceptional daily record, facilitates user to make corresponding measure timely.
In order to achieve the above object, the technical solution used in the present invention is, a kind of human-machine interaction interface traverse test method, is applied to mobile terminal, comprises the following steps:
A. arrange pattern and the intensity of traversal test, described traversal mode divides according to control type, and described traversal intensity divides according to interface element path;
B. control type and interface element Path Recognition module is embedded at mobile terminal;
C. open arbitrary application, the control information at all interfaces of this application of autoscan identification and interface element path also generate list, select the pattern of traversal test and intensity to carry out traversal and test;
D. judge whether there is exception in test process, have and extremely then abnormal information is saved as test text;
E. judge whether traversal test completes, do not complete and then continue to perform traversal test, otherwise terminate test and preserve test result.
Further, described control type comprises all system interface elements.
Further, described interface element path comprises N number of level, and 1 hierarchy definition is 1 grade.
Further, described step c comprises user further and arranges a key sequence boundary list of elements, then after opening arbitrary application, and the control information in the autoscan key sequence boundary list of elements and interface element path.
Further, the abnormal information described in steps d comprises abnormal control, abnormal interface element and abnormal interface element path.
Further, associating one by one of the test result described in step e and control in the list described in step c and interface element.
Compared with prior art, the invention has the beneficial effects as follows: the first, there is very strong adaptivity, user is without the need to providing any information about application to be measured, all information are obtained by automatic recognition method of the present invention, export from analysis data to taxonomic revision to last result, one-stop process is convenient and swift; That the second, can select traversal stresses pattern, can strengthening the test to specifying interface element easily, reducing invalid testing procedure, arresting the program exception that suspicious element causes greatly according to the pattern difference selected; Three, according to the result of interface element list, and the actual conditions of application, we can select the traversal of different levels, under the prerequisite not improving test cost, reduce test dead angle.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention.
Embodiment
Be described in detail, to be interpretated more in-depth technical characteristic of the present invention and advantage with reference to accompanying drawing below in conjunction with embodiment.
A kind of human-machine interaction interface traverse test method, is applied to mobile terminal, comprises the following steps:
A. arrange pattern and the intensity of traversal test, described traversal mode divides according to control type, and described traversal intensity divides according to interface element path; Described control type comprises all system interface elements.Described interface element path comprises N number of level, and 1 hierarchy definition is 1 grade.The control type of traversal comprises all Android system interface elements, specifically comprise button, text, list, property pages etc., according to the attribute information of each interface element, the action type that setting traversal performs, as button is generally clicking operation, the operations such as text is generally contrast text operation, and list is slip, click.Traversal intensity is used for setting the degree of depth performed, according to interface element list, interface element is divided into many levels by the depth according to path, become successively one-level, secondary, three grades ... the corresponding one-level interface of one-level traversal intensity of acquiescence, the corresponding secondary of second-order intensity and following interface, three grades of correspondences three grades and following interface, the like.
B. control type and interface element Path Recognition module is embedded at mobile terminal.This identification module is for identifying control type and interface element path.
C. open arbitrary application, the control information at all interfaces of this application of autoscan identification and interface element path also generate list, select the pattern of traversal test and intensity to carry out traversal and test." interface element list " is the set of all interface elements obtained by identification step, as application the number of interfaces that comprises, interface type, control type etc.
D. judge whether there is exception in test process, have and extremely then abnormal information is saved as test text.In the process of test, we can the control information of automatic contrast test, can carry out record in time, and feed back to user with the textual form being easy to read if noted abnormalities.Abnormal information comprises abnormal control, abnormal interface element and abnormal interface element path.
E. judge whether traversal test completes, do not complete and then continue to perform traversal test, otherwise terminate test and preserve test result.Associating one by one of test result described in step e and control in the list described in step c and interface element.Corresponding with the concrete button of button mode time such as, appearance in button mode abnormal is then preserved, or exception in interface is then corresponding with concrete interface element preserves.
Further, described step c comprises user further and arranges a key sequence boundary list of elements, then after opening arbitrary application, and the control information in the autoscan key sequence boundary list of elements and interface element path.Traversal mode is used for setting our emphasis in traversal, as selective listing pattern, will lay particular emphasis on list elements all in operation interface, as select button pattern, will lay particular emphasis on all button elements existed in operation interface.In the process of test, we can the control information of automatic contrast test, can carry out record in time if noted abnormalities, and be easy to read textual form feed back to our user.
As shown in Figure 1, concrete steps are as follows for method flow diagram of the present invention:
001, mobile terminal backstage control identification module is started;
002, arbitrary application of mobile terminal is opened;
003, the control information at all interfaces of this application of autoscan, puts into list;
004, select traversal mode and traversal intensity, such as select button pattern, intensity is one-level, namely scans the one-level interface of interface element;
005, traversal test is performed;
If 006 notes abnormalities, recording exceptional problem, and be kept in list, run if normal, preserve the normal testing results information of traversal to list;
007, judge whether that traversal completes, be, terminate test, otherwise return step 005.
Above content is in conjunction with concrete optimal way further description made for the present invention, should not assert that specific embodiment of the invention is confined to above explanation.For those skilled in the art, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, within the protection domain that the claim that all should be considered as being submitted to by the present invention is determined.

Claims (5)

1. a human-machine interaction interface traverse test method, is applied to mobile terminal, comprises the following steps:
A. arrange pattern and the intensity of traversal test, described traversal mode divides according to control type, and described traversal intensity divides according to interface element path;
B. control type and interface element Path Recognition module is embedded at mobile terminal;
C. open arbitrary application, the control information at all interfaces of this application of autoscan identification and interface element path also generate list, select the pattern of traversal test and intensity to carry out traversal and test;
D. judge whether there is exception in test process, have and extremely then abnormal information is saved as test text;
E. judge whether traversal test completes, do not complete and then continue to perform traversal test, otherwise terminate test and preserve test result;
Described step c comprises user further and arranges a key sequence boundary list of elements, then after opening arbitrary application, and the control information in the autoscan key sequence boundary list of elements and interface element path.
2. human-machine interaction interface traverse test method according to claim 1, is characterized in that: described control type comprises all system interface elements.
3. human-machine interaction interface traverse test method according to claim 2, is characterized in that: described interface element path comprises N number of level, and 1 hierarchy definition is 1 grade.
4. human-machine interaction interface traverse test method according to claim 3, is characterized in that: the abnormal information described in steps d comprises abnormal control, abnormal interface element and abnormal interface element path.
5. human-machine interaction interface traverse test method according to claim 4, is characterized in that: associating one by one of the test result described in step e and control in the list described in step c and interface element.
CN201210538442.2A 2012-12-13 2012-12-13 A kind of human-machine interaction interface traverse test method Expired - Fee Related CN103019937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210538442.2A CN103019937B (en) 2012-12-13 2012-12-13 A kind of human-machine interaction interface traverse test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210538442.2A CN103019937B (en) 2012-12-13 2012-12-13 A kind of human-machine interaction interface traverse test method

Publications (2)

Publication Number Publication Date
CN103019937A CN103019937A (en) 2013-04-03
CN103019937B true CN103019937B (en) 2015-11-18

Family

ID=47968562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210538442.2A Expired - Fee Related CN103019937B (en) 2012-12-13 2012-12-13 A kind of human-machine interaction interface traverse test method

Country Status (1)

Country Link
CN (1) CN103019937B (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216828A (en) * 2013-06-03 2014-12-17 刘伟 Testing method for performing function traversal on tested application program
CN103631590B (en) * 2013-11-29 2017-04-05 广东明创软件科技有限公司 The edit methods of automatic test script
CN103699483B (en) * 2013-12-20 2015-07-29 合一网络技术(北京)有限公司 A kind of broadcast state of flash player and browser-safe method of testing and device thereof
CN105095067A (en) * 2014-05-21 2015-11-25 北京奇虎科技有限公司 User interface element object identification and automatic test method and apparatus
CN105302715B (en) * 2014-07-30 2019-05-24 腾讯科技(深圳)有限公司 The acquisition methods and device of application program user interface
CN104346038B (en) * 2014-09-24 2018-05-01 广东欧珀移动通信有限公司 End message read method and system
CN105512023B (en) * 2014-09-26 2019-02-19 腾讯科技(深圳)有限公司 A kind of Monkey test method and device
CN105589802A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Software test method and apparatus
CN104572443A (en) * 2014-12-09 2015-04-29 微梦创科网络科技(中国)有限公司 Mobile terminal testing method and device
CN104572454B (en) * 2014-12-25 2017-08-01 广东欧珀移动通信有限公司 A kind of method and device of locating resource
CN104572450B (en) * 2014-12-25 2017-07-11 广东欧珀移动通信有限公司 A kind of method and device for detecting resource distribution
CN104598380B (en) * 2015-01-16 2017-08-01 广东欧珀移动通信有限公司 A kind of automated testing method and system based on control
CN105389178B (en) * 2015-10-16 2018-09-28 华为技术有限公司 a kind of application program operation method and device
CN105550101A (en) * 2015-12-02 2016-05-04 北京奇虎科技有限公司 Test method for application program, electronic device and system
CN105868105B (en) * 2016-03-24 2019-03-15 厦门美图移动科技有限公司 A kind of application traversal test method, equipment and mobile terminal
CN106294152B (en) * 2016-08-09 2019-03-12 努比亚技术有限公司 Using the traversal test device and method of user interface
CN106294167B (en) * 2016-08-16 2018-08-10 济南大学 The automatic traversal method of Android Application Program Interfaces and system
CN107741902B (en) * 2016-12-23 2020-07-07 腾讯科技(深圳)有限公司 Program application detection method and program application detection device
CN109145231A (en) * 2017-06-27 2019-01-04 阿里巴巴集团控股有限公司 A kind of generation method, device and the electronic equipment of interface element identifier
CN107451062B (en) * 2017-08-09 2020-12-29 百度在线网络技术(北京)有限公司 User interface traversal test method, device, server and storage medium
CN109558307B (en) * 2017-09-26 2022-03-22 卓望数码技术(深圳)有限公司 Game program testing method and system
CN108881585B (en) * 2018-05-08 2020-11-10 北京五八信息技术有限公司 Built-in application program test processing method and device, electronic equipment and storage medium
CN109726112A (en) * 2018-08-17 2019-05-07 平安普惠企业管理有限公司 Traverse test method, unit and computer readable storage medium
CN109376070A (en) * 2018-09-03 2019-02-22 深圳壹账通智能科技有限公司 A kind of test method and terminal device of application program control
CN109739764A (en) * 2018-12-29 2019-05-10 中国联合网络通信集团有限公司 A kind of applied program testing method and device
CN111611032B (en) * 2019-02-25 2023-05-26 阿里巴巴集团控股有限公司 User interface drawing level and excessive drawing detection method and device
CN111694752B (en) * 2020-07-28 2023-09-05 中移(杭州)信息技术有限公司 Application testing method, electronic device and storage medium
CN112560090B (en) * 2020-12-15 2023-01-24 建信金融科技有限责任公司 Data detection method and device
CN117873907B (en) * 2024-03-12 2024-06-07 麒麟软件有限公司 Control element testing method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484790A (en) * 2001-01-04 2004-03-24 �Ҵ���˾ Method and apparatus for exercising an unknown program with a graphical user interface
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method
CN101916225A (en) * 2010-09-02 2010-12-15 于秀山 Graphical user interface software function coverage testing method
CN102521121A (en) * 2011-11-18 2012-06-27 华为技术有限公司 Page testing method and page testing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484790A (en) * 2001-01-04 2004-03-24 �Ҵ���˾ Method and apparatus for exercising an unknown program with a graphical user interface
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method
CN101916225A (en) * 2010-09-02 2010-12-15 于秀山 Graphical user interface software function coverage testing method
CN102521121A (en) * 2011-11-18 2012-06-27 华为技术有限公司 Page testing method and page testing device

Also Published As

Publication number Publication date
CN103019937A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103019937B (en) A kind of human-machine interaction interface traverse test method
Kalimeris et al. A meta-analysis investigation of the direction of the energy-GDP causal relationship: implications for the growth-degrowth dialogue
CN108062484A (en) A kind of classification stage division based on data sensitive feature and database metadata
CN109582861A (en) A kind of data-privacy information detecting system
CN104699611A (en) Defect information extraction method based on open-source software defect code modification mode
CN108256416A (en) Biological characteristic detection method and system
CN105824756B (en) A kind of out-of-date demand automatic testing method and system based on code dependence
CN106294606B (en) A kind of CAE document conversion method and device based on general read-write frame
CN103136471A (en) Method and system for testing malicious Android application programs
CN106033392A (en) Method and device for detecting based on inspection word requirement
CN106919612A (en) A kind of processing method and processing device of SQL script of reaching the standard grade
CN101986296A (en) Noise data cleaning method based on semantic ontology
CN104699785A (en) Paper similarity detection method
CN105373472A (en) Database statistical accuracy-based test method and system
CN108491326A (en) Behavioral test recombination method, device and storage medium
CN101221530A (en) Method for automatically leading in test cases
CN101814052A (en) Automatic test method
CN102591773A (en) Automatic evaluation method for operation system security in classified protection evaluation and system thereof
CN112148602B (en) Source code security analysis method based on history optimization feature intelligent learning
CN105488599A (en) Method and device of prediction of article popularity
CN107168868A (en) A kind of software based on sampling and integrated study changes failure prediction method
CN103440197B (en) A kind of method automatically generating difference test report based on contrast test
CN104866425A (en) Database pressure testing method
Zor A neural network-based measurement of corporate environmental attention and its impact on green open innovation: Evidence from heavily polluting listed companies in China
CN106650450A (en) Malicious script heuristic detection method and system based on code fingerprint identification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151118