CN104008047A - Intelligent terminal program testing method and system - Google Patents

Intelligent terminal program testing method and system Download PDF

Info

Publication number
CN104008047A
CN104008047A CN201310061904.0A CN201310061904A CN104008047A CN 104008047 A CN104008047 A CN 104008047A CN 201310061904 A CN201310061904 A CN 201310061904A CN 104008047 A CN104008047 A CN 104008047A
Authority
CN
China
Prior art keywords
test
intelligent terminal
playback
recording
tested
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.)
Pending
Application number
CN201310061904.0A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310061904.0A priority Critical patent/CN104008047A/en
Publication of CN104008047A publication Critical patent/CN104008047A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention is applicable to the technical field of terminal test and provides an intelligent terminal program testing method and system. The method includes that when an instruction that plays back to test a program to be tested is received, a prerecorded recording result file is read through a playing back script file, the recording result file includes an input event and a test path of the program to be tested, and the input event is received by an intelligent terminal where the program to be tested is located; the read recording result file is sent to the intelligent terminal; the program to be tested is started, and playback testing is automatically performed. By means of the intelligent terminal program testing method and system, track testing by an operator is not required in the whole program testing process, automatic playback testing of program test of the intelligent terminal is achieved, manual testing time is greatly saved, and costs of the intelligent terminal are effectively lowered.

Description

Intelligent terminal program testing method and system
Technical field
The invention belongs to terminal test technical field, relate in particular to a kind of intelligent terminal program testing method and system.
Background technology
Along with the development of intelligent terminal technology and universal, various intelligent terminals play an increasingly important role in people's daily life, working and learning, meanwhile, in order to meet the ever-increasing demand for experience of people, the function of the various programs that intelligent terminal provides is more and more hommization and intellectuality also, select the main consideration aspect of intelligent terminal and the performance index such as stability, reliability of program also become people, therefore, the test of intelligent terminal Program is also become to very important.
Prior art mainly adopts manual test mode to the program test of intelligent terminal, i.e. each test all needs to trigger manually, and whole test process all needs operating personnel's tracking and testing, troublesome poeration, consuming time, and improved the cost of intelligent terminal.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of intelligent terminal program testing method, is intended to solve prior art intelligent terminal program test process need operating personnel tracking and testing, troublesome poeration, consuming time, and improved the Cost Problems of intelligent terminal.
To achieve these goals, the embodiment of the present invention provides following technical scheme:
The embodiment of the present invention is achieved in that a kind of intelligent terminal program testing method, and described method comprises:
In the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, described in record destination file and comprise: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
The destination file of recording reading is sent to described intelligent terminal;
Start program to be tested, automatically perform playback test.
The embodiment of the present invention also provides a kind of intelligent terminal PTS, and described system comprises:
Reading unit, for in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
Transmitting element, for being sent to described intelligent terminal by the destination file of recording reading;
Playback test cell, for starting program to be tested, automatically performs playback test.
The embodiment of the present invention compared with prior art, beneficial effect is: in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure, the destination file of recording reading is sent to described intelligent terminal, start program to be tested, automatically perform playback test.Whole test process does not need operating personnel's tracking and testing, has realized the robotization playback test of intelligent terminal program test, has saved a large amount of manual test time, and has effectively reduced the cost of intelligent terminal.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of the realization of the intelligent terminal program testing method that provides of the embodiment of the present invention one;
Fig. 2 is the process flow diagram of the realization of the intelligent terminal program testing method that provides of the embodiment of the present invention two;
Fig. 3 is the structural drawing of the intelligent terminal PTS that provides of the embodiment of the present invention three;
Fig. 4 is the structural drawing of the intelligent terminal PTS that provides of the embodiment of the present invention four.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention provides a kind of intelligent terminal program testing method, and described method comprises:
In the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, described in record destination file and comprise: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
The destination file of recording reading is sent to described intelligent terminal;
Start program to be tested, automatically perform playback test.
The embodiment of the present invention also provides a kind of intelligent terminal PTS, and described system comprises:
Reading unit, for in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
Transmitting element, for being sent to described intelligent terminal by the destination file of recording reading;
Playback test cell, for starting program to be tested, automatically performs playback test.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
embodiment mono-
Fig. 1 shows the process flow diagram of the realization of the intelligent terminal program testing method that the embodiment of the present invention one provides, and details are as follows:
In S101, in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
In the present embodiment, before S101, intelligent terminal PTS and intelligent terminal connect, if not successful connection is exported information to user, if successful connection shows successful connection.
In the present embodiment, intelligent terminal can be iphone intelligent terminal, andriod intelligent terminal or linux intelligent terminal etc.
In the present embodiment, described incoming event comprises: keyboard incoming event and/or screen incoming event.
In S102, the destination file of recording reading is sent to described intelligent terminal;
In the present embodiment, described in intelligent terminal receives, record destination file, after program to be tested starts, according to the described destination file of recording, described program to be tested is operated.
In S103, start program to be tested, automatically perform playback test.
In the present embodiment, the number of times of can be pre-configured automatic playback test, when starting program to be tested, according to described number of times, automatically performs playback test.
In the present embodiment, in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure, the destination file of recording reading is sent to described intelligent terminal, start program to be tested, automatically perform playback test.Whole test process does not need operating personnel's tracking and testing, has realized the robotization playback test of intelligent terminal program test, has saved a large amount of manual test time, and has effectively reduced the cost of intelligent terminal.
embodiment bis-
Fig. 2 shows the process flow diagram of the realization of the intelligent terminal program testing method that the embodiment of the present invention two provides, and details are as follows:
In S201, by recording script file, monitor and record the incoming event of intelligent terminal reception and treat the test path of test procedure;
In the present embodiment, can carry out by system bottom input mechanism the screen input of monitoring users, preserve simultaneously test path to tested program,
In S202, described incoming event is kept at and is recorded in destination file;
In the present embodiment, by recording script file, AM automatic monitoring is also recorded the incoming event of intelligent terminal reception and is treated the test path of test procedure, does not need artificial participation to record, and has further saved the time hand-manipulated.
In S203, in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
In S204, the destination file of recording reading is sent to described intelligent terminal;
In the present embodiment, S203 is specially: in the time receiving playback and test programmed instruction to be tested, by playback script file, read line by line the destination file of recording of prerecording; Correspondingly, S204 is specially: the described destination file of recording reading is line by line sent to described intelligent terminal.By reading one by one the event of recording in destination file, and the event of recording destination file described in sending is one by one to intelligent terminal, makes the carrying out that test process can be incremental.
Certainly, in order to improve execution efficiency, can also disposablely read recording after destination file of prerecording, will record destination file and once be sent to described intelligent terminal.
In S205, start program to be tested, automatically perform playback test.
In S206, record the test result of the test of playback each time;
In S207, described test result is analyzed.
In the present embodiment, automatically record the test result of the test of playback each time, described test result is analyzed, realized each playback test result of autostore and carried out corresponding data analysis.
In the present embodiment, by recording script file, monitor and record the incoming event of intelligent terminal reception and treat the test path of test procedure, described incoming event is kept at and is recorded in destination file, in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure, the destination file of recording reading is sent to described intelligent terminal, start program to be tested, automatically perform playback test.Whole test process does not need operating personnel's tracking and testing, has realized the robotization recording and playback test of intelligent terminal program test, has saved that craft is recorded and the test duration, and effectively reduces the cost of intelligent terminal.
embodiment tri-
Fig. 3 shows the structural drawing of the intelligent terminal PTS that the embodiment of the present invention three provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
Described system comprises: reading unit 31, transmitting element 32 and playback test cell 33.
Reading unit 31, for in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
Described incoming event comprises: keyboard incoming event and/or screen incoming event.
Transmitting element 32, for being sent to described intelligent terminal by the destination file of recording reading;
Playback test cell 33, for starting program to be tested, automatically performs playback test.
The intelligent terminal PTS that the embodiment of the present invention provides can use in the embodiment of the method one of aforementioned correspondence, and details, referring to the description of above-described embodiment one, do not repeat them here.
embodiment tetra-
Fig. 4 shows the structural drawing of the intelligent terminal PTS that the embodiment of the present invention four provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
Described system comprises: recording elements 41, storage unit 42, reading unit 43, transmitting element 44, playback test cell 45, record cell 46 and analytic unit 47.
The difference of the present embodiment and embodiment tri-is:
Optionally, described recording elements 41, for by recording script file, monitors and records the incoming event of intelligent terminal reception and treat the test path of test procedure; Described storage unit 42, for being kept at described incoming event to record destination file.
Optionally, described reading unit 43, specifically in the time receiving playback and test programmed instruction to be tested, by playback script file, reads the destination file of recording of prerecording line by line; Described transmitting element 44, specifically for being sent to described intelligent terminal by the described destination file of recording reading line by line.
Optionally, described record cell 46, for recording the test result of the test of playback each time, described analytic unit 47, for analyzing described test result.
The intelligent terminal PTS that the embodiment of the present invention provides can use in the embodiment of the method two of aforementioned correspondence, and details, referring to the description of above-described embodiment two, do not repeat them here.
It should be noted that in above-described embodiment, included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method is can carry out the hardware that instruction is relevant by program to complete, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. an intelligent terminal program testing method, is characterized in that, described method comprises:
In the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, described in record destination file and comprise: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
The destination file of recording reading is sent to described intelligent terminal;
Start program to be tested, automatically perform playback test.
2. the method for claim 1, is characterized in that, described in the time receiving playback and test programmed instruction to be tested, by playback script file, read prerecord record destination file before, described method comprises:
By recording script file, monitor and record the incoming event of intelligent terminal reception and treat the test path of test procedure;
Described incoming event is kept at and is recorded in destination file.
3. the method for claim 1, is characterized in that, described in the time receiving playback and test programmed instruction to be tested, by playback script file, reads the destination file of recording of prerecording and is specially:
In the time receiving playback and test programmed instruction to be tested, by playback script file, read line by line the destination file of recording of prerecording;
Described the destination file of recording reading be sent to described intelligent terminal and be specially:
The described destination file of recording reading is line by line sent to described intelligent terminal.
4. the method for claim 1, is characterized in that, described startup program to be tested, and after automatically performing playback test, described method also comprises:
Record the test result of the test of playback each time;
Described test result is analyzed.
5. the method for claim 1, is characterized in that, described incoming event comprises:
Keyboard incoming event and/or screen incoming event.
6. an intelligent terminal PTS, is characterized in that, described system comprises:
Reading unit, for in the time receiving playback and test programmed instruction to be tested, by playback script file, read the destination file of recording of prerecording, the described destination file of recording comprises: the incoming event that program to be tested place intelligent terminal receives, and treat the test path of test procedure;
Transmitting element, for being sent to described intelligent terminal by the destination file of recording reading;
Playback test cell, for starting program to be tested, automatically performs playback test.
7. system as claimed in claim 6, is characterized in that, described system also comprises:
Recording elements, for by recording script file, monitors and records the incoming event of intelligent terminal reception and treat the test path of test procedure;
Storage unit, for being kept at described incoming event to record destination file.
8. system as claimed in claim 6, is characterized in that, described reading unit, specifically in the time receiving playback and test programmed instruction to be tested, by playback script file, reads the destination file of recording of prerecording line by line;
Described transmitting element, specifically for being sent to described intelligent terminal by the described destination file of recording reading line by line.
9. system as claimed in claim 6, is characterized in that, described system also comprises:
Record cell, for recording the test result of the test of playback each time;
Analytic unit, for analyzing described test result.
10. system as claimed in claim 6, is characterized in that, described incoming event comprises: keyboard incoming event and/or screen incoming event.
CN201310061904.0A 2013-02-27 2013-02-27 Intelligent terminal program testing method and system Pending CN104008047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310061904.0A CN104008047A (en) 2013-02-27 2013-02-27 Intelligent terminal program testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310061904.0A CN104008047A (en) 2013-02-27 2013-02-27 Intelligent terminal program testing method and system

Publications (1)

Publication Number Publication Date
CN104008047A true CN104008047A (en) 2014-08-27

Family

ID=51368708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310061904.0A Pending CN104008047A (en) 2013-02-27 2013-02-27 Intelligent terminal program testing method and system

Country Status (1)

Country Link
CN (1) CN104008047A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571916A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and device for executing terminal operating information
CN105512031A (en) * 2015-11-30 2016-04-20 惠州Tcl移动通信有限公司 Mobile terminal and automatic test method
CN106055442A (en) * 2016-05-31 2016-10-26 周奇 Operation reproduction method and device
CN106598571A (en) * 2016-11-17 2017-04-26 珠海市魅族科技有限公司 Terminal control method and device
CN107491391A (en) * 2017-08-21 2017-12-19 深圳市天视通电子科技有限公司 A kind of software testing system and method
CN107817433A (en) * 2017-10-27 2018-03-20 东信和平科技股份有限公司 Test system, method, equipment and the computer-readable recording medium of smart card
WO2019218464A1 (en) * 2018-05-17 2019-11-21 平安科技(深圳)有限公司 Application program testing method and apparatus, and mobile terminal and medium
CN110727578A (en) * 2019-08-30 2020-01-24 苏宁智能终端有限公司 Automatic testing method and device for intelligent terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101620564A (en) * 2008-06-30 2010-01-06 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system
CN101957793A (en) * 2010-09-03 2011-01-26 中国科学院软件研究所 Android and android derivative system-oriented method for playing back software operation record
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
CN102799511A (en) * 2012-06-30 2012-11-28 成都西可科技有限公司 Android-based automatic test method and system
CN102841845A (en) * 2012-07-30 2012-12-26 广东欧珀移动通信有限公司 Automatic testing method of Android device software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101620564A (en) * 2008-06-30 2010-01-06 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system
CN101957793A (en) * 2010-09-03 2011-01-26 中国科学院软件研究所 Android and android derivative system-oriented method for playing back software operation record
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
CN102799511A (en) * 2012-06-30 2012-11-28 成都西可科技有限公司 Android-based automatic test method and system
CN102841845A (en) * 2012-07-30 2012-12-26 广东欧珀移动通信有限公司 Automatic testing method of Android device software

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571916A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and device for executing terminal operating information
CN105512031A (en) * 2015-11-30 2016-04-20 惠州Tcl移动通信有限公司 Mobile terminal and automatic test method
CN106055442A (en) * 2016-05-31 2016-10-26 周奇 Operation reproduction method and device
CN106055442B (en) * 2016-05-31 2019-06-25 周奇 Operate replay method and device
CN106598571A (en) * 2016-11-17 2017-04-26 珠海市魅族科技有限公司 Terminal control method and device
CN107491391A (en) * 2017-08-21 2017-12-19 深圳市天视通电子科技有限公司 A kind of software testing system and method
CN107817433A (en) * 2017-10-27 2018-03-20 东信和平科技股份有限公司 Test system, method, equipment and the computer-readable recording medium of smart card
WO2019218464A1 (en) * 2018-05-17 2019-11-21 平安科技(深圳)有限公司 Application program testing method and apparatus, and mobile terminal and medium
CN110727578A (en) * 2019-08-30 2020-01-24 苏宁智能终端有限公司 Automatic testing method and device for intelligent terminal
CN110727578B (en) * 2019-08-30 2024-05-31 苏宁智能终端有限公司 Automatic testing method and device for intelligent terminal

Similar Documents

Publication Publication Date Title
CN104008047A (en) Intelligent terminal program testing method and system
CN104063305B (en) The method for testing pressure of intelligent terminal software, device and system
US9195571B2 (en) Automatic testing apparatus for embedded software, automatic testing method thereof and test scenario composing method
CN105653456A (en) Application program performance testing method, device and system
US20140123111A1 (en) Automatic testing apparatus for embedded software and automatic testing method thereof
CN104503875A (en) Test method and test system of Android device
CN103327021B (en) Method, devices and system of multi-device interaction
EP2538413B1 (en) Method and playing device for realizing fast response in multimedia file control process
CN104168443A (en) Method for carrying out video recording on video monitor and network video recorder
CN103364650A (en) Testing system and testing method
CN105512031A (en) Mobile terminal and automatic test method
CN115083510B (en) Solid state disk testing method and device, storage medium, power supply and electronic equipment
CN101951461A (en) Method for reading electronic book by using set top box
CN201611576U (en) Recording device for production line
CN103746835A (en) Data downloading method and apparatus
CN104199621A (en) Hard disk management system
CN102306502A (en) Method and system for burning common interface PLUS (CI PLUS) certificate
CN102968366A (en) Local storage method and device of logs of blu-ray player
CN102668550A (en) Method for providing a video playback device with a subtitle-based repeat/playback function, and associated video playback device and associated processing circuit
CN103929544B (en) A kind of method and system realizing pc end and mobile terminal automatic recording
CN101882079A (en) Method and device for recording multimedia web page
CN103677566A (en) Picture editing method and picture editing device
US20090094295A1 (en) Electronic equipment and log output method
CN105141777A (en) Method and apparatus for carrying out sound recording based on volume keys under standby mode
CN105578134A (en) Video acquisition system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140827