CN103838664A - Pressure testing method and device - Google Patents
Pressure testing method and device Download PDFInfo
- Publication number
- CN103838664A CN103838664A CN201210472426.8A CN201210472426A CN103838664A CN 103838664 A CN103838664 A CN 103838664A CN 201210472426 A CN201210472426 A CN 201210472426A CN 103838664 A CN103838664 A CN 103838664A
- Authority
- CN
- China
- Prior art keywords
- test
- pressure test
- choosing
- pressure
- point
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a pressure testing method and device, and belongs to the field of network communication. The pressure testing method includes the steps of selecting pressure testing points of a terminal where testing software runs, obtaining function testing scripts of the preprogrammed testing software, and conducting pressure testing on the selected pressure testing points on the terminal according to the function testing scripts of the testing software. The pressure testing device comprises a selecting module, an obtaining module and a testing module. According to the pressure testing method and device, the problems that at present, due to the fact that pressure tests are conducted on the terminal through manual operation by means of software developed on an IOS platform, efficiency is low, and the pressure tests are limited by the number of operation times and operation time are solved, the testing efficiency is improved, and operation strength of testers is lowered.
Description
Technical field
The present invention relates to network communication field, particularly a kind of method for testing pressure and device.
Background technology
Along with based on IOS(Iphone Operating System, the operating system of Apple exploitation) develop rapidly of terminal device of platform, software (as IOS QQ) based on ios platform exploitation is also more and more, therefore the test of the software based on ios platform exploitation is also just more and more, comprising the pressure test in IOS terminal to the software of ios platform exploitation.
The method for testing pressure in IOS terminal to the software of ios platform exploitation is at present mainly to adopt the function of artificial mode software to exploitation on the terminal device of ios platform to carry out pressure test.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Owing to adopting manual type, in IOS terminal, the software of ios platform exploitation is carried out to pressure test, testing efficiency is low, and is subject to the restriction of number of operations and running time.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of functional imperative method of testing and device.Described technical scheme is as follows:
On the one hand, provide a kind of method for testing pressure, described method comprises:
Choose the pressure test point of the terminal of operation testing software;
Obtain the functional test script of the described testing software writing in advance;
According to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test.
Particularly, described according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test, also comprise:
In the time that alarm occurs default test alarm point, be printed on the test record of on described terminal device, the described pressure test point of choosing being carried out pressure test.
Particularly, described according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test, also comprise:
According to default loop test number of times, when the described pressure test point of choosing being carried out pressure test and finished in described terminal according to described functional test script, be printed on the test record of in described terminal, the described pressure test point of choosing being carried out pressure test.
Particularly, described according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test, also comprise:
In the time interrupting the pressure test of in described terminal, the described pressure test point of choosing being carried out, reset the loop test number of times of described functional test script, and according to the loop test number of times resetting according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is re-started to pressure test.
Particularly, described in obtain the functional test script of the described testing software writing in advance before, comprising:
Utilize automated test tool to write the functional test script of described testing software, and loop test number of times and the test alarm point of described functional test script are set.
On the other hand, provide a kind of pressure test device, described device comprises:
Choose module, for choosing the pressure test point of the terminal of moving testing software;
Acquisition module, for obtaining the functional test script of the described testing software writing in advance;
Test module for according to the functional test script of described testing software, carries out pressure test to the described pressure test point of choosing in described terminal.
Particularly, described device also comprises:
Alarm module, after the described pressure test point of choosing being carried out to pressure test in described terminal, in the time that alarm occurs default test alarm point, is printed on the test record of on described terminal device, the described pressure test point of choosing being carried out pressure test.
Particularly, described device also comprises:
Print module, be used for according to default loop test number of times, when the described pressure test point of choosing being carried out pressure test and finished in described terminal according to described functional test script, be printed on the test record of in described terminal, the described pressure test point of choosing being carried out pressure test.
Particularly, described device also comprises:
Interrupt module, for in the time interrupting the pressure test of in described terminal, the described pressure test point of choosing being carried out, reset the loop test number of times of described functional test script, and according to the loop test number of times resetting according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is re-started to pressure test.
Particularly, described device comprises:
Write module, before obtaining the functional test script of the described testing software writing in advance, utilize automated test tool to write the functional test script of described testing software, and loop test number of times and the test alarm point of described functional test script are set.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By after the pressure test point of terminal of choosing operation testing software, obtain the functional test script of the testing software writing in advance, and according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test, solve at present that to adopt manual type to carry out pressure test efficiency in terminal to the software of ios platform exploitation low and be subject to the problem of the restriction of number of operations and running time, improve testing efficiency, reduced tester's manipulation strength.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method for testing pressure process flow diagram that the embodiment of the present invention one provides;
Fig. 2 is the method for testing pressure process flow diagram that the embodiment of the present invention two provides;
Fig. 3 is pressure test device the first structural representation that the embodiment of the present invention three provides;
Fig. 4 is pressure test device the second structural representation that the embodiment of the present invention three provides;
Fig. 5 is the third structural representation of pressure test device that the embodiment of the present invention three provides;
Fig. 6 is the 4th kind of structural representation of pressure test device that the embodiment of the present invention three provides;
Fig. 7 is the 5th kind of structural representation of pressure test device that the embodiment of the present invention three provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
Referring to Fig. 1, the embodiment of the present invention provides a kind of method for testing pressure, and the method comprises:
101, choose the pressure test point of the terminal of operation testing software;
102, obtain the functional test script of the testing software writing in advance;
103,, according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test.
Particularly, according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test, also comprises:
In the time that alarm occurs default test alarm point, be printed on the test record of on terminal device, the pressure test point of choosing being carried out pressure test.
Particularly, according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test, also comprises:
According to default loop test number of times, when the pressure test point of choosing being carried out pressure test and finished in terminal according to functional test script, be printed on the test record of in terminal, the pressure test point of choosing being carried out pressure test.
Particularly, according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test, also comprises:
In the time interrupting the pressure test of in terminal, the pressure test point of choosing being carried out, reset the loop test number of times of functional test script, and according to the loop test number of times resetting according to the functional test script of testing software, in terminal, the pressure test point of choosing is re-started to pressure test.
Particularly, before obtaining the functional test script of the testing software writing in advance, comprising:
Utilize automated test tool to write the functional test script of testing software, and loop test number of times and the test alarm point of functional test script are set.
The method that the embodiment of the present invention provides, by after the pressure test point of terminal of choosing operation testing software, obtains the functional test script of the testing software writing in advance; And according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test, solve at present that to adopt manual type to carry out pressure test efficiency in terminal to the software of ios platform exploitation low and be subject to the problem of the restriction of number of operations and running time, improve testing efficiency, reduced tester's manipulation strength.
Embodiment bis-
Referring to Fig. 2, the embodiment of the present invention provides a kind of method for testing pressure, and the method comprises:
201, choose the pressure test point of the terminal of operation testing software;
Particularly, the embodiment of the present invention is, on IOS terminal device, the ios software of exploitation is carried out to termination function pressure test, and tested software is developed based on ios device;
In the embodiment of the present invention, the pressure test of selected terminal point can be the arbitrary test point in the terminals such as internal memory, CPU, Crash, can choose flexibly as required, and the embodiment of the present invention is not restricted this.
202, utilize automated test tool to write the functional test script of testing software;
Particularly, the embodiment of the present invention is utilized the termination function pressure test that the automated test tool of ios device carries out such as UIAutomation instrument; Wherein, UIAutomation instrument is the automated test tool carrying in the Instruments under the program development tools Xcode that provides of Apple.
The automated test tool of the ios device utilizing in the embodiment of the present invention is UIAutomation instrument, can certainly adopt the automated test tool of other ios device, and the embodiment of the present invention is not restricted this.Utilize the automated test tool of ios device to write functional test script, also can before step 201, write the functional test script of tested software.
203, utilize after automated test tool writes the functional test script of testing software, loop test number of times and the test alarm point of functional test script is set;
Particularly, loop test number of times can arrange flexibly according to actual conditions, and this embodiment of the present invention is not restricted, and in follow-up test, also can modify as required; Test alarm point also can arrange flexibly, when accounting for certain proportion or CPU at internal memory and account for certain proportion, carry out alarm, set internal memory, CPU is alarm point, such as committed memory 80%, take CPU90% and carry out alarm, internal memory 80%, CPU90% are alarm point.
Further, after the test alarm point of functional test script is set, if in follow-up pressure test in the time of test alarm point generation alarm, be printed on the test record of on terminal device, the pressure test point of choosing being carried out pressure test.
204, according to the loop test number of times arranging, according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test.
Particularly, according to the loop test number of times arranging, according to the functional test script of the tested software of writing, on terminal device, the pressure test point of choosing is carried out to pressure test;
In the time interrupting the pressure test of in terminal, the pressure test point of choosing being carried out such as deadlock, reset the loop test number of times of functional test script, and according to the loop test number of times resetting and according to the functional test script of testing software, on terminal device, the pressure test point of choosing is re-started to pressure test.
205,, when the loop test number of times according to arranging, when the pressure test point of choosing being carried out pressure test and finished in terminal according to the functional test script of testing software, be printed on the test record of in terminal, the pressure test point of choosing being carried out pressure test.
Particularly, when executing at IOS terminal device after the pressure test of the pressure test point to choosing, check test result the printing test record of termination function pressure, so as according to test result search tested software at IOS terminal device the pressure test problem to the pressure test point of choosing.
The method that the embodiment of the present invention provides, by after the pressure test point of terminal of choosing operation testing software, obtain the functional test script of the testing software writing in advance, and according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test, solve at present that to adopt manual type to carry out pressure test efficiency in terminal to the software of ios platform exploitation low and be subject to the problem of the restriction of number of operations and running time, improve testing efficiency, reduced tester's manipulation strength.
Embodiment tri-
Referring to Fig. 3, the embodiment of the present invention provides a kind of pressure test device, and this device comprises:
Choose module 301, for choosing the pressure test point of the terminal of moving testing software;
Particularly, referring to Fig. 4, this device also comprises:
Particularly, referring to Fig. 5, this device also comprises:
Particularly, referring to Fig. 6, this device also comprises:
Interrupt module 306, for in the time interrupting the pressure test of in terminal, the pressure test point of choosing being carried out, reset the loop test number of times of functional test script, and according to the loop test number of times resetting according to the functional test script of testing software, in terminal, the pressure test point of choosing is re-started to pressure test.
Particularly, referring to Fig. 7, this device comprises:
The device that the embodiment of the present invention provides, by after the pressure test point of terminal of choosing operation testing software, obtain the functional test script of the testing software writing in advance, and according to the functional test script of testing software, in terminal, the pressure test point of choosing is carried out to pressure test, solve at present that to adopt manual type to carry out pressure test efficiency in terminal to the software of ios platform exploitation low and be subject to the problem of the restriction of number of operations and running time, improve testing efficiency, reduced tester's manipulation strength.
It should be noted that: the pressure test device that above-described embodiment provides is in the time carrying out pressure test, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the inner structure of device, to complete all or part of function described above.In addition, the pressure test device that above-described embodiment provides and method for testing pressure embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
These are only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. a method for testing pressure, is characterized in that, described method comprises:
Choose the pressure test point of the terminal of operation testing software;
Obtain the functional test script of the described testing software writing in advance;
According to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test.
2. method according to claim 1, is characterized in that, described according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test, also comprises:
In the time that alarm occurs default test alarm point, be printed on the test record of on described terminal device, the described pressure test point of choosing being carried out pressure test.
3. method according to claim 1, is characterized in that, described according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test, also comprises:
According to default loop test number of times, when the described pressure test point of choosing being carried out pressure test and finished in described terminal according to described functional test script, be printed on the test record of in described terminal, the described pressure test point of choosing being carried out pressure test.
4. method according to claim 1, is characterized in that, described according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is carried out to pressure test, also comprises:
In the time interrupting the pressure test of in described terminal, the described pressure test point of choosing being carried out, reset the loop test number of times of described functional test script, and according to the loop test number of times resetting according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is re-started to pressure test.
5. method according to claim 1, is characterized in that, described in obtain the functional test script of the described testing software writing in advance before, comprising:
Utilize automated test tool to write the functional test script of described testing software, and loop test number of times and the test alarm point of described functional test script are set.
6. a pressure test device, is characterized in that, described device comprises:
Choose module, for choosing the pressure test point of the terminal of moving testing software;
Acquisition module, for obtaining the functional test script of the described testing software writing in advance;
Test module for according to the functional test script of described testing software, carries out pressure test to the described pressure test point of choosing in described terminal.
7. device according to claim 6, is characterized in that, described device also comprises:
Alarm module, after the described pressure test point of choosing being carried out to pressure test in described terminal, in the time that alarm occurs default test alarm point, is printed on the test record of on described terminal device, the described pressure test point of choosing being carried out pressure test.
8. device according to claim 6, is characterized in that, described device also comprises:
Print module, be used for according to default loop test number of times, when the described pressure test point of choosing being carried out pressure test and finished in described terminal according to described functional test script, be printed on the test record of in described terminal, the described pressure test point of choosing being carried out pressure test.
9. device according to claim 6, is characterized in that, described device also comprises:
Interrupt module, for in the time interrupting the pressure test of in described terminal, the described pressure test point of choosing being carried out, reset the loop test number of times of described functional test script, and according to the loop test number of times resetting according to the functional test script of described testing software, in described terminal, the described pressure test point of choosing is re-started to pressure test.
10. device according to claim 6, is characterized in that, described device comprises:
Write module, before obtaining the functional test script of the described testing software writing in advance, utilize automated test tool to write the functional test script of described testing software, and loop test number of times and the test alarm point of described functional test script are set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210472426.8A CN103838664B (en) | 2012-11-20 | 2012-11-20 | A kind of method for testing pressure and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210472426.8A CN103838664B (en) | 2012-11-20 | 2012-11-20 | A kind of method for testing pressure and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103838664A true CN103838664A (en) | 2014-06-04 |
CN103838664B CN103838664B (en) | 2017-12-29 |
Family
ID=50802189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210472426.8A Active CN103838664B (en) | 2012-11-20 | 2012-11-20 | A kind of method for testing pressure and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103838664B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105138436A (en) * | 2015-08-07 | 2015-12-09 | 天津市康凯特软件科技有限公司 | Terminal offline test method and apparatus |
CN105242999A (en) * | 2015-09-22 | 2016-01-13 | 深圳怡化电脑股份有限公司 | Method and apparatus for testing financial self-service equipment |
CN105279052A (en) * | 2014-07-04 | 2016-01-27 | 福建天晴数码有限公司 | IOS stability test method and apparatus |
CN106339314A (en) * | 2016-08-12 | 2017-01-18 | 北京奇虎科技有限公司 | Application living testing method and device |
CN111756594A (en) * | 2019-03-29 | 2020-10-09 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070288625A1 (en) * | 2006-06-07 | 2007-12-13 | Al Chakra | System and Method to Optimally Manage Performance's Virtual Users and Test Cases |
CN101625658A (en) * | 2009-08-04 | 2010-01-13 | 卓望信息技术(北京)有限公司西城分公司 | Method for testing software system performance |
CN102063354A (en) * | 2009-11-18 | 2011-05-18 | 英业达股份有限公司 | Pressure test method of server |
CN102541734A (en) * | 2011-12-27 | 2012-07-04 | Tcl集团股份有限公司 | Method and device for testing pressure of equipment based on android platform |
-
2012
- 2012-11-20 CN CN201210472426.8A patent/CN103838664B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070288625A1 (en) * | 2006-06-07 | 2007-12-13 | Al Chakra | System and Method to Optimally Manage Performance's Virtual Users and Test Cases |
CN101625658A (en) * | 2009-08-04 | 2010-01-13 | 卓望信息技术(北京)有限公司西城分公司 | Method for testing software system performance |
CN102063354A (en) * | 2009-11-18 | 2011-05-18 | 英业达股份有限公司 | Pressure test method of server |
CN102541734A (en) * | 2011-12-27 | 2012-07-04 | Tcl集团股份有限公司 | Method and device for testing pressure of equipment based on android platform |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105279052A (en) * | 2014-07-04 | 2016-01-27 | 福建天晴数码有限公司 | IOS stability test method and apparatus |
CN105138436A (en) * | 2015-08-07 | 2015-12-09 | 天津市康凯特软件科技有限公司 | Terminal offline test method and apparatus |
CN105242999A (en) * | 2015-09-22 | 2016-01-13 | 深圳怡化电脑股份有限公司 | Method and apparatus for testing financial self-service equipment |
CN105242999B (en) * | 2015-09-22 | 2019-09-20 | 深圳怡化电脑股份有限公司 | A kind of method and device for testing financial self-service equipment |
CN106339314A (en) * | 2016-08-12 | 2017-01-18 | 北京奇虎科技有限公司 | Application living testing method and device |
CN106339314B (en) * | 2016-08-12 | 2019-05-31 | 北京奇虎科技有限公司 | A kind of the survival test method and device of application |
CN111756594A (en) * | 2019-03-29 | 2020-10-09 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
CN111756594B (en) * | 2019-03-29 | 2022-04-15 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103838664B (en) | 2017-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102967815B (en) | Chip testing method, automated testing equipment and system | |
CN102331967B (en) | Method for managing chip verification test cases | |
CN103838664A (en) | Pressure testing method and device | |
CN103268289B (en) | Record the method and system of application testing script on mobile terminals | |
CN105094783A (en) | Method and device for testing Android application stability | |
CN103631707A (en) | Method and device for obtaining code coverage rate | |
CN107907814B (en) | Method for improving mass production test efficiency of chips | |
CN103049371A (en) | Testing method and testing device of Android application programs | |
CN102306122A (en) | Automated testing method and equipment | |
CN101727390A (en) | Method and device for debugging performance test scripts | |
CN104268310A (en) | Method for calling UVM verification environment through special graphical interface | |
CN102831058B (en) | Testing method and testing device | |
CN105842559B (en) | Test result wiring method, device and test macro and mobile terminal | |
CN104731566A (en) | Testing device, method and system for IDE (Integrated Development Environment) | |
CN101102566B (en) | A design method and debugging method for mobile phone JTAG debugging interface signals | |
CN105279092A (en) | Software testing method and apparatus | |
CN110321292A (en) | Chip detecting method, device, electronic equipment and computer readable storage medium | |
CN104020763A (en) | Automatic test method and system for input and output interfaces | |
CN104750585A (en) | Terminal detecting method and terminal detecting device | |
CN106021101A (en) | Method and device for testing mobile terminal | |
CN103913672B (en) | A kind of satellite low frequency interface automatization test system | |
CN101763299A (en) | Method and device for testing universal series bus equipment | |
CN108595312A (en) | A kind of automatic performance method and device of modelling customer behavior | |
CN106681877A (en) | System and method for chip debugging and system chip | |
CN102135939A (en) | Test case operation dispatching device and method |
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 |