CN104077211B - A kind of test method and test system of mobile terminal software - Google Patents

A kind of test method and test system of mobile terminal software Download PDF

Info

Publication number
CN104077211B
CN104077211B CN201310098011.3A CN201310098011A CN104077211B CN 104077211 B CN104077211 B CN 104077211B CN 201310098011 A CN201310098011 A CN 201310098011A CN 104077211 B CN104077211 B CN 104077211B
Authority
CN
China
Prior art keywords
mobile terminal
terminal software
test
software
run
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.)
Active
Application number
CN201310098011.3A
Other languages
Chinese (zh)
Other versions
CN104077211A (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.)
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 CN201310098011.3A priority Critical patent/CN104077211B/en
Publication of CN104077211A publication Critical patent/CN104077211A/en
Application granted granted Critical
Publication of CN104077211B publication Critical patent/CN104077211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of test method of mobile terminal software and test systems, for testing mobile terminal software.Present invention method includes:After starting mobile terminal software on mobile terminals, the action that the test system of mobile terminal software executes when recording tester using mobile terminal software generates action script according to the action of record;Obtain the operating parameter and test parameter of the action script;Mobile terminal software is run according to action script and operating parameter, record the value of test parameter in mobile terminal software operational process, mobile terminal software is run on mobile terminals by generating action script, mobile terminal software is tested without carrying out manual mode or PC analog forms by tester, can effectively shorten and the testing time and improve the reliability of test result.

Description

A kind of test method and test system of mobile terminal software
Technical field
The present invention relates to software test field more particularly to the test methods and test system of a kind of mobile terminal software.
Background technology
It is more and more richer as the software of platform using mobile phone with the enhancing of modern cell phones computing capability and the improvement of mode of operation Richness, mobile phone have no longer been tools of simply conversing, and are gradually transformed into comprehensive intelligent terminal platform.Cell phone platform software is opened Hair is more universal, and various types of mobile phones are soft just to allow people's lives to become rich and varied.
In the development process of cell phone software, there are two types of software test modes, first, manual mode, i.e., open in cell phone software The test phase of hair, tester install the software that developed on true mobile phone, then soft using this on the mobile phone Part, and manual record test result.(full name in English is first, personal computer:Personal Computer, are abbreviated as:PC) Analog form, i.e. tester install the simulator of mobile phone first on PC, and then installation developed on the simulator Software, and carry out automatic test using the testing tool of the simulator.
However all there is certain defect in manual mode and PC analog forms, need tester not using manual mode Disconnected carry out repetitive operation and manual record test result, it would be desirable to which tester, which devotes a tremendous amount of time, to be tested, and people Work operation is also easy to produce maloperation, and test result will have large error.But when carrying out software test with PC analog forms, due to Test process all carries out on non-genuine mobile phone, and the result of test will be tested with real handset prodigious difference, tests As a result reliability is low.
Invention content
An embodiment of the present invention provides a kind of test method of mobile terminal software and test systems, can effectively shorten shifting The testing time of dynamic terminal software and the reliability for improving test result.
The present invention provides a kind of test methods of mobile terminal software, including:
It is performed when record is using the mobile terminal software to move after starting mobile terminal software on mobile terminals Make;
Action script is generated according to the action of record;
Obtain the operating parameter and test parameter of the action script;
The mobile terminal software is run according to the operating parameter of the action script and the action script, records institute State the value of test parameter described in mobile terminal software operational process.
The present invention provides a kind of test systems of mobile terminal software, including:
First recording unit, after starting mobile terminal software on mobile terminals, record uses the movement eventually Hold the action executed when software;
Generation unit is given birth to after being acted described in first recording unit records according to the action of record At action script;
Acquiring unit obtains the fortune of the action script after generating the action script in the generation unit Row parameter and test parameter;
Second recording unit, after obtaining the operating parameter and the test parameter in the acquiring unit, root The mobile terminal software is run according to the operating parameter of the action script and the action script, it is soft to record the mobile terminal The value of test parameter described in part operational process.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
After starting mobile terminal software on mobile terminals, the test system record of mobile terminal software uses the movement Performed action when terminal software, according to the action of record generate action script, obtain the action script operating parameter and The test system of test parameter, mobile terminal software will run the mobile terminal according to the operating parameter of the action script and setting Software records the value of test parameter in the mobile terminal software operational process, soft by using action script operation mobile terminal Part can effectively contract without testing mobile terminal software using manual mode or PC analog forms by tester Short testing time and the reliability for improving test result.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of the test method of mobile terminal software in the embodiment of the present invention;
Fig. 2 is a kind of another flow diagram of the test method of mobile terminal software in the embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the structure of the test system of mobile terminal software in the embodiment of the present invention;
Fig. 4 is a kind of another schematic diagram of the structure of the test system of mobile terminal software in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the mobile terminal in the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a kind of test method of mobile terminal software and test systems, in mobile terminal On mobile terminal software is tested, can effectively shorten the testing time and improve test result reliability.
Referring to Fig. 1, for a kind of embodiment of the test method of mobile terminal software in the embodiment of the present invention, including:
101, performed when record is using mobile terminal software to move after starting mobile terminal software on mobile terminals Make;
In embodiments of the present invention, tester can install mobile terminal software on mobile terminals, and mobile whole After installing mobile terminal software on end, tester can start the test system of the mobile terminal software in mobile terminal, and Tester can actually use the mobile terminal software on the mobile terminal, and the test system of mobile terminal software records tester Performed action when member is using the mobile terminal software, wherein performed when tester is using the mobile terminal software Action can start software, closing software by point touching screen or using button to reach, and use the function of the software Etc. operation.
102, action script is generated according to the action of record;
In embodiments of the present invention, it is performed when the test system record of mobile terminal software is using mobile terminal software After action, action script is generated according to the action of the record.
It should be noted that in embodiments of the present invention, belonging to existing according to the method that the action of record generates action script There is technology, details are not described herein again.
103, the operating parameter and test parameter of action script are obtained;
In embodiments of the present invention, after the test system of mobile terminal software generates action script, tester will be obtained The operating parameter and test parameter of the action script of member's setting, specifically, tester can enter the test of mobile terminal software The parameter setting page of system, the operating parameter and the mobile terminal software of the corresponding action script of setting mobile terminal software The test parameter recorded is needed when operation so that the test system of mobile terminal software can obtain the action foot of tester's setting Network flow that this operating parameter and test parameter, wherein test parameter generate when can be running software, power consumption, center Processor (full name in English:Central Processing Unit, abbreviation:CPU) occupancy, the stability of software, data processing
Speed etc..
104, mobile terminal software is run according to the operating parameter of action script and action script, records mobile terminal software The value of test parameter in operational process.
In embodiments of the present invention, the test system of mobile terminal software gets the action script of tester's setting After operating parameter and test parameter, mobile terminal software will be run according to the action script of generation and operating parameter, and record The value of test parameter in mobile terminal software operational process.
It should be noted that in embodiments of the present invention, the value of the test parameter of record is the survey of mobile terminal software Test result, or the test result that mobile terminal software can be obtained in processing is carried out to the value of the test parameter.
In embodiments of the present invention, after by starting mobile terminal software in the terminal, the survey of mobile terminal software Test system simultaneously generates action script using tester to the use action of mobile terminal software, according to the action script and test The operating parameter of personnel's setting runs the mobile terminal software, record mobile terminal software test parameter in the process of running Value, can effectively realize the automatic test of mobile terminal software on mobile terminals, effectively manual type can be avoided to disappear Consume the problem of tester's plenty of time and test result inaccuracy, and the test knot that can effectively avoid PC analog forms from bringing The insecure problem of fruit, enabling the effective reliability for shortening the testing time and improving test result.
Technical solution in embodiment in order to better understand the present invention, referring to Fig. 2, to be mobile whole in the embodiment of the present invention Another embodiment of the test method of software is held, including:
201, performed when record is using mobile terminal software to move after starting mobile terminal software on mobile terminals Make;
In embodiments of the present invention, tester can install mobile terminal software on mobile terminals, and mobile whole After installing mobile terminal software on end, tester can start the test system of the mobile terminal software in mobile terminal, and Tester can actually use the mobile terminal software on the mobile terminal, and the test system of mobile terminal software records tester Performed action when member is using the mobile terminal software, wherein performed when tester is using the mobile terminal software Action can start software, closing software by point touching screen or using button to reach, and use the function of the software Etc. operation.
202, action script is generated according to the action of record;
In embodiments of the present invention, it is performed when the test system record of mobile terminal software is using mobile terminal software After action, action script is generated according to the action of the record.
It should be noted that in embodiments of the present invention, belonging to existing according to the method that the action of record generates action script There is technology, details are not described herein again.
203, the number of run and test parameter of action script are obtained;
In embodiments of the present invention, after the test system of mobile terminal software generates action script, tester will be obtained The operating parameter and test parameter of the action script of member's setting, specifically, tester can enter the test of mobile terminal software The parameter setting page of system, the operating parameter and the mobile terminal software of the corresponding action script of setting mobile terminal software The test parameter recorded, the wherein operating parameter is needed to be specifically as follows the number of run of action script when operation.
204, mobile terminal software is run according to action script, records test parameter in mobile terminal software operational process Value;
In embodiments of the present invention, the test system of mobile terminal software is generating action script and is obtaining action script After number of run and test parameter, foot is acted by the execution on mobile terminal software is repeated according to the number of run of action script The action recorded in this, to realize the automatic test of mobile terminal software on mobile terminals.
205, the number that mobile terminal software has been run is added 1;
In embodiments of the present invention, it is soft will to run mobile terminal according to action script for the test system of mobile terminal software The number that mobile terminal software has been run is added 1 by part, wherein the initial value for the number that mobile terminal software has been run is 0, is moved The test system of dynamic terminal software can according to mobile terminal software number of run determine the need for stopping it is soft to mobile terminal The test of part.
206, judge whether the number run is less than number of run, if so, 207 are thened follow the steps, if it is not, then executing step Rapid 208;
207, the step of running mobile terminal software according to action script is returned;
208, mobile terminal software out of service;
In embodiments of the present invention, the test system of mobile terminal software will determine that the number that mobile terminal software has been run Whether the number of run of tester setting is less than, if so, needing to continue to test mobile terminal software, mobile terminal Return to step 204 is continued to execute in step 204 and runs mobile terminal software according to action script by the test system of software, The step of recording the value of test parameter in mobile terminal software operational process, if it is not, then illustrating what mobile terminal software had been run Number has reached the number of the action script operation of tester's setting, and software test system is by mobile terminal software out of service.
209, the value of the test parameter recorded is preserved;
210, the value of test parameter is shown on the display screen of mobile terminal.
In embodiments of the present invention, the test system of mobile terminal software complete to the test of mobile terminal software it Afterwards, the value of the test parameter recorded will be preserved, and can also shows the value of test parameter on the display screen of mobile terminal, made Obtain the test result that tester would know that the mobile terminal software.
In embodiments of the present invention, by starting mobile terminal software on mobile terminals, and using tester to moving The use action of dynamic terminal software generates action script, and the number of run operation being arranged according to the action script and tester should Mobile terminal software, the value of record mobile terminal software test parameter in the process of running, can effectively realize mobile terminal The automatic test of software on mobile terminals, and can effectively avoid manual type consumption tester's plenty of time and test As a result inaccurate problem, and the insecure problem of test result that avoids PC analog forms from bringing, enabling effective contracting Short testing time and the reliability for improving test result.
Referring to Fig. 3, the embodiment of the structure for the test system of the mobile terminal software in the embodiment of the present invention, packet It includes:
First recording unit 301, after starting mobile terminal software on mobile terminals, record uses mobile terminal The action executed when software;
Generation unit 302, for after 301 operation of recording of the first recording unit, being acted according to the action generation of record Script;
Acquiring unit 303 obtains the operating parameter of action script after generating action script in generation unit 302 And test parameter;
Second recording unit 304, after obtaining operating parameter and test parameter in acquiring unit 303, according to action The operating parameter of script and action script runs mobile terminal software, records test parameter in mobile terminal software operational process Value.
In embodiments of the present invention, after starting mobile terminal software on mobile terminals, the first recording unit 301 record Performed action when using the mobile terminal software, and action script is generated according to the action of record by generation unit 302;It connects It, acquiring unit 303 obtains the operating parameter and test parameter of the action script;And by the second recording unit 304 according to action The operating parameter of script and action script runs mobile terminal software, records test parameter in mobile terminal software operational process Value.
In embodiments of the present invention, by starting mobile terminal software in the terminal, and using tester to moving The use action of dynamic terminal software generates action script, and the operating parameter operation being arranged according to the action script and tester should Mobile terminal software, the value of record mobile terminal software test parameter in the process of running, can effectively realize mobile terminal The automatic test of software on mobile terminals can effectively avoid manual type consumption tester's plenty of time and test knot The problem of fruit inaccuracy, and the insecure problem of test result that can effectively avoid PC analog forms from bringing, enabling have The reliability for shortening the testing time and improving test result of effect.
The test system of mobile terminal software in embodiment in order to better understand the present invention, referring to Fig. 4, being this hair The embodiment of the structure of the test system of mobile terminal software in bright embodiment, including:
The first recording unit 301, generation unit 302 in embodiment as shown in Figure 3, acquiring unit 303, the second record Member 304, and the content as shown in figure 3 described in embodiment is similar, details are not described herein again.
In embodiments of the present invention, the second recording unit 304 includes:
Third recording unit 401, for running mobile terminal software, record mobile terminal software operation according to action script The value of test parameter in the process;
Adding device 402 is used for after the value that third recording unit 401 records test parameter, by mobile terminal software The number of operation adds 1;
Whether judging unit 403, the number for judging to have run are less than number of run;
Processing unit 404, for when judging unit 403 determines that the number run is less than number of run, returning to third Recording unit 401.
In embodiments of the present invention, processing unit 404 is additionally operable to determine that the number run is not less than in judging unit 403 When number of run, mobile terminal software out of service.
In embodiments of the present invention, the test system of mobile terminal software further includes:
Storage unit 405, the value of the test parameter for keeping records of.
In embodiments of the present invention, the test system of mobile terminal software further includes:
Display unit 406, the value for showing test parameter on the display screen of mobile terminal.
In embodiments of the present invention, after starting mobile terminal software on mobile terminals, the first recording unit 301 record Performed action when using the mobile terminal software, and action script is generated according to the action of record by generation unit 302;It connects It, acquiring unit 303 obtains the number of run and test parameter of the action script;;And by the third in the second recording unit 304 Recording unit 401 runs mobile terminal software according to action script, records test parameter in mobile terminal software operational process Value, and the number that mobile terminal software has been run is added into 1, and then the second record by adding device in the second recording unit 303 Judging unit 403 in unit 304 judges whether the number of mobile terminal software run is less than the fortune of tester's setting Places number, if so, the instruction of processing unit 404 returns to third recording unit 401, if it is not, then processing unit movement out of service Terminal software, and after mobile terminal software is out of service, storage unit 405 will preserve the value of the test parameter recorded, And the value of test parameter can be also shown on the display screen of mobile terminal by display unit 406.
In embodiments of the present invention, by starting mobile terminal software in the terminal, and using tester to moving The use action of dynamic terminal software generates action script, and the number of run operation being arranged according to the action script and tester should Mobile terminal software, the value of record mobile terminal software test parameter in the process of running, can effectively realize mobile terminal The automatic test of software on mobile terminals, and can effectively avoid manual type consumption tester's plenty of time and test As a result inaccurate problem, and the insecure problem of test result that avoids PC analog forms from bringing, enabling effective contracting Short testing time and the reliability for improving test result.
It is read it should be noted that mobile terminal in embodiments of the present invention includes smart mobile phone, tablet computer, e-book Read device, pocket computer on knee etc..
Referring to Fig. 5, for the structural schematic diagram of mobile terminal in the embodiment of the present invention, which may include above-mentioned The test system of mobile terminal software, and for testing mobile terminal software, which specifically includes:
Terminal 500 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include there are one or more than one processing core processing The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 5 is not constituted pair The restriction of terminal may include either combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated with network and other equipment by radio communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division MultipleAccess, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, to perform various functions application and data processing.Memory 120 can include mainly storage journey Sequence area and storage data field, wherein storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created number according to terminal 500 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or neighbouring touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for showing information input by user or the information and terminal 500 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used
Display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure Display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detect on it or After neighbouring touch operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to touch thing The type of part provides corresponding visual output on display panel 141.Although in Figure 5, touch sensitive surface 131 and display panel 141 be to realize input and input function as two independent components, but in some embodiments it is possible to by touch sensitive surface 131 integrate with display panel 141 and realize and output and input function.
Terminal 500 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 500 is moved in one's ear
Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directions The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes Hit) etc.;Other sensings such as gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as terminal 500 Device, details are not described herein.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 500.Audio The transformed electric signal of the audio data received can be transferred to loud speaker 161 by circuit 160, and sound is converted to by loud speaker 161 Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, through RF circuits 110 to be sent to such as another end End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 500.
WiFi belongs to short range wireless transmission technology, and terminal 500 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 5 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 500, completely it can exist as needed Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 500, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 500, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 500 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 500 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal is touch-screen display, and terminal further includes having memory and one or more than one Program, either more than one program is stored in memory and is configured to by one or more than one processing for one of them Device execution states one or more than one program includes the instruction for being operated below:
It is performed when record is using the mobile terminal software to move after starting mobile terminal software on mobile terminals Make;Action script is generated according to the action of record;Obtain the operating parameter and test parameter of the action script;According to institute The operating parameter for stating action script and the action script runs the mobile terminal software, records the mobile terminal software fortune The value of the test parameter during row;
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of the terminal, also include instructions for performing the following operations:
The mobile terminal software is run according to the action script, records institute in the mobile terminal software operational process State the value of test parameter;
The number that the mobile terminal software has been run is added 1;
Whether the number run described in judging is less than the number of run
If so, returning to described the step of running the mobile terminal software according to the action script.
In the third the possible embodiment provided based on second of possible embodiment, the terminal Memory in, also include instructions for performing the following operations:
If the number run is equal to the number of run, the mobile terminal software out of service.
The 4th kind of possible embodiment party provided based on first, second or the third possible embodiment Also include instructions for performing the following operations in the memory of the terminal in formula:
The value of the test parameter kept records of.
In the 5th kind of possible embodiment provided based on the 4th kind of possible embodiment, the terminal Memory in, also include instructions for performing the following operations:
The value of the test parameter is shown on the display screen of the mobile terminal.
In conclusion mobile terminal provided in an embodiment of the present invention is after starting mobile terminal software, using test Personnel generate action script to the use action of mobile terminal software, and the operation being arranged according to the action script and tester is joined Number runs the mobile terminal softwares, and the value of record mobile terminal software test parameter in the process of running can be realized effectively The automatic test of mobile terminal software on mobile terminals can effectively avoid manual type from consuming tester's plenty of time And the problem of test result inaccuracy, and the insecure problem of test result that can effectively avoid PC analog forms from bringing, make Obtain the reliability that can effectively shorten the testing time and improve test result.
As on the other hand, yet another embodiment of the invention additionally provides a kind of computer readable storage medium, the computer Readable storage medium storing program for executing can be computer readable storage medium included in memory in above-described embodiment;It can also be list Solely exist, without the computer readable storage medium in supplying terminal.The computer-readable recording medium storage there are one or More than one program of person, the one or more programs are used for executing one by one or more than one processor Control method by sliding, the method includes:
It is performed when record is using the mobile terminal software to move after starting mobile terminal software on mobile terminals Make;Action script is generated according to the action of record;Obtain the operating parameter and test parameter of the action script;According to institute The operating parameter for stating action script and the action script runs the mobile terminal software, records the mobile terminal software fortune The value of the test parameter during row;
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, the operating parameter be the action script number of run, then described in the basis The operating parameter of action script runs the mobile terminal software, records and is tested described in the mobile terminal software operational process The value of parameter includes:
The mobile terminal software is run according to the action script, records institute in the mobile terminal software operational process State the value of test parameter;
The number that the mobile terminal software has been run is added 1;
Whether the number run described in judging is less than the number of run;
If so, returning to described the step of running the mobile terminal software according to the action script.
In the third the possible embodiment provided based on second of possible embodiment, the method Further include:
If the number run is equal to the number of run, the mobile terminal software out of service.
The 4th kind of possible embodiment party provided based on first, second or the third possible embodiment In formula, the method further includes:
The value of the test parameter kept records of.
In the 5th kind of possible embodiment provided based on the 4th kind of possible embodiment, the method Further include:
The value of the test parameter is shown on the display screen of the mobile terminal.
As in another aspect, additionally provide a kind of graphical user interface in another embodiment of the present invention, the graphical user With in terminal, the terminal includes touch-screen display, memory and is used to execute one or more than one journey interface One or more than one processor of sequence;The graphical user interface includes:
It is performed when record is using the mobile terminal software to move after starting mobile terminal software on mobile terminals Make;
Action script is generated according to the action of record;
Obtain the operating parameter and test parameter of the action script;
The mobile terminal software is run according to the operating parameter of the action script and the action script, records institute State the value of test parameter described in mobile terminal software operational process.
One of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, the program can be stored in a kind of computer readable storage medium, on It can be read-only memory, disk or CD etc. to state the storage medium mentioned.
The test method to a kind of mobile terminal software provided by the present invention and test system have carried out detailed Jie above It continues, for those of ordinary skill in the art, the thought of embodiment according to the present invention, in specific embodiments and applications There will be changes, in conclusion the content of the present specification should not be construed as limiting the invention.

Claims (4)

1. a kind of test method of mobile terminal software, which is characterized in that including:
Mobile terminal software and the installation of mobile terminal software test system on mobile terminals, start institute on the mobile terminal After stating mobile terminal software, start the mobile terminal software test system in the mobile terminal, and be based on the mobile terminal Performed action when software testing system record is using the mobile terminal software;
Action script is generated according to the action of record;
The operating parameter and test parameter of the action script are obtained, the test parameter includes:The net generated when running software Network flow, power consumption, Center Processing Unit Utilization, the stability of software, data processing speed;
The operating parameter is the number of run of the action script, according to the operation of the action script and the action script Parameter runs the mobile terminal software, records the value of test parameter described in the mobile terminal software operational process;Including:
The mobile terminal software is run according to the action script, records and is surveyed described in the mobile terminal software operational process Try the value of parameter;
The number that the mobile terminal software has been run is added 1;
Whether the number run described in judging is less than the number of run;
If so, returning to described the step of running the mobile terminal software according to the action script;What is kept records of is described The value of test parameter;
The value of the test parameter is shown on the display screen of the mobile terminal.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If the number run is equal to the number of run, the mobile terminal software out of service.
3. a kind of test system of mobile terminal software, which is characterized in that the mobile terminal software and mobile terminal software are surveyed Test system is installed on mobile terminals, and the test system of the mobile terminal software uses mobile terminal software when institute for recording The action of execution, including:
First recording unit, after starting the mobile terminal software on the mobile terminal, record uses the shifting The action executed when dynamic terminal software;
Generation unit generates dynamic after being acted described in first recording unit records according to the action of record Make script;
Acquiring unit obtains the operation ginseng of the action script after generating the action script in the generation unit Number and test parameter, the test parameter include:Network flow, power consumption, the central processing unit occupancy generated when running software Rate, the stability of software, data processing speed;
Second recording unit, after obtaining the operating parameter and the test parameter in the acquiring unit, according to institute The operating parameter for stating action script and the action script runs the mobile terminal software, records the mobile terminal software fortune The value of the test parameter during row;The operating parameter is the number of run of the action script;
Storage unit, the value for the test parameter kept records of;
Display unit, the value for showing the test parameter on the display screen of the mobile terminal;
Second recording unit includes:
It is soft to record the mobile terminal for running the mobile terminal software according to the action script for third recording unit The value of test parameter described in part operational process;
Adding device, after being used for the value of test parameter described in the third recording unit records, by the mobile terminal software The number run adds 1;
Judging unit, for judging whether the number run is less than the number of run;
Processing unit then returns when the number for having been run described in judging unit determination is less than the number of run The third recording unit.
4. test system according to claim 3, which is characterized in that the processing unit is additionally operable in the judging unit When the number run described in determining is not less than the number of run, the mobile terminal software out of service.
CN201310098011.3A 2013-03-25 2013-03-25 A kind of test method and test system of mobile terminal software Active CN104077211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310098011.3A CN104077211B (en) 2013-03-25 2013-03-25 A kind of test method and test system of mobile terminal software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310098011.3A CN104077211B (en) 2013-03-25 2013-03-25 A kind of test method and test system of mobile terminal software

Publications (2)

Publication Number Publication Date
CN104077211A CN104077211A (en) 2014-10-01
CN104077211B true CN104077211B (en) 2018-11-09

Family

ID=51598479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310098011.3A Active CN104077211B (en) 2013-03-25 2013-03-25 A kind of test method and test system of mobile terminal software

Country Status (1)

Country Link
CN (1) CN104077211B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331365A (en) * 2014-10-22 2015-02-04 上海鼎讯电子有限公司 Automated test control method and system
CN105764086B (en) * 2014-12-18 2019-02-26 中国移动通信集团终端有限公司 A kind of terminal duration performance detection method and system
CN104503873B (en) * 2014-12-24 2018-01-09 北京畅游天下网络技术有限公司 The method and device of terminal test
CN105025141B (en) * 2015-07-29 2017-10-20 上海斐讯数据通信技术有限公司 Terminal electricity consumption weight testing method and its device
CN105824755B (en) * 2016-03-17 2019-03-15 厦门美图移动科技有限公司 A kind of automated testing method, device and mobile terminal
CN106953956A (en) * 2017-03-20 2017-07-14 上海与德科技有限公司 Test system of continuing a journey and method
CN107193735A (en) * 2017-05-17 2017-09-22 武汉联影医疗科技有限公司 Method for testing software and system
CN110401870B (en) * 2019-07-30 2022-12-06 安徽天行云视科技有限公司 Method for adjusting screen recording frame rate, terminal and computer readable storage medium
CN111897741B (en) * 2020-09-29 2021-02-19 统信软件技术有限公司 Application software detection method and computing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394646B (en) * 2008-11-06 2011-06-01 北京天碁科技有限公司 Software test method and system
JP5490036B2 (en) * 2011-02-14 2014-05-14 株式会社Nttドコモ Test equipment
CN102541740B (en) * 2012-01-04 2016-03-30 广东欧珀移动通信有限公司 A kind of mobile phone notes automated testing method based on Android

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
自动化测试技术及移动终端平台自动化测试方案实现;高辉波;《中国优秀硕士学位论文全文数据库》;20120215;第5页第1.1节-第55页第3.5节 *

Also Published As

Publication number Publication date
CN104077211A (en) 2014-10-01

Similar Documents

Publication Publication Date Title
CN104077211B (en) A kind of test method and test system of mobile terminal software
CN105320598B (en) Method for testing software and device
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN104518875B (en) A kind of method that authentication and account obtain, mobile terminal
CN104519485B (en) Communication means, device and system between a kind of terminal
CN106126411B (en) The method and apparatus that a kind of pair of tested program code is tested
CN105549740B (en) A kind of method and apparatus of playing audio-fequency data
CN104423822B (en) Record the method and device of automatic test script
CN104104711B (en) Reading histories treating method and apparatus
CN105847325B (en) The adjustment method and device of applications client
CN107276602B (en) Radio frequency interference processing method, device, storage medium and terminal
CN104869465B (en) video playing control method and device
CN106294168B (en) A kind of method and system carrying out Application testing
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN104077184B (en) A kind of course control method and computer system of application program
CN104346276B (en) The method and device of software test
CN105955597B (en) Information display method and device
CN105530239B (en) Multi-medium data acquisition methods and device
CN106775267A (en) A kind of method and apparatus of the function menu for showing game plug-in unit
CN104991699B (en) A kind of method and apparatus of video display control
CN106371749A (en) Method and device for terminal control
CN107450029A (en) Battery status method of calibration and device, computer equipment, computer-readable recording medium
CN105868319B (en) Webpage loading method and device
CN105807908B (en) A kind of method and apparatus of switching working mode
CN106776301A (en) Daughter element method of testing and device

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
GR01 Patent grant
GR01 Patent grant