CN103699477A - Pressure testing method and terminal - Google Patents

Pressure testing method and terminal Download PDF

Info

Publication number
CN103699477A
CN103699477A CN201210370073.0A CN201210370073A CN103699477A CN 103699477 A CN103699477 A CN 103699477A CN 201210370073 A CN201210370073 A CN 201210370073A CN 103699477 A CN103699477 A CN 103699477A
Authority
CN
China
Prior art keywords
pressure test
script
interface
daily record
startup
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
CN201210370073.0A
Other languages
Chinese (zh)
Other versions
CN103699477B (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 CN201210370073.0A priority Critical patent/CN103699477B/en
Publication of CN103699477A publication Critical patent/CN103699477A/en
Application granted granted Critical
Publication of CN103699477B publication Critical patent/CN103699477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a pressure testing method and a pressure testing terminal. The pressing testing method comprises the steps that a first terminal starts a pressure testing plug-in of the first terminal; the pressure testing plug-in calls a graphic interface program module of the pressure testing plug-in and displays a user graphic interface of the pressure testing plug-in, wherein the user graphic interface comprises a starting interface; the graphic interface program module calls corresponding scripts in a script module of the pressure testing plug-in according to a starting command of the starting interface. The pressing testing method has the advantages that since the pressure testing plug-in provides the graphic interface, the operation is facilitated, the corresponding scripts can be executed by triggering the starting interface only, the user is not required to repetitively input commands, the labor is saved, the working efficiency is improved and the time is saved; since the graphic interface program module and the script module are mutually independent, the maintenance and the extension of the pressure testing plug-in are facilitated.

Description

Method for testing pressure and terminal
Technical field
The present invention relates to program test field, relate in particular to a kind of method for testing pressure and terminal of program.
Background technology
The pressure of existing program (monkey) method of testing, is divided into two kinds: the first substantially: under cmd environment, manually input monkey order and test.The second: finish writing in advance the script of monkey test, invoke script is carried out monkey test, and conventional script is python script.
Wherein, the shortcoming of the first scheme is that (1) can only carry out a monkey order at every turn, if carry out repeatedly, needs manual input test order repeatedly; (2) PC can only connect a mobile phone by data line, cannot connect many cell phone apparatus; (3) after carrying out, result all represents under dos interface, and data content is a lot, and during enquiry fee, result shows not directly perceived; (4) cannot automatically preserve daily record, need to, after monkey executes, manually input the corresponding command and carry out daily record preservation.
The shortcoming of first scheme: (1) script is all finished writing in advance, if change a tested object, or change a test command, all need to revise script, safeguard more time-consuming.(2) after carrying out, a large amount of results is all kept in corresponding txt file, can not show in real time, there is no the interface display of quicklook.
Summary of the invention
The embodiment of the present invention provides a kind of method for testing pressure and terminal, shows handled easily with graphical interface of user.
First aspect present invention provides a kind of method for testing pressure, comprising: first terminal starts the pressure test plug-in unit of described first terminal; Described pressure test plug-in unit calls the graphical interface program module of described pressure test plug-in unit, and shows the graphical interface of user of described pressure test plug-in unit, and described graphical interface of user comprises startup interface; And described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface.
In the possible implementation of the first, the graphical interface of user that shows described pressure test plug-in unit, comprise: described graphical interface of user shows operating pressure test starting interface, obtains pressure test daily record startup interface and analyzes pressure test daily record startup interface, the script of the script that corresponding operating pressure is tested respectively, the script that obtains pressure test daily record and analysis pressure test daily record.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface, comprising: described graphical interface program module is called the script of described operating pressure test according to the startup command at described operating pressure test starting interface; And the script of described operating pressure test sends pseudorandom customer incident and flow to the second terminal, make described the second terminal carry out described pseudorandom customer incident stream and carry out pressure test.
In conjunction with the possible implementation of the first, in the third possible implementation, described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface, comprising: described graphical interface program module according to described in obtain pressure test daily record startup interface startup command obtain the script of pressure test daily record described in calling; And described in obtain pressure test daily record script send and to obtain order to the second terminal, obtain and preserve the daily record that described the second terminal is carried out pressure test.
In conjunction with the third possible implementation, in the 4th kind of possible implementation, described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface, also comprise: described graphical interface program module is called the script of described analysis pressure test daily record according to the startup command of described analysis pressure test daily record startup interface; And the script of described analysis pressure test daily record carries out according to described the second terminal whether having abnormal log in the daily record of pressure test, judge the result of described pressure test.
In conjunction with the 4th kind of possible implementation, in the 5th kind of possible implementation, the script of described analysis pressure test daily record carries out according to described the second terminal whether having abnormal log in the daily record of pressure test, after judging the result of described pressure test, also comprise: the result that shows described pressure test at described graphical interface of user.
In conjunction with any in five kinds of possible implementations of the first to the of a first aspect of the present invention or first aspect, in the 6th kind of possible implementation, after showing the graphical interface of user of described pressure test plug-in unit, also comprise: described graphical interface of user shows that a plurality of parameters arrange interface; Described parameter arranges the setting that interface receives the test parameter of described script, and described graphical interface program module is saved to described script by described test parameter.
Second aspect present invention provides a kind of terminal, comprises pressure test device and display device, and described pressure test device comprises: start module, for starting described pressure test device; Graphical interface program module for being called by described startup module, and shows the graphical interface of user of described pressure test device in described display device, and described graphical interface of user comprises startup interface, for receiving startup command; And script module, for storing the script corresponding with described startup interface, and move corresponding script according to the startup command of described startup interface.
In the possible implementation of the first, described startup interface comprises operating pressure test starting interface, obtains pressure test daily record startup interface and analysis pressure test daily record startup interface, and described script correspondence comprises the script of the script of operating pressure test, the script that obtains pressure test daily record and analysis pressure test daily record.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described graphical interface program module is called the script of described operating pressure test according to the startup command at described operating pressure test starting interface, the script of described operating pressure test sends pseudorandom customer incident and flow to another terminal, makes described another terminal carry out described pseudorandom customer incident stream and carries out pressure test.
In conjunction with the possible implementation of the first, in the third possible implementation, described graphical interface program module according to described in obtain pressure test daily record startup interface startup command obtain the script of pressure test daily record described in calling, the described script that obtains pressure test daily record sends and obtains order to another terminal, obtains and preserve the daily record that described another terminal is carried out pressure test.
In conjunction with the third possible implementation, in the 4th kind of possible implementation, described graphical interface program module is called the script of described analysis pressure test daily record according to the startup command of described analysis pressure test daily record startup interface, the script of described analysis pressure test daily record carries out according to described the second terminal whether having abnormal log in the daily record of pressure test, judges the result of described pressure test.
In conjunction with the 4th kind of possible implementation, in the 5th kind of possible implementation, the script of described analysis pressure test daily record is also for being sent to the result of described pressure test described graphical interface program module, and described graphical interface program module also for showing the result of described pressure test on described graphical interface of user.
In conjunction with any in five kinds of possible implementations of the first to the of a second aspect of the present invention or second aspect, in the 6th kind of possible implementation, described graphical interface of user also comprises that a plurality of parameters arrange interface, for receiving the setting of the test parameter of described script, described graphical interface program module is also for being saved to described script by described test parameter.
Third aspect present invention provides a kind of computer-readable storage medium, and described computer-readable storage medium has program stored therein, and this program comprises all or part of step of above-mentioned method for testing pressure while carrying out.
Above-mentioned method for testing pressure and terminal provide graphical interface of user because of pressure test plug-in unit, handled easily, and only need trigger startup interface and can carry out corresponding script, do not need user's input command repeatedly, save manpower, promoted work efficiency, saved the time.In addition graphical interface program module and script module is separate, be convenient to maintenance and the expansion of pressure test plug-in unit.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic diagram of a kind of applied environment that Fig. 1 provides for the embodiment of the present invention.
The process flow diagram of a kind of method for testing pressure that Fig. 2 to Fig. 6 provides to the 5th embodiment for the present invention first;
The schematic diagram of the graphical interface of user that Fig. 7 provides for the embodiment of the present invention.
The schematic diagram of a kind of terminal that Fig. 8 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is a kind of applied environment figure that the embodiment of the present invention provides.In embodiments of the present invention, setting pressure in first terminal 10 (monkey) probe card, pressure test plug-in unit sends pseudorandom customer incident stream to the second terminal 20 being connected with first terminal 10, as key-press input, touch-screen input, gesture input etc., analog subscriber input operation is carried out pressure test to the program in the second terminal 20, the program time how long of detecting in the second terminal 20 can occur extremely, thus stability and the robustness of the program in test the second terminal 20.
Wherein, plug-in unit is the program that a kind of application programming interfaces of following certain standard are write out, and pressure test plug-in unit is to follow the program for pressure test that the application programming interfaces of certain standard are write out.First terminal 10 and the second terminal 20 can comprise: PC, panel computer, mobile phone, PDA(Personal Digital Assistant, personal digital assistant), the smart machine such as electronic reader, notebook computer, car-mounted terminal.Select, first terminal 10 has user's inputting interface and display device, and the second terminal 20 has user's inputting interface.
Below in conjunction with Fig. 2-5, the present invention first is described in detail to the method for testing pressure that the 5th embodiment provides.
Refer to Fig. 2 and in conjunction with the applied environment figure of Fig. 1, first embodiment of the invention provides a kind of process flow diagram of method for testing pressure.Method for testing pressure can comprise the following steps S201-step S203.
S201, first terminal 10 starts the pressure test plug-in unit of first terminal 10.On first terminal 10, loaded pressure test plug-in unit, pressure test plug-in unit comprises the autoexec under bat(Dos) running tool, this bat running tool is the entrance of pressure test plug-in unit, double-clicking can starting pressure probe card.
S202, pressure test plug-in unit calls the graphical interface program module of pressure test plug-in unit, and shows the graphical interface of user of pressure test plug-in unit, and described graphical interface of user comprises startup interface.The graphical interface program module of pressure test plug-in unit can exist with the form of Jar bag, this Jar comprises graphic user interface (the Graphical User Interface that utilization is increased income, GUI) graphical interface program of programming framework SWT design, graphical interface of user is the corresponding graphical interface of user of graphical interface program that utilizes SWT design.After pressure test plug-in unit starts, the bat running tool of pressure test plug-in unit calls graphical interface program module, makes it in the display device of first terminal 10, on display screen, show graphical interface of user, described graphical interface of user as shown in Figure 7, comprises a plurality of different startup interfaces.In some embodiments of the invention, described startup interface is button.
S203, graphical interface program module is called the corresponding script in the script module of pressure test plug-in unit according to the startup command of startup interface.Pressure test plug-in unit also comprises script module, and this script module exists with the form in Pathon storehouse, has wherein stored a plurality of scripts, respectively the different startup interface of respective user graphical interfaces.When a certain startup interface receives after startup command, the click event of button for example, graphical interface program module, according to the corresponding script in startup command invoke script module, makes it operation.
Above-mentioned method for testing pressure provides graphical interface of user because of pressure test plug-in unit, handled easily, and only need trigger startup interface and can carry out corresponding script, do not need user's input command repeatedly, save manpower, promoted work efficiency, saved the time.In addition graphical interface program module and script module is separate, be convenient to maintenance and the expansion of pressure test plug-in unit.
In some embodiments of the invention, the graphical interface of user of pressure test plug-in unit comprises and shows operating pressure test starting interface, obtains pressure test daily record startup interface and analyzes pressure test daily record startup interface, the script of the script that the operating pressure in corresponding script module is tested respectively, the script that obtains pressure test daily record and analysis pressure test daily record.Wherein, the script of operating pressure test, for send pseudorandom customer incident stream to the second terminal 20 when moving, as key-press input, touch-screen input, gesture input etc., analog subscriber input operation, makes the second terminal 20 carry out described pseudorandom customer incident stream, carries out pressure test, and the daily record of described pseudorandom customer incident stream, i.e. pressure test daily record carried out in record.Obtain the script of pressure test daily record, for obtain from the second terminal 20 daily record that the second terminal 20 is carried out pressure test when moving.The script of analyzing pressure test daily record, carries out the daily record of pressure test for analyse the second terminal 20 at motion time.
Refer to Fig. 3 and in conjunction with the applied environment figure of Fig. 1, second embodiment of the invention provides a kind of process flow diagram of method for testing pressure.Method for testing pressure can comprise the following steps S301-step S304, and wherein step S301 is identical with corresponding step S201 and S202 in Fig. 2 with step S302, thereby repeats no more herein.Step S303 and step S304 are the concrete steps of step S203.
S303, graphical interface program module is called the script of described operating pressure test according to the startup command at operating pressure test starting interface.In some embodiments of the invention, operating pressure test starting interface display is the button of " operating pressure test " printed words, clicks this with the button of " operating pressure test ", and graphical interface program module calls the script of operating pressure test.Be understandable that, operating pressure test starting interface also can be shown as other form or word.
S304, the script of operating pressure test sends pseudorandom customer incident and flow to the second terminal 20, makes described the second terminal 20 carry out described pseudorandom customer incident stream and carries out pressure test.After the script of operating pressure test is called, bring into operation, produce pseudorandom customer incident and flow and be sent to the second terminal 20, to imitate user's operation input.The second terminal 20 receives pseudorandom customer incident stream, carry out pseudorandom customer incident stream and carry out pressure test, and record carries out the daily record of pressure test.The log recording that carries out pressure test of the second terminal 20 the second terminal 20 carry out the situation of pseudorandom customer incidents stream, comprise normal and unusual condition.
In some embodiments of the invention, the pseudorandom customer incident stream that the script of operating pressure test sends is also presented on described graphical interface of user in real time.
Refer to Fig. 4 and in conjunction with the applied environment figure of Fig. 1, third embodiment of the invention provides a kind of process flow diagram of method for testing pressure.Method for testing pressure can comprise the following steps S401-step S404, and wherein step S401 is identical with corresponding step S201 and S202 in Fig. 2 with step S402, thereby repeats no more herein.Step S403 and step S404 are the concrete steps of step S203.
S403, graphical interface program module is obtained the script of pressure test daily record described in calling according to the startup command of obtaining pressure test daily record startup interface.In some embodiments of the invention, obtain the button that pressure test daily record startup interface is shown as " obtaining daily record " printed words, click this with the button of " obtaining daily record ", graphical interface program module calls the script that obtains pressure test daily record.Be understandable that, obtain form or word that pressure test daily record startup interface also can be shown as other.
S404, the script that obtains pressure test daily record sends and obtains order to the second terminal 20, obtains and preserve the daily record that the second terminal 20 is carried out pressure test.The script that obtains pressure test daily record obtains from the second terminal 20 daily record of carrying out pressure test, and is kept under predefined path.
In some embodiments of the invention, after step S403 and S404 also can occur in the step S304 of Fig. 3.
Refer to Fig. 5 and in conjunction with the applied environment figure of Fig. 1, fourth embodiment of the invention provides a kind of process flow diagram of method for testing pressure.Method for testing pressure can comprise the following steps S501-step S505, and wherein step S501 is identical with corresponding step S201 and S202 in Fig. 2 with step S502, thereby repeats no more herein.Step S503 is the concrete steps of step S203 to step S505.
S503, graphical interface program module calls according to the startup command of analyzing pressure test daily record startup interface the script of analyzing pressure test daily record.In some embodiments of the invention, analyze the button that pressure test daily record startup interface is shown as " analysis daily record " printed words, click this with the button of " analysis daily record ", graphical interface program module calls the script of analyzing pressure test daily record.Be understandable that, analyze form or word that pressure test daily record startup interface also can be shown as other.
S504, the script of analyzing pressure test daily record carries out according to the second terminal 20 whether having abnormal log, the result of judgement pressure test in the daily record of pressure test.Whether the script of analyzing pressure test daily record exists and applies without response (Application Not Responding in the daily record of pressure test according to carrying out, ANR) or the abnormal log corresponding to key word such as null pointer (no pointer), carry out the analysis of pressure test daily record.If analyze the script of pressure test daily record, get abnormal log, and obtain the operation duration of abnormal log, and show abnormal log and operation duration.Whether the script basis of analyzing pressure test daily record has the result of the operation duration judgement pressure test of abnormal log and abnormal log, judges that pressure test is still by (FAIL) by (PASS).
S505, shows the result of described pressure test at described graphical interface of user.If analyze the script judgement pressure test of pressure test daily record for passing through, graphical interface of user shows " PASS ", if judgement is not passed through, graphical interface of user shows " FAIL ".Be understandable that, graphical interface of user also can other forms or word show by or unsanctioned result, for example, the performance of the lamp of available different colours.
In some embodiments of the invention, after step S503, S504 and S505 also can occur in the step S404 of Fig. 4.
Refer to Fig. 6 and in conjunction with the applied environment figure of Fig. 1, fifth embodiment of the invention provides a kind of process flow diagram of method for testing pressure.Method for testing pressure can comprise the following steps S601, S602, S602a and S603, and wherein step S601, S602 and S603 are identical with corresponding step S201, S202 and S203 in Fig. 2, thereby repeat no more herein.
S602a, graphical interface of user shows that a plurality of parameters arrange interface, and parameter arranges the setting that interface receives the test parameter of script, and graphical interface program module is saved to the script in script module by test parameter.Thereby, the test parameter of the script in script module can be changed by demand, and modify at graphical interface of user, directly perceived and easy to operate.
Figure 7 shows that the schematic diagram of the graphical interface of user that the embodiment of the present invention provides.Graphical interface of user 70 shown in Fig. 7 can be applicable to the present invention first to the method for testing pressure of the 5th embodiment.Graphical interface of user 70 comprises that a plurality of parameters arrange in the 700(the present embodiment of interface, take 6 as example), in a plurality of startup interface 710(the present embodiment, take 3 as example), result display interface 720 and content display interface 730.Be understandable that, the graphical interface of user 70 that the embodiment of the present invention provides is only for example, and it also can other manifestation mode show.
Parameter arranges interface 700 for receiving the setting of the test parameter of script, for example, direct input or the selection of test parameter, thus graphical interface program module is saved in the test parameter arranging in script.In the present embodiment, parameter arranges interface 700 and comprises that name arranges interface, the time interval and interface, total number of commands are set arrange that interface, number of run arrange interface, interface is set default number of pass times and actual number of pass times arranges interface.Bag name arranges interface for inputting the name of the routine package of the second terminal 20 that will carry out pressure test.For example, test the camera of the second terminal 20, in bag name, the bag name of program that the camera of the second terminal 20 is inputted at interface, for example com.camera are set.If bag name is not arranged to interface, input, be defaulted as the second terminal 20 integral body are carried out to pressure test.
The time interval arranges interface for the time interval of input pressure test, i.e. in the time interval of twice pressure test, unit is defaulted as millisecond, if user does not insert any content, the time interval of acquiescence is 1000 milliseconds.Total number of commands arranges interface for inputting the number of total order of pressure test execution, if not input, the number of giving tacit consent to total order of pressure test execution is 1000.
Number of run arranges interface for the number of run of input pressure test, the number of times that the second terminal 20 is restarted.When pressure test runs into fc or anr, or entire run complete once after, restart the second terminal.If number of run is not arranged to interface, carry out any input, giving tacit consent to number of run is 10.
Default number of pass times arranges interface for inputting the number of pass times of default pressure test, and this numerical value is less than or equal to the numerical value of the number of run of pressure test.If do not input any content, give tacit consent to the value that numerical value equals the number of run of pressure test.
In some embodiments of the invention, the initial content that interface 710 is set showing of graphical interface of user 70 is for empty.
In some embodiments of the invention, the initial interface 710 that arranges showing of graphical interface of user 70 shows the parameter values of giving tacit consent to.
The above-mentioned interface 710 that arranges receives after input, and graphical interface program module is saved in the parameter values of input in script.
Actual number of pass times arranges interface for showing the actual number of pass times of pressure test, does not need user to input, and pressure test plug-in unit can write afterwards automatically in execution.In the present embodiment, the actual number of pass times of pressure test is more than or equal to the number of pass times of default pressure test, thinks that the result of pressure test is for passing through, otherwise, think that the result of pressure test of the second terminal 20 is not for passing through.
As mentioned above, startup interface 710 comprises operating pressure test starting interface, obtains pressure test daily record startup interface and analyzes pressure test daily record startup interface, for example, be shown as respectively the button of " operating pressure test ", the button of the button of " obtaining pressure test daily record " and " analyzing pressure test daily record ".Start and show operating pressure test starting interface, for example, click the button of " operating pressure test ", the script of operating pressure test arranges according to parameter the parameter operating pressure test that interface 700 arranges.Start and obtain pressure test daily record startup interface, the script that obtains pressure test daily record obtains the second terminal 20 from the second terminal 20 carries out the daily record of pressure test and is kept at predefined path.
Startup analysis pressure test daily record startup interface, analyze the script of pressure test daily record according to whether existing in the daily record of pressure test and applying without response (Application Not Responding, ANR) or the abnormal log corresponding to key word such as null pointer (no pointer), carry out the analysis of pressure test daily record.If analyze the script of pressure test daily record, get abnormal log, and obtain the operation duration of abnormal log, think that this pressure test do not pass through.The script of analyzing pressure test daily record judges whether the actual number of pass times of pressure test is more than or equal to the number of pass times of default pressure test, if being more than or equal to the number of pass times of default pressure test, the actual number of pass times of pressure test thinks that the result of pressure test is by (PASS), otherwise, think that the result of pressure test of the second terminal 20 is not for by (FAIL).
Result display interface 720 is for showing the result of the pressure test of the second terminal 20.The result of pressure test that the script of pressure test daily record judges the second terminal 20 if analyze is for passing through, result display interface 720 demonstrations " PASS "; The result of pressure test that the script of pressure test daily record judges the second terminal 20 if analyze is for not passing through, result display interface 720 demonstrations " FALSE ".
The pseudorandom customer incident stream that content display interface 730 sends for showing in real time the script of operating pressure test.In some embodiments of the invention, content display interface 730 is also for showing the operation duration of abnormal log and abnormal log.
Above-mentioned method for testing pressure provides graphical interface of user because of pressure test plug-in unit, handled easily, and only need trigger startup interface and can carry out corresponding script, do not need user's input command repeatedly, save manpower, promoted work efficiency, saved the time.In addition graphical interface program module and script module is separate, be convenient to maintenance and the expansion of pressure test plug-in unit.The result of pressure test is presented on graphical interface of user, ocular and clear.
The embodiment of the invention discloses a kind of computer-readable storage medium, this computer-readable storage medium has program stored therein, and this program comprises the part or all of step of the method for testing pressure that shown in above-mentioned Fig. 2-Fig. 6, embodiment of the method is recorded while carrying out.
For ease of better implementing the such scheme of the embodiment of the present invention, be also provided for coordinating the relevant apparatus of implementing such scheme below.
Consult Fig. 8, the embodiment of the present invention provides a kind of terminal, comprises pressure test device 80 and display device 81, and described pressure test device 80 comprises startup module 800, graphical interface program module 801 and script module 802.Start module 800 for starting pressure proving installation 80.In some embodiments of the invention, start module 800 with the autoexec under bat(Dos) existence of running tool form, this bat running tool is the entrance of pressure test device 80, double-clicking can starting pressure proving installation 80.
Graphical interface program module 801 is called for being activated module 800, and in display device 81, shows the graphical interface of user of pressure test device 80, and graphical interface of user comprises startup interface, for receiving startup command.Graphical interface program module 801 can exist with the form of Jar bag, this Jar comprises graphic user interface (the Graphical User Interface that utilization is increased income, GUI) graphical interface program of programming framework SWT design. graphical interface of user is the corresponding graphical interface of user of graphical interface program that utilizes SWT design, and this graphical interface of user can be with reference to shown in Fig. 7.After pressure test device 80 starts, start module 800 and call graphical interface program module 801, make it in the display device 81 of terminal, on display screen, show graphical interface of user, described graphical interface of user as shown in Figure 7, comprises a plurality of different startup interfaces.In some embodiments of the invention, described startup interface is button.
Script module 802 is for storing the script corresponding with described startup interface, and moves corresponding script according to the startup command of described startup interface.In some embodiments of the invention, script module 802 exists with the form in Pathon storehouse, has wherein stored a plurality of scripts, respectively the different startup interface of respective user graphical interfaces.When a certain startup interface receives after startup command, the click event of button for example, graphical interface program module 801, according to the corresponding script in startup command invoke script module 802, makes it operation.
In some embodiments of the invention, described startup interface comprises operating pressure test starting interface, obtains pressure test daily record startup interface and analysis pressure test daily record startup interface, and described script correspondence comprises the script of the script of operating pressure test, the script that obtains pressure test daily record and analysis pressure test daily record.
In some embodiments of the invention, graphical interface program module 801 is called the script of operating pressure test according to the startup command at operating pressure test starting interface, the script of operating pressure test sends pseudorandom customer incident and flow to another terminal, makes another terminal carry out described pseudorandom customer incident stream and carries out pressure test.
In some embodiments of the invention, graphical interface program module 801 calls according to the startup command of obtaining pressure test daily record startup interface the script that obtains pressure test daily record, the script that obtains pressure test daily record sends and obtains order to another terminal, obtains and preserve the daily record that another terminal is carried out pressure test.
In some embodiments of the invention, graphical interface program module 801 calls according to the startup command of analyzing pressure test daily record startup interface the script of analyzing pressure test daily record, the script of analyzing pressure test daily record carries out according to another terminal whether having abnormal log, the result of judgement pressure test in the daily record of pressure test.
In some embodiments of the invention, analyze the script of pressure test daily record also for the result of pressure test is sent to graphical interface program module 801, described graphical interface program module 801 also for showing the result of pressure test on graphical interface of user.
In some embodiments of the invention, graphical interface of user also comprises that a plurality of parameters arrange interface, and for receiving the setting of the test parameter of script, graphical interface program module 801 is also for being saved to described script by described test parameter.
Be understandable that, the function of each functional module of the terminal of the present embodiment can be according to above-mentioned method for testing pressure specific implementation, and its specific implementation process can, with reference to the associated description in said method embodiment, repeat no more herein.
Above-mentioned terminal provides graphical interface of user because of pressure test device 80, handled easily, and only need trigger startup interface and can carry out corresponding script, do not need user's input command repeatedly, save manpower, promoted work efficiency, saved the time.In addition the graphical interface program module 801 of pressure test device 80 is separate with script module 802, if test different programs, only need to revise the script in script module 802, do not need to change graphical interface program module 801, be convenient to maintenance and the expansion of pressure test device 80.The result of pressure test is presented on graphical interface of user, ocular and clear.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or pseudorandom store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (15)

1. a method for testing pressure, is characterized in that, comprising:
First terminal starts the pressure test plug-in unit of described first terminal;
Described pressure test plug-in unit calls the graphical interface program module of described pressure test plug-in unit, and shows the graphical interface of user of described pressure test plug-in unit, and described graphical interface of user comprises startup interface; And
Described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface.
2. method for testing pressure as claimed in claim 1, is characterized in that, shows the graphical interface of user of described pressure test plug-in unit, comprising:
Described graphical interface of user shows operating pressure test starting interface, obtains pressure test daily record startup interface and analyzes pressure test daily record startup interface, the script of the script that corresponding operating pressure is tested respectively, the script that obtains pressure test daily record and analysis pressure test daily record.
3. method for testing pressure as claimed in claim 2, is characterized in that, described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface, comprising:
Described graphical interface program module is called the script of described operating pressure test according to the startup command at described operating pressure test starting interface; And
The script of described operating pressure test sends pseudorandom customer incident and flow to the second terminal, makes described the second terminal carry out described pseudorandom customer incident stream and carries out pressure test.
4. method for testing pressure as claimed in claim 2, is characterized in that, described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface, comprising:
Described graphical interface program module according to described in obtain pressure test daily record startup interface startup command obtain the script of pressure test daily record described in calling; And
The described script that obtains pressure test daily record sends and obtains order to the second terminal, obtains and preserve the daily record that described the second terminal is carried out pressure test.
5. method for testing pressure as claimed in claim 4, is characterized in that, described graphical interface program module is called the corresponding script in the script module of described pressure test plug-in unit according to the startup command of described startup interface, also comprise:
Described graphical interface program module is called the script of described analysis pressure test daily record according to the startup command of described analysis pressure test daily record startup interface; And
The script of described analysis pressure test daily record carries out according to described the second terminal whether having abnormal log in the daily record of pressure test, judges the result of described pressure test.
6. method for testing pressure as claimed in claim 5, is characterized in that, the script of described analysis pressure test daily record carries out according to described the second terminal whether having abnormal log in the daily record of pressure test, after judging the result of described pressure test, also comprises:
The result that shows described pressure test at described graphical interface of user.
7. the method for testing pressure as described in claim 1 to 6 any one, is characterized in that, after showing the graphical interface of user of described pressure test plug-in unit, also comprises:
Described graphical interface of user shows that a plurality of parameters arrange interface;
Described parameter arranges the setting that interface receives the test parameter of described script, and described graphical interface program module is saved to described script by described test parameter.
8. a terminal, is characterized in that, comprises pressure test device and display device, and described pressure test device comprises:
Start module, for starting described pressure test device;
Graphical interface program module for being called by described startup module, and shows the graphical interface of user of described pressure test device in described display device, and described graphical interface of user comprises startup interface, for receiving startup command; And
Script module, for storing the script corresponding with described startup interface, and moves corresponding script according to the startup command of described startup interface.
9. terminal as claimed in claim 8, it is characterized in that, described startup interface comprises operating pressure test starting interface, obtains pressure test daily record startup interface and analysis pressure test daily record startup interface, and described script correspondence comprises the script of the script of operating pressure test, the script that obtains pressure test daily record and analysis pressure test daily record.
10. terminal as claimed in claim 9, it is characterized in that, described graphical interface program module is called the script of described operating pressure test according to the startup command at described operating pressure test starting interface, the script of described operating pressure test sends pseudorandom customer incident and flow to another terminal, makes described another terminal carry out described pseudorandom customer incident stream and carries out pressure test.
11. terminals as claimed in claim 9, it is characterized in that, described graphical interface program module according to described in obtain pressure test daily record startup interface startup command obtain the script of pressure test daily record described in calling, the described script that obtains pressure test daily record sends and obtains order to another terminal, obtains and preserve the daily record that described another terminal is carried out pressure test.
12. terminals as claimed in claim 11, it is characterized in that, described graphical interface program module is called the script of described analysis pressure test daily record according to the startup command of described analysis pressure test daily record startup interface, the script of described analysis pressure test daily record carries out according to described the second terminal whether having abnormal log in the daily record of pressure test, judges the result of described pressure test.
13. terminals as claimed in claim 12, it is characterized in that, the script of described analysis pressure test daily record is also for being sent to the result of described pressure test described graphical interface program module, and described graphical interface program module also for showing the result of described pressure test on described graphical interface of user.
14. terminals as described in claim 8 to 13 any one, it is characterized in that, described graphical interface of user also comprises that a plurality of parameters arrange interface, and for receiving the setting of the test parameter of described script, described graphical interface program module is also for being saved to described script by described test parameter.
15. 1 kinds of computer-readable storage mediums, is characterized in that, described computer-readable storage medium has program stored therein, and this program comprises the step as described in claim 1-7 any one while carrying out.
CN201210370073.0A 2012-09-27 2012-09-27 Method for testing pressure and terminal Active CN103699477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210370073.0A CN103699477B (en) 2012-09-27 2012-09-27 Method for testing pressure and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210370073.0A CN103699477B (en) 2012-09-27 2012-09-27 Method for testing pressure and terminal

Publications (2)

Publication Number Publication Date
CN103699477A true CN103699477A (en) 2014-04-02
CN103699477B CN103699477B (en) 2017-11-07

Family

ID=50361013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210370073.0A Active CN103699477B (en) 2012-09-27 2012-09-27 Method for testing pressure and terminal

Country Status (1)

Country Link
CN (1) CN103699477B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063324A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for Monkey test
CN104461904A (en) * 2014-12-29 2015-03-25 北京畅游天下网络技术有限公司 Method and device for testing mobile terminal
CN105373470A (en) * 2014-08-28 2016-03-02 西安Tcl软件开发有限公司 Media file compatibility detection method and apparatus
CN106502849A (en) * 2016-11-01 2017-03-15 广东浪潮大数据研究有限公司 A kind of system and method for the pressure test of hard disk
CN110162310A (en) * 2018-02-12 2019-08-23 腾讯科技(深圳)有限公司 Application program generation method and device, card i/f test method and device
CN110309066A (en) * 2019-06-13 2019-10-08 合肥移瑞通信技术有限公司 A kind of test method and system based on monkey tool
CN110309039A (en) * 2019-05-16 2019-10-08 平安科技(深圳)有限公司 Automation obtains method, apparatus, equipment and the storage medium of application log
CN111797023A (en) * 2020-07-07 2020-10-20 北京首汽智行科技有限公司 Vehicle-mounted equipment system stability testing method
CN114168476A (en) * 2021-12-10 2022-03-11 惠州Tcl移动通信有限公司 Automatic testing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070277109A1 (en) * 2006-05-24 2007-11-29 Chen You B Customizable user interface wrappers for web applications
CN102279782A (en) * 2011-04-01 2011-12-14 奇智软件(北京)有限公司 Pressure and device for testing hardware pressure
CN102508762A (en) * 2011-09-29 2012-06-20 用友软件股份有限公司 Data interaction control device and data interaction control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070277109A1 (en) * 2006-05-24 2007-11-29 Chen You B Customizable user interface wrappers for web applications
CN102279782A (en) * 2011-04-01 2011-12-14 奇智软件(北京)有限公司 Pressure and device for testing hardware pressure
CN102508762A (en) * 2011-09-29 2012-06-20 用友软件股份有限公司 Data interaction control device and data interaction control method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "《盘点09年新秀鲁大师软件"五宗拳"》", 《盘点09年新秀鲁大师软件"五宗拳"》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063324A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for Monkey test
CN104063324B (en) * 2014-07-10 2017-11-24 上海斐讯数据通信技术有限公司 A kind of Monkey method of testings and system
CN105373470A (en) * 2014-08-28 2016-03-02 西安Tcl软件开发有限公司 Media file compatibility detection method and apparatus
CN104461904A (en) * 2014-12-29 2015-03-25 北京畅游天下网络技术有限公司 Method and device for testing mobile terminal
CN106502849A (en) * 2016-11-01 2017-03-15 广东浪潮大数据研究有限公司 A kind of system and method for the pressure test of hard disk
CN110162310A (en) * 2018-02-12 2019-08-23 腾讯科技(深圳)有限公司 Application program generation method and device, card i/f test method and device
CN110162310B (en) * 2018-02-12 2022-03-01 腾讯科技(深圳)有限公司 Plug-in interface test method and device, computer equipment and storage medium
CN110309039A (en) * 2019-05-16 2019-10-08 平安科技(深圳)有限公司 Automation obtains method, apparatus, equipment and the storage medium of application log
CN110309039B (en) * 2019-05-16 2022-12-13 平安科技(深圳)有限公司 Method, device, equipment and storage medium for automatically acquiring application program log
CN110309066A (en) * 2019-06-13 2019-10-08 合肥移瑞通信技术有限公司 A kind of test method and system based on monkey tool
CN111797023A (en) * 2020-07-07 2020-10-20 北京首汽智行科技有限公司 Vehicle-mounted equipment system stability testing method
CN114168476A (en) * 2021-12-10 2022-03-11 惠州Tcl移动通信有限公司 Automatic testing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103699477B (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN103699477A (en) Pressure testing method and terminal
US10853232B2 (en) Adaptive system for mobile device testing
US11023363B2 (en) Performance test application sequence script
US9280451B2 (en) Testing device
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN104331373A (en) Monkey test system and method
KR101731293B1 (en) Mobile terminal test system and mobile terminal test method using the system
CN105677571B (en) Mobile terminal software device for testing compatibility and method
CN104598380A (en) Method and system for automatic testing based on control
CN105868105A (en) Application traversal testing method and device, and mobile terminal
CN105512033B (en) A kind of automated testing method of mobile terminal, device and mobile terminal
CN103577328A (en) Method and device for analyzing performance of application
CN101272422A (en) Mobile phone automatized test method
CN113138925A (en) Function test method and device of application program, computer equipment and storage medium
CN111143200A (en) Method and device for recording and playing back touch event, storage medium and equipment
CN111159047A (en) Android equipment auxiliary debugging device with visual interface and operation method thereof
KR20080052341A (en) Automatic-testing system and method for embedded system software and test scenario composing method
CN102999419A (en) Android test incident record and playback methods and device
CN110347565B (en) Application program abnormity analysis method and device and electronic equipment
CN105138458A (en) Method and system for recording automatic testing scripts by combining intelligent terminal and computer terminal
CN107979690A (en) A kind of mobile terminal and its method and system for skipping start guide
CN111427776A (en) Automatic testing method and device for intelligent equipment
CN109995931B (en) Method and device for realizing automatic calling
CN106021004A (en) User behavior simulation unit, test system and test method
JP5204343B1 (en) Test system and program

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