CN102868796A - Method and device for automated repeated path test and mobile terminal - Google Patents

Method and device for automated repeated path test and mobile terminal Download PDF

Info

Publication number
CN102868796A
CN102868796A CN2012103444359A CN201210344435A CN102868796A CN 102868796 A CN102868796 A CN 102868796A CN 2012103444359 A CN2012103444359 A CN 2012103444359A CN 201210344435 A CN201210344435 A CN 201210344435A CN 102868796 A CN102868796 A CN 102868796A
Authority
CN
China
Prior art keywords
man
test
operating procedure
automation
machine interactively
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.)
Granted
Application number
CN2012103444359A
Other languages
Chinese (zh)
Other versions
CN102868796B (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 CN201210344435.9A priority Critical patent/CN102868796B/en
Publication of CN102868796A publication Critical patent/CN102868796A/en
Application granted granted Critical
Publication of CN102868796B publication Critical patent/CN102868796B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is suitable for the field of cell phones and provides a method and a device for automated repeated path test and a cell phone. The method comprises the following steps of: recording manual interactive operation steps; saving the manual interactive operation steps; starting the automated repeated path test; and carrying out automated repeated path test according to the saved manual interactive operation steps. According to the invention, by means of recording and saving the operation steps, the automated repeated path test can be realized by directly selecting an interactive operation event in a required time period in the saved manual interactive operation steps and carrying out input test on the manual interactive operation steps in the appointed time period in a subsequent test.

Description

A kind of automation duplicate paths method of testing, device and portable terminal
Technical field
The invention belongs to field of mobile phones, relate in particular to a kind of automation duplicate paths method of testing, device and portable terminal.
Background technology
The Android system of Google exploitation is bulky complex very, after software application and development or the customized software system development, make a software module or customized software system reach higher maturity, and large-scale pressure test is essential.In present industry, the test gimmick of Android system is more single, generally divides two kinds: automatic test and man-machine interactively test.
The kit that the automatic test of Android mainly depends on primary system to be provided is tested, but kit is tested and only provided the alternative events of randomness to come testing software.Relatively kit test, the advantage of man-machine interactively test is exactly, the test man can test regulations according to the rules test Android system or software, this mode logicality is strong, have more specific aim, but cost of labor is higher, and particularly the bug in some dark path of reproduction need to drop into a large amount of human costs.
Summary of the invention
The object of the present invention is to provide a kind of automation duplicate paths method of testing, device and portable terminal, being intended to solve existing automatic test can only provide the alternative events of randomness to test, can not test targetedly, and the manual testing need to drop into a large amount of human costs.The present invention is by providing a kind of automation duplicate paths method of testing, device and portable terminal, so that manual testing's operation steps record is got off by system, the operating procedure with the manual testing in follow-up test is carried out automatic test.
The method of automatic recording and mobile phone when the embodiment of the invention is achieved in that a kind of the conversation, described method comprises the steps:
Recorder's industry and traffic interoperability step;
Depositary's industry and traffic interoperability step;
Start the test of automation duplicate paths, carry out the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving.
Further, described method also comprised before recorder's industry and traffic interoperability step:
Open incoming event record logic, make the man-machine interactively operating procedure carry out record according to time sequencing.
Further, described method also comprises after depositary's industry and traffic interoperability step:
Select whether to derive the man-machine interactively operating procedure, when selecting to derive the man-machine interactively operating procedure, the man-machine interactively operating procedure of preserving is derived.
Further, described startup automation duplicate paths test, the concrete grammar that carries out the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving is:
Within the time period of appointment, from the man-machine interactively operating procedure of preserving, extract one by one incoming event;
One by one incoming event is carried out the test of automation duplicate paths according to the input interval of the incoming event that extracts.
A kind of automation duplicate paths testing apparatus, described device comprises:
Record cell is used for recorder's industry and traffic interoperability step;
Storage unit is used for depositary's industry and traffic interoperability step;
The automatic test unit is used for carrying out the test of automation duplicate paths when starting the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving.
Further, described device also comprises:
Open the unit, be used for opening incoming event record logic, make the man-machine interactively operating procedure carry out record according to time sequencing.
Further, described device also comprises:
Lead-out unit is used for selecting whether to derive the man-machine interactively operating procedure, when selecting to derive the man-machine interactively operating procedure, the man-machine interactively operating procedure of preserving is derived.
Further, described automatic test unit specifically comprises:
The event extraction unit was used for extracting one by one incoming event from the man-machine interactively operating procedure of preserving within the time period of appointment;
The event input unit is used for one by one incoming event being carried out the test of automation duplicate paths according to the input interval of the incoming event that extracts.
Another purpose of the embodiment of the invention is to provide the portable terminal that comprises said apparatus.
The present invention is by a kind of automation duplicate paths method of testing, device and portable terminal, by a kind of automation duplicate paths method of testing is provided, the operating procedure of man-machine interactively test is recorded and preserves, in follow-up test, interactive operation event in the time period of need directly in the man-machine interactively operating procedure of preserving, selecting, man-machine interactively operating procedure in the time period of appointment is carried out input test, realize the duplicate paths test of automation.
Description of drawings
Fig. 1 is the realization flow figure of a kind of automation duplicate paths method of testing of providing of first embodiment of the invention;
Fig. 2 is the realization flow figure of a kind of automation duplicate paths method of testing of providing of second embodiment of the invention;
Fig. 3 is the structure chart of a kind of automation duplicate paths testing apparatus of providing of third embodiment of the invention;
Fig. 4 is the structure chart of a kind of automation duplicate paths testing apparatus of providing of fourth embodiment of the invention.
Embodiment
In order to make purpose 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.
Below in conjunction with specific embodiment specific implementation of the present invention is described in detail:
Embodiment one:
The realization flow of the method for automatic recording when Fig. 1 shows a kind of conversation that first embodiment of the invention provides, details are as follows:
S101, recorder's industry and traffic interoperability step.
By the step of recorder's industry and traffic interoperability, how people's body of tool is operated the operating sequence of testing record, the concrete operation step of operation is provided in follow-up automation duplicate paths test.
S102, depositary's industry and traffic interoperability step.
Depositary's industry and traffic interoperability step, the step of the man-machine interactively of concrete record operation is preserved, the data of concrete operating procedure can be derived, can analyze by the man-machine interactively operating procedure that derives has what advantage and shortcoming in the concrete operating process, can be used as the some of analyzing data, secondly by depositary's industry and traffic interoperability step, system log (SYSLOG) the man-machine interactively operating procedure can in follow-up use, directly call the man-machine interactively operating procedure of preservation, directly do not walk to carry out follow-up automatic test according to the man-machine interactively operation, do not come retest at needs by the people.
S103 starts the test of automation duplicate paths, carries out the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving.
By starting the test of automation duplicate paths, with the man-machine interactively operating procedure of the preserving order according to the man-machine interactively operation, again operate, namely in follow-up operation, as long as before the operating process of man-machine interactively operation once, and record and preserved this man-machine interactively operating procedure, in follow-up operation, can directly call this man-machine interactively operation and not walk to carry out automatic test, thereby namely realized the convenience of automatic test, had simultaneously again manual testing's accuracy and low cost.
By automation duplicate paths method of testing with the man-machine interactively operation steps record and preserve, in the follow-up again test, directly use the man-machine interactively operating procedure of preserving, realized the automation mechanized operation of test, adopt simultaneously the man-machine interactively operating procedure of preserving to test, test process has had the advantage that the man-machine interactively operation has simultaneously, test more pointed, the stability that has also alleviated simultaneously tester's labour intensity and can guarantee to greatest extent simultaneously to test has been saved huge human cost and has been dropped into.
Embodiment two:
Fig. 2 shows the realization flow of a kind of automation duplicate paths method of testing that second embodiment of the invention provides, and details are as follows:
S201 opens incoming event record logic, makes the man-machine interactively operating procedure carry out record according to time sequencing.
Because the logical order of incoming event is very crucial to whole test in the test, just can just reach the purpose of test in meaning in the correct operating procedure of correct time point input, at first need to open the record logic of input time, record so that the man-machine interactively operating procedure is order in strict accordance with the time so that after all operations step in the record of Action Events all record in strict accordance with time sequencing.
S202, recorder's industry and traffic interoperability step;
The step of recorder's industry and traffic interoperability, wherein the man-machine interactively operation of record is concrete is divided into button operation and touch operation, at first can distribute to the window management service for button operation in the concrete Action Events, if the window management service is not processed, distribute so to concrete Root View, can directly distribute to Root View for touch operation.Wherein the relation of Root View and window management service is as the relation of client and service end, Root View is after receiving touch operation, also touch operation can be notified to the window management service, wherein also comprise in recorder's industry and traffic interoperability step and judge whether to stop to record incoming event, when interlude operates certain during limit value time, automatically stop to record incoming event and carry out next step operation.
S203, depositary's industry and traffic interoperability step.
The concrete operation step of man-machine interactively operation is preserved according to strict time sequencing, wherein understand the time sequencing of the concrete operation of detail record and the concrete feedback of operation in the window management service, also comprise the situation of link concrete in the operating process.
S204 selects whether to derive the man-machine interactively operating procedure, when selecting to derive the man-machine interactively operating procedure, the man-machine interactively operating procedure of preserving is derived.
The data message that the man-machine interactively operating procedure of preserving operates in the time of can being used for analytical test, also the data copy of preserving out can be replicated in simultaneously the enterprising enforcement of other equipment uses, if data need to be derived the data of just selecting to preserve derives, the man-machine interactively operating procedure of preserving is derived, wherein preferably adopt the data of preserving in the window management service to derive, because the data of preserving in the window management service are more detailed.
S205 extracts incoming event one by one from the man-machine interactively operating procedure of preserving within the time period of appointment.
Owing in follow-up test, not necessarily need all operating processes in the complete operating procedure, therefore a kind of automation duplicate paths method of testing that can the select time section is provided, namely within the time period of appointment, from the man-machine interactively operating procedure of preserving, extract one by one incoming event, only select to adopt the Action Events in this time period, concrete extract one by one incoming event from the man-machine interactively operating procedure of preserving be within the time period of appointment: extraction operation event in the record of window management service, the time period of concrete selection appointment can be determined by the time numerical value that input time and deadline are set.
S206 carries out incoming event the test of automation duplicate paths one by one according to the input interval of the incoming event that extracts.
By selecting the man-machine interactively operation in the fixed time section, extract the during this period of time interior man-machine interactively Action Events of section, one by one incoming event is carried out the test of automation duplicate paths according to the input interval of the incoming event that extracts, satisfied the automation duplicate paths test for specific time test, the test of automation duplicate paths is carried out incoming event at the concrete input interval according to the incoming event that extracts one by one: will be in the record of window management service the extraction operation event, at first be input in the record management, be input to event by record management again and distribute in distributing, the distributing of complete operation event.In the test of concrete automation duplicate paths, can select the number of times tested and the time of test, automatically stop test after finishing the number of times test of regulation or time test, if finished the number of times or the time that once and whether arrive regulation, then proceed retest, until just automatically stop test after finishing the number of times test of regulation or time test.
The embodiment of the invention by the way by automation duplicate paths method of testing with the man-machine interactively operation steps record and preserve, and provide mode and the performance of the selected operating time section in the subsequent operation to test targetedly, use the man-machine interactively operating procedure of preserving, realized the automation mechanized operation of test, so that test is more pointed, the stability that has also alleviated tester's labour intensity and can guarantee to greatest extent simultaneously to test has been saved the human cost input.
Embodiment three:
Fig. 3 shows the structure chart of a kind of automation duplicate paths testing apparatus that third embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Record cell 31 is used for recorder's industry and traffic interoperability step;
Storage unit 32 is used for depositary's industry and traffic interoperability step;
Automatic test unit 33 is used for carrying out the test of automation duplicate paths when starting the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving.
Step by the operation of recording unit records man-machine interactively, the step of storage unit depositary's industry and traffic interoperability, finally carry out the test of automation duplicate paths by the automatic test unit again, carry out the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving, so that follow-up test all is finishing of automation, reduce to greatest extent tester's labour intensity, reduce testing cost.
Embodiment four:
Fig. 4 shows the structure chart of a kind of automation duplicate paths testing apparatus that fourth embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Record cell 41 is used for recorder's industry and traffic interoperability step;
Storage unit 42 is used for depositary's industry and traffic interoperability step;
Open unit 43, be used for opening incoming event record logic, make the man-machine interactively operating procedure carry out record according to time sequencing.
Lead-out unit 44 is used for selecting whether to derive the man-machine interactively operating procedure, when selecting to derive the man-machine interactively operating procedure, the man-machine interactively operating procedure of preserving is derived.
Event extraction unit 45 was used for extracting one by one incoming event from the man-machine interactively operating procedure of preserving within the time period of appointment;
Event input unit 46 is used for one by one incoming event being carried out the test of automation duplicate paths according to the input interval of the incoming event that extracts.
Open incoming event record logic by opening the unit, make the man-machine interactively operating procedure carry out record according to time sequencing, thereby guarantee that all records all record in strict accordance with the temporal logic order, man-machine interactively operating procedure by record cell and storage unit record and preservation input, whether the lead-out unit user selection needs the man-machine interactively operating procedure is derived, so that the analysis to the man-machine interactively operating procedure to be provided, by the incoming event in the decimation in time unit extraction man-machine interactively operating procedure, by the event input unit, the incoming event in the man-machine interactively operating procedure that extracts is carried out input test.
The embodiment of the invention is by providing a kind of automation duplicate paths testing apparatus, concrete device can be a kind of portable terminal, by this automation duplicate paths testing apparatus software application or customized software system are tested, adopt the test of automation duplicate paths, adopt the step of partly or completely man-machine interactively operation to test, adopt the mode of automation that manually-operated operating procedure is carried out automatic duplicate paths test, a little and the efficient of convenience of test is provided greatly, has saved human cost.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be stored in the computer read/write memory medium, described storage medium is such as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. an automation duplicate paths method of testing is characterized in that described method comprises the steps:
Recorder's industry and traffic interoperability step;
Depositary's industry and traffic interoperability step;
Start the test of automation duplicate paths, carry out automation according to the man-machine interactively operating procedure of preserving and repeat
Path testing.
2. the method for claim 1 is characterized in that, described method also comprised before recorder's industry and traffic interoperability step:
Open incoming event record logic, make the man-machine interactively operating procedure carry out record according to time sequencing.
3. the method for claim 1 is characterized in that, described method also comprises after depositary's industry and traffic interoperability step:
Select whether to derive the man-machine interactively operating procedure, when selecting to derive the man-machine interactively operating procedure, the man-machine interactively operating procedure of preserving is derived.
4. the method for claim 1 is characterized in that, described startup automation duplicate paths test, and the concrete grammar that carries out the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving is:
Within the time period of appointment, from the man-machine interactively operating procedure of preserving, extract one by one incoming event;
One by one incoming event is carried out the test of automation duplicate paths according to the input interval of the incoming event that extracts.
5. automation duplicate paths testing apparatus is characterized in that described device comprises:
Record cell is used for recorder's industry and traffic interoperability step;
Storage unit is used for depositary's industry and traffic interoperability step;
The automatic test unit is used for carrying out the test of automation duplicate paths when starting the test of automation duplicate paths according to the man-machine interactively operating procedure of preserving.
6. device as claimed in claim 5 is characterized in that, described device also comprises:
Open the unit, be used for opening incoming event record logic, make the man-machine interactively operating procedure carry out record according to time sequencing.
7. device as claimed in claim 5 is characterized in that, described device also comprises:
Lead-out unit is used for selecting whether to derive the man-machine interactively operating procedure, when selecting to derive the man-machine interactively operating procedure, the man-machine interactively operating procedure of preserving is derived.
8. device as claimed in claim 5 is characterized in that, described automatic test unit specifically comprises:
The event extraction unit was used for extracting one by one incoming event from the man-machine interactively operating procedure of preserving within the time period of appointment;
The event input unit is used for one by one incoming event being carried out the test of automation duplicate paths according to the input interval of the incoming event that extracts.
9. a portable terminal is characterized in that, described portable terminal comprises such as each described automation duplicate paths testing apparatus of claim 5 to 8.
CN201210344435.9A 2012-09-17 2012-09-17 One kind automation duplicate paths method of testing, device and mobile terminal Expired - Fee Related CN102868796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210344435.9A CN102868796B (en) 2012-09-17 2012-09-17 One kind automation duplicate paths method of testing, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210344435.9A CN102868796B (en) 2012-09-17 2012-09-17 One kind automation duplicate paths method of testing, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN102868796A true CN102868796A (en) 2013-01-09
CN102868796B CN102868796B (en) 2017-09-26

Family

ID=47447381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210344435.9A Expired - Fee Related CN102868796B (en) 2012-09-17 2012-09-17 One kind automation duplicate paths method of testing, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN102868796B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007328509A (en) * 2006-06-07 2007-12-20 Sony Corp Information processor and information processing method, program, and recording medium
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
CN101557437A (en) * 2009-05-12 2009-10-14 厦门敏讯信息技术股份有限公司 Automatic testing method of mobile phone software and device thereof
CN102591754A (en) * 2011-01-18 2012-07-18 智比特信息技术(镇江)有限公司 Automatic testing method for electronic product controlled by computer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007328509A (en) * 2006-06-07 2007-12-20 Sony Corp Information processor and information processing method, program, and recording medium
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
CN101557437A (en) * 2009-05-12 2009-10-14 厦门敏讯信息技术股份有限公司 Automatic testing method of mobile phone software and device thereof
CN102591754A (en) * 2011-01-18 2012-07-18 智比特信息技术(镇江)有限公司 Automatic testing method for electronic product controlled by computer

Also Published As

Publication number Publication date
CN102868796B (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN100578446C (en) Example design test method for testing based on data driving and automatically testing platform
CN103578568B (en) The performance test methods of solid state hard disc and device
CN102521118B (en) Automatic testing method of Android program
CN103312851B (en) Intelligent cellphone application interaction interface program usability testing method
CN102831894A (en) Command processing method, command processing device and command processing system
CN102819492A (en) Keyword driven automatic testing frame on basis of Android
CN103136471A (en) Method and system for testing malicious Android application programs
CN104424094A (en) Method and device for obtaining abnormal information and intelligent terminal device
CN104778118B (en) The improved method of automatization testing technique
CN102799508A (en) Automatic test system and method
CN103744787A (en) Cellphone automated testing method
CN106598834A (en) UI (User Interface) testing method and device
CN103915092A (en) Voice identification method and device
CN106354482A (en) Method and device for acquiring automated scripts and application method and device of automated scripts
CN111259212B (en) Telemetering data interpretation method, device, equipment and storage medium
CN104008047A (en) Intelligent terminal program testing method and system
CN106713011A (en) Method and system for obtaining test data
CN111724781B (en) Audio data storage method, device, terminal and storage medium
CN109885481A (en) A kind of the recording and playback test method and device of the game NGUI based on Unity technology
CN112416775A (en) Software automation testing method and device based on artificial intelligence and electronic equipment
CN108738059B (en) WIFI module testing method and device
CN108459848A (en) A kind of script acquisition methods and system applied to Excel softwares
CN105760300A (en) Automatic STK/UTK service testing method and system
CN103957531A (en) Method and device for signal testing by adoption of intelligent communication terminal
CN109962823B (en) Automatic testing system and method for network application scene

Legal Events

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

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

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

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

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

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170926

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