[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106383786A - Interface pressure performance testing method and device and electronic equipment - Google Patents

Interface pressure performance testing method and device and electronic equipment Download PDF

Info

Publication number
CN106383786A
CN106383786A CN201610857426.8A CN201610857426A CN106383786A CN 106383786 A CN106383786 A CN 106383786A CN 201610857426 A CN201610857426 A CN 201610857426A CN 106383786 A CN106383786 A CN 106383786A
Authority
CN
China
Prior art keywords
interface pressure
pressure performance
test
interface
script
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
CN201610857426.8A
Other languages
Chinese (zh)
Other versions
CN106383786B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610857426.8A priority Critical patent/CN106383786B/en
Publication of CN106383786A publication Critical patent/CN106383786A/en
Application granted granted Critical
Publication of CN106383786B publication Critical patent/CN106383786B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method and a device for testing interface pressure performance and electronic equipment, relates to a performance testing technology, and can improve the efficiency of testing the interface pressure performance. The interface pressure performance testing method comprises the following steps: starting a preset pressure testing tool and building an interface pressure performance testing environment; calling an extensible continuous integration engine to run a pre-edited interface pressure performance testing universal script, and setting interface pressure performance parameters for target software project engineering testing in a presented webpage interface to obtain an interface pressure performance testing script; and calling the built interface pressure performance testing environment and operating the interface pressure performance testing script. The invention is suitable for testing the interface function.

Description

A kind of interface pressure performance test methods, device and electronic equipment
Technical field
The present invention relates to Performance Testing Technology, more particularly, to a kind of interface pressure performance test methods, device and electronics set Standby.
Background technology
With the continuous development of compunication and Internet technology, the software project engineering of exploitation or software are also more next More, in software project engineering or software, interface pressure performance test be one in software project engineering test very heavy The test link wanted.Test performance data is collected by the interface pressure that test software projects externally provide, can test Whether the exploitation of each interface in the software project engineering of exploitation is correct, and interface runs whether stably wait interface capability, and, lead to Cross the test performance data collected it can be determined that can the performance of server end application software maintain original standard, checking exists In the case of concurrent greatly, whether server end application software can be with normal process service logic, such that it is able to optimize server end Program, finds the performance bottleneck of server end, and then improves its performance indications of lifting.
At present, interface pressure performance test typically adopts the stress test instrument based on Java of Apache organization development, For example, JMeter carry out performance test with reference to an extendible continuous integrating engine (Jenkins).Wherein, JMeter is used for Stress test is carried out to software (software project engineering), is originally designed for Web application test, expanded to other tests later Field, can be used for testing static and dynamic resource, for example:The little service software of static file, Java, CGI(Common gateway interface) (CGI, Common Gateway Interface) script, Java object, data base, file transfer protocol (FTP) (FTP, File Transfer Protocol) server etc..Jenkins is used for continuing, automatically builds test software projects (software), monitors some fixed The task of Shi Zhihang.
When carrying out interface pressure performance test, dependence test technical staff is needed manually to build using stress test instrument Test environment, and on the premise of being familiar with stress test instrument, write stress test script, in the stress test script write Build the test parameters such as interface pressure performance test data, then, operating pressure test script, obtains in the test environment built Take pressure testing results.
But this interface pressure performance test methods, due to being tested so that dependence test technology people using manual type The workload of member is big, and the relatively costly, short time consumption of interface pressure performance test is longer, leads to interface pressure performance test efficiency Relatively low.
Content of the invention
In view of this, the embodiment of the present invention provides a kind of interface pressure performance test methods, device and electronic equipment, can Interface pressure performance test efficiency, to solve, in existing interface pressure performance test methods, to be tested using manual type Make the problem that testing cost is higher, interface pressure performance test is less efficient.
In a first aspect, the embodiment of the present invention provides a kind of interface pressure performance test methods, including:
Start the stress test instrument pre-setting, build interface pressure performance detection environment;
Call the engine-operated interface pressure performance test generic script edited in advance of extendible continuous integrating, presenting Web interface in be provided for target software projects test interface pressure performance parameter, obtain interface pressure performance survey Training is originally;
Call the interface pressure performance detection environment built, run described interface pressure performance test script.
In conjunction with a first aspect, in the first embodiment of first aspect, the stress test that described startup pre-sets Instrument, builds interface pressure performance detection environment and includes:
JMeter installation kit is installed;
According to the function of required interface pressure performance test, corresponding frame APMB package is installed.
In conjunction with a first aspect, in the second embodiment of first aspect, described interface pressure performance parameter includes surveying Examination performance parameter, described test performance parameter includes:When server ip, port numbers, path, the Virtual User number of pressure survey, pressure are surveyed Between, one kind of test data etc. or its combination in any.
In conjunction with the second embodiment of first aspect, in the third embodiment of first aspect, described interface pressure Power performance parameter also includes log information parameter.
In conjunction with the third embodiment of first aspect, in the 4th kind of embodiment of first aspect, methods described is also Including:
Mounted picture is called to generate frame APMB package, from the interface running described interface pressure performance test script acquisition Extract log information parameter in pressure test result, generate corresponding chart.
In conjunction with the 4th kind of embodiment of first aspect, in the 5th kind of embodiment of first aspect, in described generation After corresponding chart, methods described also includes:
Receive across comparison instruction or longitudinally contrast instruction, in the interface being currently generated chart, the chart that adjustment generates Positions and dimensions, the log information parameter loading across comparison instruction or longitudinally contrasting command mappings, obtain the chart with adjustment Across comparison or the parallel tables of longitudinally contrast.
Second aspect, the embodiment of the present invention provides a kind of interface pressure performance testing device, including:Test environment builds mould Block, test script editor module and test script running module, wherein,
Test environment builds module, for starting the stress test instrument pre-setting, builds interface pressure performance test Environment;
Test script editor module, for calling the engine-operated interface pressure edited in advance of extendible continuous integrating Energy test all-purpose script, is provided for the interface pressure performance ginseng of target software projects test in the web interface presenting Number, obtains interface pressure performance test script;
Test script running module, for calling the interface pressure performance detection environment built, runs described interface pressure Performance test script.
In conjunction with second aspect, in the first embodiment of second aspect, described test environment is built module and is included:Main Function builds unit and miscellaneous function builds unit, wherein,
The function of tonic chord builds unit, for installing JMeter installation kit;
Miscellaneous function builds unit, for the function according to required interface pressure performance test, installs corresponding frame Bao Wen Part.
In conjunction with second aspect, in the second embodiment of second aspect, described interface pressure performance parameter includes surveying Examination performance parameter, described test performance parameter includes:When server ip, port numbers, path, the Virtual User number of pressure survey, pressure are surveyed Between, one kind of test data etc. or its combination in any.
In conjunction with the second embodiment of second aspect, in the third embodiment of second aspect, described interface pressure Power performance parameter also includes log information parameter.
In conjunction with the third embodiment of second aspect, in the 4th kind of embodiment of second aspect, described device is also Including:
Chart generating module, is used for calling mounted picture to generate frame APMB package, from the described interface pressure performance of operation Extract log information parameter in the interface pressure the performance test results that test script obtains, generate corresponding chart.
In conjunction with the 4th kind of embodiment of second aspect, in the 5th kind of embodiment of second aspect, described device is also Including:
Contrast module, for receiving across comparison instruction or longitudinally contrast instruction, in the interface being currently generated chart, adjusts The chart positions and dimensions of whole generation, the log information parameter loading across comparison instruction or longitudinally contrasting command mappings, obtain With the chart across comparison of adjustment or the parallel tables of longitudinally contrast.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes:Housing, processor, deposit Reservoir, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer setting On circuit boards;Power circuit, for being each circuit of above-mentioned electronic equipment or device is powered;Memorizer is used for storing can be held Line program code;Processor is run and executable program code pair by reading the executable program code of storage in memorizer The program answered, for executing aforementioned arbitrary described interface pressure performance test methods.
A kind of interface pressure performance test methods provided in an embodiment of the present invention, device and electronic equipment, pre- by starting The stress test instrument first arranging, builds interface pressure performance detection environment;Call extendible continuous integrating engine-operated pre- The interface pressure performance test generic script first edited, is provided for target software projects in the web interface presenting and surveys The interface pressure performance parameter of examination, obtains interface pressure performance test script;Call the interface pressure performance detection environment built, Run described interface pressure performance test script, can interface pressure performance test efficiency, to solve existing interface pressure Can carry out testing making that testing cost is higher, interface pressure performance test is less efficient using manual type in method of testing Problem.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is embodiments of the invention one interface pressure performance test methods schematic flow sheet;
Fig. 2 is embodiments of the invention two interface pressure performance testing device structural representation;
Fig. 3 is the structural representation of one embodiment of electronic equipment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
It will be appreciated that described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of not making creative work all its Its embodiment, broadly falls into the scope of protection of the invention.
Fig. 1 is embodiments of the invention one interface pressure performance test methods schematic flow sheet, as shown in figure 1, this enforcement The method of example can include:
Step 101, starts the stress test instrument pre-setting, builds interface pressure performance detection environment;
In the present embodiment, as an alternative embodiment, interface pressure performance detection environment is JMeter test environment, pressure Testing tool is automatic test engine, i.e. JMeter stress test instrument.Start the stress test instrument pre-setting, build Interface pressure performance detection environment includes:
A11, installs JMeter installation kit;
A12, according to the function of required interface pressure performance test, installs corresponding frame APMB package.
In the present embodiment, after JMeter installation kit is installed, need to use during building interface pressure performance test Frame APMB package.Frame APMB package is a feature card, i.e. JMeter plug-in unit.
Step 102, calls the engine-operated general foot of interface pressure performance test edited in advance of extendible continuous integrating This, be provided for the interface pressure performance parameter of target software projects test in the web interface presenting, obtain interface Pressure test script;
In the present embodiment, in interface pressure performance test, the corresponding test of each function has same or analogous test Flow process, except for the difference that, the corresponding test of difference in functionality, there are different interface pressure performance parameters.Thus, in the present embodiment, Each interface pressure performance test is compiled one and can assume the interface pressure performance test generic script that webpage (web) changes interface, Different interface pressure performance parameters is identified using variable.
In the present embodiment, provide a webpage (web) interface by interface pressure performance test generic script, can be in webpage Parameter (interface pressure performance parameter) and parameter value needed for interface pressure performance test is filled on interface, interface pressure will be provided with The interface pressure performance test generic script of power performance parameter value is stored as interface pressure performance test script, to enter line interface pressure Power performance test.
In the present embodiment, represent interface pressure performance parameter using variable, can flexibly edition interface pressure test Script, effectively reduces the workload individually editing each function corresponding interface pressure performance test script, lifting Scripting Edition effect Rate and quality.
In the present embodiment, as an alternative embodiment, interface pressure performance parameter includes test performance parameter, test performance Parameter includes:Server ip, port numbers, path, the Virtual User number (entering number of passes or Thread Count) of pressure survey, pressure survey time, test One kind of data etc. or its combination in any.Wherein, a Virtual User takies a thread or a process, and server ip is carried out for needs The Internet address of the destination server of stress test, can be one or more, and path is the path in interface requests string, for example http://127.0.0.1/b/?Gv=13&ch=200001, wherein/b/ are path.For example, for function newly developed, need Whether performance indications are met with assessment performance to the voluntarily stress test of the version with New function, in web interface setting Test performance parameter can be:Server ip=192.168.138.1, port numbers=80, path=/ui/, pressure the survey time= 1000th, number of passes=70, test data=overseas data are entered.Wherein, path is ui interface path, is space-time acquiescence path_name =b, the pressure survey time is defaulted as the second, is that space-time is defaulted as 60 seconds, and test data (data) is space-time, gives tacit consent to data=ui_ Request_domestic, i.e. domestic request string, if data=ui_request_overseas, for overseas request string.
As another alternative embodiment, interface pressure performance parameter also includes log information parameter, and log information parameter is used When in display interface pressure test result, the icon relevant parameter information of display, including:CPU information, internal memory (Memory) information, number of transactions per second etc..
In the present embodiment, after obtaining interface pressure performance test script, complete to set up in Jenkins to be used for The task (Job) of JMeter interface pressure performance test.
In the present embodiment, as an alternative embodiment, the interface pressure performance test script obtaining is supported to appoint as downstream Business, is called by other tasks.For example, as a Jenkins Downstream Jobs scene:Version of reaching the standard grade daily needs first to be deployed to pre- Issue environment, it is then desired to stress test is carried out to prerelease version, in the test performance parameter (upstream of web interface setting Task Transfer Parameters) can be:When server ip=192.168.138.2, port numbers=80, path to be tested=/b/, pressure are surveyed Between=600, enter number of passes=50, test data=domestic data;Again for example, as another Jenkins Downstream Jobs scene:Packing Compiling brings out a new edition, and after automatically dispose and recurrence, carries out stress test, in the test performance ginseng of web interface setting Counting (upstream task Transfer Parameters) can be:Server ip=192.168.138.3, port numbers=80, path=/b/, pressure are surveyed Time=600, enter number of passes=50, test data=overseas data.
Step 103, calls the interface pressure performance detection environment built to run described interface pressure performance test script.
In the present embodiment, in the interface pressure performance detection environment built, import the interface pressure performance editting and survey Training runs this script originally and in Jenkins, can obtain interface pressure the performance test results.As an alternative embodiment, JMeter can execute interface pressure performance test script automatically by ant, and JMeter executes a series of interface pressure performance Test, and collects each server, for example, the interface pressure performance test knot that first server and second server produce respectively Really, after being collected, interface pressure the performance test results are stored above-mentioned path.
In the present embodiment, as an alternative embodiment, the method also includes:
Mounted picture is called to generate frame APMB package, from the interface running described interface pressure performance test script acquisition Extract log information parameter in pressure test result, generate corresponding chart.
In the present embodiment, as an alternative embodiment, it is CMDRunner.jar file that picture generates frame APMB package, passes through Run CMDRunner.jar file, can generate according to the log information parameter in interface pressure the performance test results corresponding Picture or form.
In the present embodiment, as an alternative embodiment, the application programming interface (API) that Jenkins provides is called to notify Jenkins compiles engineering, and Jenkins compiling engineering triggers JMeter plug-in unit (picture generates frame APMB package) automatically according to above-mentioned road Footpath loading interface pressure test result.
In the present embodiment, as another alternative embodiment, after generating corresponding chart, the method also includes:
Receive across comparison instruction or longitudinally contrast instruction, in the interface being currently generated chart, the chart that adjustment generates Positions and dimensions, the log information parameter loading across comparison instruction or longitudinally contrasting command mappings, obtain the chart with adjustment Across comparison or the parallel tables of longitudinally contrast.
In the present embodiment, after execution JMeter stress test task, the related chart of test can be represented in Jenkins With report it is possible to according to user instruction, assume the interface pressure the performance test results of correlation or expected interface pressure performance Test result, with current interface pressure the performance test results carry out across comparison and/or, longitudinally contrast.
In the present embodiment, web page (interface) presents in Jenkins, and Jenkins is carried out by calling JMeter Pressure is surveyed, and according to the test performance parameter inputting in web interface, carries out interface pressure performance test (pressure is surveyed), after the completion of pressure is surveyed, root According to the script write in advance, daily record (log) information generation chart is shown.
The interface pressure performance test methods of the present embodiment, by starting the stress test instrument pre-setting, build and connect Mouth pressure test environment;Call the engine-operated interface pressure performance test edited in advance of extendible continuous integrating general Script, is provided for the interface pressure performance parameter of target software projects test in the web interface presenting, is connect Mouth pressure test script;Call the interface pressure performance detection environment built, run described interface pressure performance test foot This.So, by building interface pressure performance detection environment in advance, editor can assume the interface pressure performance test of web interface Generic script, arranges interface pressure performance parameter, achieve a butt joint a mouthful automatic test for pressure parameter in web interface, Interface pressure performance detection environment need not manually be built and write interface pressure performance test script, connect without manual construction Mouth pressure parameter, directly can be carried out interface pressure performance after web interface setting interface pressure performance parameter and surveys Examination, effectively reduces the workload of dependence test technical staff and interface pressure performance test cost so that interface pressure Short time consumption can be tested short, improve interface pressure performance test efficiency;Further, after the completion of test, phase can be automatically generated The chart that closes and report and carry out horizontal and longitudinally contrast;And, it is available for other job of Jenkins and call.
Fig. 2 is embodiments of the invention two interface pressure performance testing device structural representation, as shown in Fig. 2 this enforcement The device of example can include:Test environment builds module 21, test script editor module 22 and test script running module 23, Wherein,
Test environment builds module 21, for starting the stress test instrument pre-setting, builds interface pressure performance and surveys Test ring border;
In the present embodiment, as an alternative embodiment, interface pressure performance detection environment is JMeter test environment, pressure Testing tool is JMeter stress test instrument.
In the present embodiment, as an alternative embodiment, test environment is built module 21 and is included:The function of tonic chord build unit and Miscellaneous function builds unit (not shown), wherein,
The function of tonic chord builds unit, for installing JMeter installation kit;
Miscellaneous function builds unit, for the function according to required interface pressure performance test, installs corresponding frame Bao Wen Part.
Test script editor module 22, for calling the engine-operated interface pressure edited in advance of extendible continuous integrating Performance test generic script, is provided for the interface pressure performance of target software projects test in the web interface presenting Parameter, obtains interface pressure performance test script;
In the present embodiment, provide a webpage (web) interface by interface pressure performance test generic script, can be in webpage Parameter (interface pressure performance parameter) and parameter value needed for interface pressure performance test is filled on interface, by represented with variable The interface pressure performance test generic script of interface pressure performance parameter value is stored as interface pressure performance test script, to carry out Interface pressure performance test.
In the present embodiment, as an alternative embodiment, interface pressure performance parameter includes test performance parameter, described test Performance parameter includes:Server ip, port numbers, path, the pressure Virtual User number surveyed, the one kind pressing survey time, test data etc. Or its combination in any.
In the present embodiment, as another alternative embodiment, interface pressure performance parameter also includes log information parameter.Bag Include:CPU information, memory information, number of transactions per second etc..
Test script running module 23, for calling the interface pressure performance detection environment built, runs described interface pressure Power performance test script.
In the present embodiment, in the interface pressure performance detection environment built, import the interface pressure performance editting and survey Training runs this script originally and in Jenkins, can obtain interface pressure the performance test results.As an alternative embodiment, JMeter can execute interface pressure performance test script automatically by ant, and JMeter executes a series of interface pressure performance Test, and collects each server, for example, the interface pressure performance test knot that first server and second server produce respectively Really, after being collected, interface pressure the performance test results are stored above-mentioned path.
In the present embodiment, as an alternative embodiment, this device also includes:
Chart generating module (not shown), is used for calling mounted picture to generate frame APMB package, described from running Extract log information parameter in the interface pressure the performance test results that interface pressure performance test script obtains, generate corresponding figure Table.
In the present embodiment, as an alternative embodiment, it is CMDRunner.jar file that picture generates frame APMB package.
In the present embodiment, as another alternative embodiment, this device also includes:
Contrast module (not shown), for receiving across comparison instruction or longitudinally contrast instruction, is being currently generated figure In the interface of table, the chart positions and dimensions that adjustment generates, the daily record loading across comparison instruction or longitudinally contrasting command mappings Information parameter, obtains the chart across comparison with adjustment or the parallel tables longitudinally contrasting.
The device of the present embodiment, can be used for executing the technical scheme of embodiment of the method shown in Fig. 1, it realizes principle and skill Art effect is similar to, and here is omitted.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that Also there is other identical element including in the process of described key element, method, article or equipment.
Each embodiment in this specification is all described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple Single, in place of correlation, the part referring to embodiment of the method illustrates.
Represent in flow charts or here logic described otherwise above and/or step, for example, it is possible to be considered as to use In the order list of the executable instruction realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (system as computer based system, including processor or other can hold from instruction Row system, device or equipment instruction fetch the system of execute instruction) use, or with reference to these instruction execution systems, device or set Standby and use.For the purpose of this specification, " computer-readable medium " can any can be comprised, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress using with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:There is the electricity of one or more wirings Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program thereon or other are suitable Medium, because edlin, interpretation or if necessary with it can then be entered for example by carrying out optical scanning to paper or other media His suitable method is processed to electronically obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method can be with storage in memory and by suitable instruction execution The software of system execution or firmware are realizing.For example, if realized with hardware, and the same in another embodiment, can use Any one of following technology well known in the art or their combination are realizing:Have for data signal is realized with logic work( The discrete logic of the logic gates of energy, has the special IC of suitable combinational logic gate circuit, programmable gate Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment comprises the dress described in aforementioned any embodiment Put.
Fig. 3 is the structural representation of one embodiment of electronic equipment of the present invention, it is possible to achieve implement shown in Fig. 1-2 of the present invention The flow process of example, as shown in figure 3, above-mentioned electronic equipment can include:Housing 31, processor 32, memorizer 33, circuit board 34 and electricity Source circuit 35, wherein, circuit board 34 is placed in the interior volume that housing 31 surrounds, and processor 32 and memorizer 33 are arranged on circuit On plate 34;Power circuit 35, for being each circuit of above-mentioned electronic equipment or device is powered;Memorizer 33 is used for storing can be held Line program code;Processor 32 is run and executable program generation by reading the executable program code of storage in memorizer 33 The corresponding program of code, for executing the interface pressure performance test methods described in aforementioned any embodiment.
Processor 32 to the concrete implementation procedure of above-mentioned steps and processor 32 by run executable program code The step executing further, may refer to the description of Fig. 1-2 illustrated embodiment of the present invention, will not be described here.
This electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The feature of this kind equipment is that possess mobile communication function, and to provide speech, data Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and low End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, has calculating and processes work( Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.This kind equipment includes:Audio frequency, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server:There is provided the equipment of the service of calculating, it is total that the composition of server includes processor, hard disk, internal memory, system Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, is therefore processing energy The aspects such as power, stability, reliability, safety, extensibility, manageability require higher.
(5) other have the electronic equipment of data interaction function.
Those skilled in the art are appreciated that to realize all or part step that above-described embodiment method carries Suddenly the program that can be by completes come the hardware to instruct correlation, and described program can be stored in a kind of computer-readable storage medium In matter, this program upon execution, including one or a combination set of the step of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules to be respectively described with function.Certainly, exist Implement the function of each unit/module can be realized in same or multiple softwares and/or hardware during the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can Mode by software plus necessary general hardware platform to be realized.Based on such understanding, technical scheme essence On in other words prior art is contributed partly can be embodied in the form of software product, this computer software product Can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., include some instructions use so that a computer equipment (can be personal computer, server, or network equipment etc.) executes some of each embodiment of the present invention or embodiment Partly described method.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all answer It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of interface pressure performance test methods are it is characterised in that include:
Start the stress test instrument pre-setting, build interface pressure performance detection environment;
Call the engine-operated interface pressure performance test generic script edited in advance of extendible continuous integrating, in the net presenting It is provided for the interface pressure performance parameter of target software projects test in page boundary face, obtain interface pressure performance test foot This;
Call the interface pressure performance detection environment built, run described interface pressure performance test script.
2. interface pressure performance test methods according to claim 1 are it is characterised in that the pressure that pre-sets of described startup Power testing tool, builds interface pressure performance detection environment and includes:
JMeter installation kit is installed;
According to the function of required interface pressure performance test, corresponding frame APMB package is installed.
3. interface pressure performance test methods according to claim 1 are it is characterised in that described interface pressure performance parameter Including test performance parameter, described test performance parameter includes:Server ip, port numbers, path, pressure survey Virtual User number, One kind of pressure survey time, test data etc. or its combination in any.
4. interface pressure performance test methods according to claim 3 are it is characterised in that described interface pressure performance parameter Also include log information parameter.
5. interface pressure performance test methods according to claim 4 are it is characterised in that methods described also includes:
Mounted picture is called to generate frame APMB package, from the interface pressure running described interface pressure performance test script acquisition Extract log information parameter in the performance test results, generate corresponding chart.
6. interface pressure performance test methods according to claim 5 are it is characterised in that generate corresponding chart described Afterwards, methods described also includes:
Receive across comparison instruction or longitudinally contrast instruction, in the interface being currently generated chart, the chart position that adjustment generates And size, the log information parameter loading across comparison instruction or longitudinally contrasting command mappings, obtain horizontal with the chart of adjustment Contrast or the parallel tables of longitudinally contrast.
7. a kind of interface pressure performance testing device is it is characterised in that include:Test environment builds module, test script editor Module and test script running module, wherein,
Test environment builds module, for starting the stress test instrument pre-setting, builds interface pressure performance detection environment;
Test script editor module, for calling the engine-operated interface pressure performance edited in advance of extendible continuous integrating to survey Examination generic script, is provided for the interface pressure performance parameter of target software projects test in the web interface presenting, Obtain interface pressure performance test script;
Test script running module, for calling the interface pressure performance detection environment built, runs described interface pressure performance Test script.
8. interface pressure performance testing device according to claim 7 is it is characterised in that described test environment builds module Including:The function of tonic chord builds unit and miscellaneous function builds unit, wherein,
The function of tonic chord builds unit, for installing JMeter installation kit;
Miscellaneous function builds unit, for the function according to required interface pressure performance test, installs corresponding frame APMB package.
9. interface pressure performance testing device according to claim 7 is it is characterised in that described interface pressure performance parameter Including test performance parameter, described test performance parameter includes:Server ip, port numbers, path, pressure survey Virtual User number, One kind of pressure survey time, test data etc. or its combination in any.
10. a kind of electronic equipment is it is characterised in that described electronic equipment includes:Housing, processor, memorizer, circuit board and electricity Source circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and memorizer are arranged on circuit boards;Power supply Circuit, for being each circuit of above-mentioned electronic equipment or device is powered;Memorizer is used for storing executable program code;Process Device runs program corresponding with executable program code by reading the executable program code of storage in memorizer, is used for holding Interface pressure performance test methods described in the aforementioned any claim 1-6 of row.
CN201610857426.8A 2016-09-27 2016-09-27 Interface pressure performance testing method and device and electronic equipment Expired - Fee Related CN106383786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610857426.8A CN106383786B (en) 2016-09-27 2016-09-27 Interface pressure performance testing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610857426.8A CN106383786B (en) 2016-09-27 2016-09-27 Interface pressure performance testing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106383786A true CN106383786A (en) 2017-02-08
CN106383786B CN106383786B (en) 2019-05-17

Family

ID=57936907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610857426.8A Expired - Fee Related CN106383786B (en) 2016-09-27 2016-09-27 Interface pressure performance testing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106383786B (en)

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038120A (en) * 2017-05-25 2017-08-11 北京云测信息技术有限公司 A kind of method for testing software and equipment
CN107276842A (en) * 2017-05-10 2017-10-20 北京金山安全软件有限公司 Interface test method and device and electronic equipment
CN107315687A (en) * 2017-06-29 2017-11-03 环球智达科技(北京)有限公司 Code method for automatically releasing
CN107357729A (en) * 2017-07-07 2017-11-17 广东中星电子有限公司 The method and electronic equipment of test software
CN107423210A (en) * 2017-03-08 2017-12-01 北京数码大方科技股份有限公司 Software performance testing method and device
CN107506298A (en) * 2017-07-28 2017-12-22 杭州销冠网络科技有限公司 A kind of monitoring method and system for business on line
CN107800593A (en) * 2017-11-09 2018-03-13 郑州云海信息技术有限公司 The method of testing and system of a kind of network pressure
CN107977292A (en) * 2017-12-07 2018-05-01 北京兆易创新科技股份有限公司 The test method and device of SPI-NAND
CN108540349A (en) * 2018-04-18 2018-09-14 武汉极意网络科技有限公司 A kind of automated performance testing method and system based on Jmeter
CN108733569A (en) * 2018-05-25 2018-11-02 北京五八信息技术有限公司 A kind of automatic interface testing method, device, storage medium and equipment
CN108733545A (en) * 2017-04-25 2018-11-02 北京微影时代科技有限公司 A kind of method for testing pressure and device
CN109344076A (en) * 2018-10-22 2019-02-15 浙江执御信息技术有限公司 A kind of automatic interface testing method and its device based on JMeter and Jenkins
CN109408379A (en) * 2018-09-30 2019-03-01 福建星瑞格软件有限公司 One kind is based on promotion jmeter interface automatic test data matching method
CN109542790A (en) * 2018-11-26 2019-03-29 郑州云海信息技术有限公司 A kind of automated testing method and system of pressure test
CN109766228A (en) * 2017-11-09 2019-05-17 北京京东尚科信息技术有限公司 Verification method and device on a kind of line based on interface
CN109828901A (en) * 2018-12-15 2019-05-31 深圳壹账通智能科技有限公司 Build method and device, Linux server and readable storage medium storing program for executing that pressure surveys environment
CN110275823A (en) * 2019-04-25 2019-09-24 武汉众邦银行股份有限公司 Quick test macro and method based on Open-Source Tools
CN110334005A (en) * 2019-05-24 2019-10-15 平安普惠企业管理有限公司 Graphic data base screening technique and device, storage medium, electronic equipment
CN110737601A (en) * 2019-10-24 2020-01-31 北京字节跳动网络技术有限公司 test methods, devices, electronic equipment and storage medium
CN110955603A (en) * 2019-12-03 2020-04-03 望海康信(北京)科技股份公司 Automatic testing method and device, electronic equipment and computer readable storage medium
CN111078527A (en) * 2019-11-08 2020-04-28 北京深思数盾科技股份有限公司 Auxiliary system and method for pressure testing of server
WO2020082585A1 (en) * 2018-10-25 2020-04-30 深圳壹账通智能科技有限公司 Method and device for interface testing
CN111309575A (en) * 2020-02-18 2020-06-19 深圳市朱墨科技有限公司 Method, device, server and storage medium for starting and stopping test tool
CN111752820A (en) * 2019-03-29 2020-10-09 上海哔哩哔哩科技有限公司 Pressure testing method of gPC interface, computer equipment and storage medium
CN112486838A (en) * 2020-12-14 2021-03-12 广州品唯软件有限公司 Interface testing method and device, computer equipment and storage medium
CN112527686A (en) * 2020-12-29 2021-03-19 平安普惠企业管理有限公司 Interface performance test method, device, equipment and storage medium
CN112765004A (en) * 2021-01-19 2021-05-07 北京睿企信息科技有限公司 Automatic and self-adaptive interface performance test method
CN112882910A (en) * 2021-01-22 2021-06-01 中国建设银行股份有限公司 Interface pressure testing method and device of workflow engine
CN113505083A (en) * 2021-09-09 2021-10-15 连连宝(杭州)信息技术有限公司 Interface pressure performance testing method, device, equipment and medium
CN113886221A (en) * 2021-09-13 2022-01-04 前海飞算云智软件科技(深圳)有限公司 Test script generation method and device, storage medium and electronic equipment
CN115174433A (en) * 2022-07-07 2022-10-11 东软睿驰汽车技术(大连)有限公司 Simulation method, simulation device and simulation system for multi-terminal access gateway
CN116340189A (en) * 2023-05-29 2023-06-27 天翼云科技有限公司 Automatic test method, device, equipment and storage medium for access business process

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130055028A1 (en) * 2011-08-31 2013-02-28 Ebay Inc. Methods and systems for creating software tests as executable resources
CN103729361A (en) * 2012-10-12 2014-04-16 百度在线网络技术(北京)有限公司 Method and device for testing performance of database
CN104375937A (en) * 2014-11-19 2015-02-25 福建亿榕信息技术有限公司 Continuous integration method and system of automated testing results
CN105404580A (en) * 2015-10-23 2016-03-16 努比亚技术有限公司 Distributed pressure test system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130055028A1 (en) * 2011-08-31 2013-02-28 Ebay Inc. Methods and systems for creating software tests as executable resources
CN103729361A (en) * 2012-10-12 2014-04-16 百度在线网络技术(北京)有限公司 Method and device for testing performance of database
CN104375937A (en) * 2014-11-19 2015-02-25 福建亿榕信息技术有限公司 Continuous integration method and system of automated testing results
CN105404580A (en) * 2015-10-23 2016-03-16 努比亚技术有限公司 Distributed pressure test system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李琰: "Web性能自动化测试和监控系统PerfHub的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423210A (en) * 2017-03-08 2017-12-01 北京数码大方科技股份有限公司 Software performance testing method and device
CN108733545B (en) * 2017-04-25 2022-02-18 北京微影时代科技有限公司 Pressure testing method and device
CN108733545A (en) * 2017-04-25 2018-11-02 北京微影时代科技有限公司 A kind of method for testing pressure and device
CN107276842A (en) * 2017-05-10 2017-10-20 北京金山安全软件有限公司 Interface test method and device and electronic equipment
CN107276842B (en) * 2017-05-10 2020-10-09 北京金山安全软件有限公司 Interface test method and device and electronic equipment
CN107038120A (en) * 2017-05-25 2017-08-11 北京云测信息技术有限公司 A kind of method for testing software and equipment
CN107038120B (en) * 2017-05-25 2020-05-29 北京云测信息技术有限公司 Software testing method and device
CN107315687A (en) * 2017-06-29 2017-11-03 环球智达科技(北京)有限公司 Code method for automatically releasing
CN107357729A (en) * 2017-07-07 2017-11-17 广东中星电子有限公司 The method and electronic equipment of test software
CN107506298A (en) * 2017-07-28 2017-12-22 杭州销冠网络科技有限公司 A kind of monitoring method and system for business on line
CN107800593A (en) * 2017-11-09 2018-03-13 郑州云海信息技术有限公司 The method of testing and system of a kind of network pressure
CN109766228A (en) * 2017-11-09 2019-05-17 北京京东尚科信息技术有限公司 Verification method and device on a kind of line based on interface
CN107977292A (en) * 2017-12-07 2018-05-01 北京兆易创新科技股份有限公司 The test method and device of SPI-NAND
CN108540349A (en) * 2018-04-18 2018-09-14 武汉极意网络科技有限公司 A kind of automated performance testing method and system based on Jmeter
CN108540349B (en) * 2018-04-18 2021-04-23 武汉极意网络科技有限公司 Automatic performance testing method and system based on Jmeter
CN108733569A (en) * 2018-05-25 2018-11-02 北京五八信息技术有限公司 A kind of automatic interface testing method, device, storage medium and equipment
CN109408379A (en) * 2018-09-30 2019-03-01 福建星瑞格软件有限公司 One kind is based on promotion jmeter interface automatic test data matching method
CN109344076A (en) * 2018-10-22 2019-02-15 浙江执御信息技术有限公司 A kind of automatic interface testing method and its device based on JMeter and Jenkins
WO2020082585A1 (en) * 2018-10-25 2020-04-30 深圳壹账通智能科技有限公司 Method and device for interface testing
CN109542790A (en) * 2018-11-26 2019-03-29 郑州云海信息技术有限公司 A kind of automated testing method and system of pressure test
CN109828901A (en) * 2018-12-15 2019-05-31 深圳壹账通智能科技有限公司 Build method and device, Linux server and readable storage medium storing program for executing that pressure surveys environment
CN111752820B (en) * 2019-03-29 2024-01-19 上海哔哩哔哩科技有限公司 gRPC interface pressure test method, computer equipment and storage medium
CN111752820A (en) * 2019-03-29 2020-10-09 上海哔哩哔哩科技有限公司 Pressure testing method of gPC interface, computer equipment and storage medium
CN110275823A (en) * 2019-04-25 2019-09-24 武汉众邦银行股份有限公司 Quick test macro and method based on Open-Source Tools
CN110334005A (en) * 2019-05-24 2019-10-15 平安普惠企业管理有限公司 Graphic data base screening technique and device, storage medium, electronic equipment
CN110737601A (en) * 2019-10-24 2020-01-31 北京字节跳动网络技术有限公司 test methods, devices, electronic equipment and storage medium
CN111078527A (en) * 2019-11-08 2020-04-28 北京深思数盾科技股份有限公司 Auxiliary system and method for pressure testing of server
CN111078527B (en) * 2019-11-08 2021-01-26 北京深思数盾科技股份有限公司 Auxiliary system and method for pressure testing of server
CN110955603A (en) * 2019-12-03 2020-04-03 望海康信(北京)科技股份公司 Automatic testing method and device, electronic equipment and computer readable storage medium
CN111309575A (en) * 2020-02-18 2020-06-19 深圳市朱墨科技有限公司 Method, device, server and storage medium for starting and stopping test tool
CN112486838A (en) * 2020-12-14 2021-03-12 广州品唯软件有限公司 Interface testing method and device, computer equipment and storage medium
CN112527686A (en) * 2020-12-29 2021-03-19 平安普惠企业管理有限公司 Interface performance test method, device, equipment and storage medium
CN112765004A (en) * 2021-01-19 2021-05-07 北京睿企信息科技有限公司 Automatic and self-adaptive interface performance test method
CN112765004B (en) * 2021-01-19 2024-04-26 北京睿企信息科技有限公司 Automatic and self-adaptive interface performance test method
CN112882910A (en) * 2021-01-22 2021-06-01 中国建设银行股份有限公司 Interface pressure testing method and device of workflow engine
CN113505083B (en) * 2021-09-09 2021-12-14 连连宝(杭州)信息技术有限公司 Interface pressure performance testing method, device, equipment and medium
CN113505083A (en) * 2021-09-09 2021-10-15 连连宝(杭州)信息技术有限公司 Interface pressure performance testing method, device, equipment and medium
CN113886221B (en) * 2021-09-13 2022-09-23 前海飞算云智软件科技(深圳)有限公司 Test script generation method and device, storage medium and electronic equipment
CN113886221A (en) * 2021-09-13 2022-01-04 前海飞算云智软件科技(深圳)有限公司 Test script generation method and device, storage medium and electronic equipment
CN115174433A (en) * 2022-07-07 2022-10-11 东软睿驰汽车技术(大连)有限公司 Simulation method, simulation device and simulation system for multi-terminal access gateway
CN115174433B (en) * 2022-07-07 2024-06-11 东软睿驰汽车技术(大连)有限公司 Simulation method, simulation device and simulation system for multi-terminal access gateway
CN116340189A (en) * 2023-05-29 2023-06-27 天翼云科技有限公司 Automatic test method, device, equipment and storage medium for access business process

Also Published As

Publication number Publication date
CN106383786B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN106383786A (en) Interface pressure performance testing method and device and electronic equipment
CN104516783B (en) Authority control method and device
CN103577658B (en) The appraisal procedure and assessment system of intelligent terminal hardware
CN102708050B (en) Method and system for testing mobile application
CN111930617B (en) Automatic test method and device based on data objectification
CN105550252B (en) File positioning method and device and electronic equipment
CN109302522A (en) Test method, device and computer system and medium
CN106610839B (en) Method for issuing upgrade package, lightweight upgrade method, device and system
US20120233588A1 (en) Blended service creation, test, and deployment environment for multiple service endpoints
CN105630685A (en) Method and device for testing program interface
CN105302710A (en) Method and apparatus for determining test case in need of regression testing
CN102624576A (en) Method for automatically testing webpage downloading time of browser and system thereof
CN112463634A (en) Software testing method and device under micro-service architecture
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN102946415B (en) A kind of implementation method of mobile terminal this locality application and device
WO2020211360A1 (en) Mock test method and system, electronic device, and computer non-volatile readable storage medium
CN102760096A (en) Test data generation method, unit testing method and unit testing system
CN111506579A (en) Method, program and equipment for generating intelligent contract code
CN107608663A (en) A kind of development approach and device of Mobile solution plug-in unit and Mobile solution
CN107818046A (en) The A/B method of testings and device of the application program page
CN105138463A (en) Testing method and system for mobile terminal software
CN109542754A (en) The cut-in method of mobile device, the adjustment method of application program, device and system
CN110334000A (en) A kind of test method based on MOCK technology
CN109710532A (en) Test case management method and device and electronic equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190517

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