CN106383786B - A kind of interface pressure performance test methods, device and electronic equipment - Google Patents

A kind of interface pressure performance test methods, device and electronic equipment Download PDF

Info

Publication number
CN106383786B
CN106383786B CN201610857426.8A CN201610857426A CN106383786B CN 106383786 B CN106383786 B CN 106383786B CN 201610857426 A CN201610857426 A CN 201610857426A CN 106383786 B CN106383786 B CN 106383786B
Authority
CN
China
Prior art keywords
test
interface pressure
pressure performance
interface
performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610857426.8A
Other languages
Chinese (zh)
Other versions
CN106383786A (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.)
Kingsoft Corp Ltd
Original Assignee
Kingsoft Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingsoft Corp Ltd filed Critical Kingsoft Corp 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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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; 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

Abstract

The embodiment of the present invention discloses a kind of interface pressure performance test methods, device and electronic equipment, is related to Performance Testing Technology, is able to ascend interface pressure performance test efficiency.The interface pressure performance test methods include: the pre-set pressure test tool of starting, build interface pressure performance detection environment;The engine-operated interface pressure performance test generic script edited in advance of expansible continuous integrating is called, interface pressure performance parameter of the setting for the test of target software projects, obtains interface pressure performance test script in the web interface of presentation;The interface pressure performance detection environment built is called, the interface pressure performance test script is run.The present invention is suitable for testing interface function.

Description

A kind of interface pressure performance test methods, device and electronic equipment
Technical field
The present invention relates to Performance Testing Technologies more particularly to a kind of interface pressure performance test methods, device and electronics to set It is standby.
Background technique
As computer communication and the continuous development of Internet technology, the software project engineering or software of exploitation are also more next More, in software project engineering or software, interface pressure performance test is that one in software project engineering test is very heavy The testing process wanted.Test performance data are collected by the interface pressure that test software projects externally provide, can be tested The interface capabilities the such as whether exploitation of each interface in the software project engineering of exploitation is correct, and whether interface operation is stable, 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, and verifying exists In the case where big concurrent, server end application software whether can normal processing business logic, so as to optimize server end Program finds the performance bottleneck of server end, and then improves and promote its performance indicator.
Currently, interface pressure performance test generally uses the pressure test tool based on Java of Apache organization development, For example, JMeter and being tested for the property in conjunction with an expansible continuous integrating engine (Jenkins).Wherein, JMeter is used for Pressure test is carried out to software (software project engineering), Web application test is originally designed for, expanded to other tests later Field can be used for testing static and dynamic resource, such as: the small service software of static file, Java, CGI(Common gateway interface) (CGI, Common Gateway Interface) script, Java object, database, File Transfer Protocol (FTP, File Transfer Protocol) server etc..For Jenkins for continuing, automatically constructing test software projects (software), it is some fixed to monitor The task of Shi Zhihang.
When carrying out interface pressure performance test, dependence test technical staff is needed manually to build using pressure test tool Environment is tested, and under the premise of being familiar with pressure test tool, pressure test script is write, in the pressure test script write The test parameters such as interface pressure performance test data are constructed, then, the operating pressure test script in the test environment built obtains Take pressure testing results.
But interface pressure performance test methods, due to being tested using manual type, so that dependence test technology people The heavy workload of member, higher cost, the short time consumption of interface pressure performance test are longer, lead to interface pressure performance test efficiency It is lower.
Summary 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, it can Interface pressure performance test efficiency, to solve to be tested in existing interface pressure performance test methods using manual type So that the problem that testing cost is higher, interface pressure performance test efficiency is lower.
In a first aspect, the embodiment of the present invention provides a kind of interface pressure performance test methods, comprising:
Start pre-set pressure test tool, builds interface pressure performance detection environment;
The engine-operated interface pressure performance test generic script edited in advance of expansible continuous integrating is called, is being presented Web interface in setting for target software projects test interface pressure performance parameter, obtain interface pressure performance survey Training sheet;
The interface pressure performance detection environment built is called, the interface pressure performance test script is run.
With reference to first aspect, in the first embodiment of first aspect, the pre-set pressure test of starting Tool, building interface pressure performance detection environment includes:
JMeter installation kit is installed;
According to the function of required interface pressure performance test, corresponding frame APMB package is installed.
With reference to first aspect, in second of embodiment of first aspect, the interface pressure performance parameter includes surveying Performance parameter is tried, when the test performance parameter includes: server ip, port numbers, path, the Virtual User number of pressure survey, pressure survey Between, one kind of test data etc. or any combination thereof.
Second of embodiment with reference to first aspect, in the third embodiment of first aspect, the interface pressure Power performance parameter further includes log information parameter.
The third embodiment with reference to first aspect, in the 4th kind of embodiment of first aspect, the method is also Include:
Mounted picture is called to generate frame APMB package, from the interface for running the interface pressure performance test script acquisition Log information parameter is extracted in pressure test result, generates corresponding chart.
The 4th kind of embodiment with reference to first aspect, in the 5th kind of embodiment of first aspect, in the generation After corresponding chart, the method also includes:
Across comparison instruction or longitudinal comparison instruction are received, in the interface for being currently generated chart, adjusts the chart of generation The log information parameter of positions and dimensions, the instruction of load across comparison or longitudinal comparison command mappings, obtains the chart with adjustment Across comparison or the parallel tables longitudinally compared.
Second aspect, the embodiment of the present invention provide a kind of interface pressure performance testing device, comprising: test environmental structure mould Block, test script editor module and test script running module, wherein
It tests environmental structure module and builds interface pressure performance test for starting pre-set pressure test tool Environment;
Test script editor module, for calling the engine-operated interface pressure edited in advance of expansible continuous integrating Energy test all-purpose script, interface pressure performance ginseng of the setting for the test of target software projects in the web interface of presentation Number, obtains interface pressure performance test script;
Test script running module runs the interface pressure for calling the interface pressure performance detection environment built Performance test script.
In conjunction with second aspect, in the first embodiment of second aspect, the test environmental structure module includes: master 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 second of embodiment of second aspect, the interface pressure performance parameter includes surveying Performance parameter is tried, when the test performance parameter includes: server ip, port numbers, path, the Virtual User number of pressure survey, pressure survey Between, one kind of test data etc. or any combination thereof.
In conjunction with second of embodiment of second aspect, in the third embodiment of second aspect, the interface pressure Power performance parameter further 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 Include:
Chart generating module, for calling mounted picture to generate frame APMB package, from the operation interface pressure performance Log information parameter is extracted in the interface pressure the performance test results that test script obtains, and generates 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 Include:
Contrast module is adjusted in the interface for being currently generated chart for receiving across comparison instruction or longitudinal comparison instruction The log information parameter of the chart positions and dimensions of whole generation, the instruction of load across comparison or longitudinal comparison command mappings, obtains The parallel tables with the chart across comparison of adjustment or longitudinally compared.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing and can hold Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory The program answered, for executing aforementioned any interface pressure performance test methods.
A kind of interface pressure performance test methods, device and electronic equipment provided in an embodiment of the present invention, it is pre- by starting The pressure test tool being first arranged, builds interface pressure performance detection environment;Call expansible continuous integrating engine-operated pre- The interface pressure performance test generic script first edited, setting is surveyed for target software projects in the web interface of presentation The interface pressure performance parameter of examination, obtains interface pressure performance test script;The interface pressure performance detection environment built is called, Run the interface pressure performance test script, can interface pressure performance test efficiency, to solve existing interface pressure It can be tested using manual type so that testing cost is higher, interface pressure performance test efficiency is lower in test method Problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is one interface pressure performance test methods flow diagram of the embodiment of the present invention;
Fig. 2 is two interface pressure performance testing device structural schematic diagram of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is one interface pressure performance test methods flow diagram of the embodiment of the present invention, as shown in Figure 1, this implementation Example method may include:
Step 101, start pre-set pressure test tool, build interface pressure performance detection environment;
In the present embodiment, as an alternative embodiment, interface pressure performance detection environment is that JMeter tests environment, pressure Testing tool is automatic test engine, i.e. JMeter pressure test tool.Start pre-set pressure test tool, builds Interface pressure performance detection environment includes:
A11 installs JMeter installation kit;
A12 installs corresponding frame APMB package according to the function of required interface pressure performance test.
In the present embodiment, after JMeter installation kit is installed, builds and need during interface pressure performance test using arriving Frame APMB package.Frame APMB package is a feature card, i.e. JMeter plug-in unit.
Step 102, the engine-operated general foot of interface pressure performance test edited in advance of expansible continuous integrating is called This, interface pressure performance parameter of the setting for the test of target software projects, obtains interface in the web interface of presentation Pressure test script;
In the present embodiment, in interface pressure performance test, corresponding test of each function has the same or similar test Process, unlike, the corresponding test of different function has different interface pressure performance parameters.Thus, in the present embodiment, Each interface pressure performance test, which is compiled one, can be presented the interface pressure performance test generic script that webpage (web) changes interface, Different interface pressure performance parameters are identified using variable.
In the present embodiment, the interface a webpage (web) is provided by interface pressure performance test generic script, it can be in webpage Parameter needed for filling in interface pressure performance test on interface (interface pressure performance parameter) and parameter value, will be provided with interface pressure The interface pressure performance test generic script of power performance parameter value is stored as interface pressure performance test script, to carry out interface pressure Power performance test.
In the present embodiment, interface pressure performance parameter is indicated using variable, it can flexibly edition interface pressure test The workload for individually editing the corresponding interface pressure performance test script of each function is effectively reduced in script, promotes scripting editing 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 (process number or Thread Count) of pressure survey, pressure survey time, test One kind or any combination thereof of data etc..Wherein, a Virtual User occupies a thread or a process, and server ip is to need to carry out The Internet address of the destination server of pressure test can be one or more, and path is the path in interface requests string, such as Http: // 127.0.0.1/b/? gv=13&ch=200001, wherein/b/ is path.For example, being needed for function newly developed It will be to the version voluntarily pressure test with new function, to assess whether performance meets performance indicator, in web interface setting Test performance parameter can be with are as follows: and server ip=192.168.138.1, port numbers=80, path=/ui/, pressure survey the time= 1000, process number=70, test data=overseas data.Wherein, path is ui interface path, defaults path_name when being empty =b, pressure survey time are defaulted as the second, are defaulted as 60 seconds when being empty, when test data (data) is empty, default 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 further includes log information parameter, and log information parameter is used In in display interface pressure test result, the icon relevant parameter information of display, comprising: CPU information, memory (Memory) information, number of transactions per second etc..
In the present embodiment, after obtaining interface pressure performance test script, that is, it is completed to establish in Jenkins and is used for The task (Job) of JMeter interface pressure performance test.
In the present embodiment, as an alternative embodiment, obtained interface pressure performance test script is supported to appoint as downstream Business, is called by other tasks.For example, as a Jenkins Downstream Jobs scene: daily online version needs first to be deployed to pre- Environment is issued, it is then desired to pressure test be carried out to prerelease version, in the test performance parameter (upstream of web interface setting Task Transfer Parameters) it can be with are as follows: when server ip=192.168.138.2, port numbers=80, path to be tested=/b/, pressure are surveyed Between=600, process number=50, test data=domestic data;In another example as another Jenkins Downstream Jobs scene: being packaged Compiling brings out a new edition, and in automatically dispose and after returning, carries out pressure test, in the test performance ginseng of web interface setting Number (upstream task Transfer Parameters) can be with are as follows: server ip=192.168.138.3, port numbers=80, path=/b/, pressure are surveyed Time=600, process number=50, test data=overseas data.
Step 103, the interface pressure performance detection environment built is called to run the interface pressure performance test script.
In the present embodiment, in the interface pressure performance detection environment built, imports the interface pressure performance editted and survey Training sheet simultaneously runs the script in Jenkins, available 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 each server is collected, for example, the interface pressure performance test knot that first server and second server generate respectively Fruit, after being summarized, by interface pressure the performance test results storage to above-mentioned path.
In the present embodiment, as an alternative embodiment, this method further include:
Mounted picture is called to generate frame APMB package, from the interface for running the interface pressure performance test script acquisition Log information parameter is extracted in pressure test result, generates corresponding chart.
In the present embodiment, as an alternative embodiment, it is CMDRunner.jar file that picture, which generates frame APMB package, is passed through CMDRunner.jar file is run, can be generated according to the log information parameter in interface pressure the performance test results corresponding Picture or table.
In the present embodiment, as an alternative embodiment, the Application Programming Interface (API) for calling Jenkins to provide is notified Jenkins compiles engineering, and Jenkins compiles engineering automatic trigger JMeter plug-in unit (picture generates frame APMB package) according to above-mentioned road Diameter loading interface pressure test result.
In the present embodiment, as another alternative embodiment, after generating corresponding chart, this method further include:
Across comparison instruction or longitudinal comparison instruction are received, in the interface for being currently generated chart, adjusts the chart of generation The log information parameter of positions and dimensions, the instruction of load across comparison or longitudinal comparison command mappings, obtains the chart with adjustment Across comparison or the parallel tables longitudinally compared.
In the present embodiment, after executing JMeter pressure test task, the relevant chart of test can be showed in Jenkins And report, and relevant interface pressure the performance test results or expected interface pressure performance can be presented according to user instruction Test result, with current interface pressure the performance test results carry out across comparison, and/or, it is longitudinal to compare.
In the present embodiment, web page (interface) is presented in Jenkins, and Jenkins is by calling JMeter to carry out Pressure is surveyed, and according to the test performance parameter inputted 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, log (log) information generation chart is shown.
The interface pressure performance test methods of the present embodiment are built and are connect by starting pre-set pressure test tool Mouth pressure tests environment;Call the engine-operated interface pressure performance test edited in advance of expansible continuous integrating general Script, interface pressure performance parameter of the setting for the test of target software projects, is connect in the web interface of presentation Mouth pressure test script;The interface pressure performance detection environment built is called, the interface pressure performance test foot is run This.In this way, by building interface pressure performance detection environment in advance, the interface pressure performance test of web interface can be presented in editor Interface pressure performance parameter is arranged in generic script in web interface, realizes the automatic test to interface pressure parameter, Without manually building interface pressure performance detection environment and writing interface pressure performance test script, connect without manual construction Mouth pressure parameter directly can be carried out interface pressure performance after interface pressure performance parameter is arranged in web interface and survey Examination, effectively reduces the workload and interface pressure performance test cost of dependence test technical staff, so that interface pressure It is short that short time consumption can be tested, improve interface pressure performance test efficiency;Further, after the completion of test, phase can be automatically generated The chart of pass and report simultaneously carry out lateral and longitudinal comparison;Moreover, other job are called for Jenkins.
Fig. 2 is two interface pressure performance testing device structural schematic diagram of the embodiment of the present invention, as shown in Fig. 2, this implementation The device of example may include: to test environmental structure module 21, test script editor module 22 and test script running module 23, Wherein,
Environmental structure module 21 is tested, for starting pre-set pressure test tool, builds the survey of interface pressure performance Test ring border;
In the present embodiment, as an alternative embodiment, interface pressure performance detection environment is that JMeter tests environment, pressure Testing tool is JMeter pressure test tool.
In the present embodiment, as an alternative embodiment, test environmental structure module 21 include: 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 expansible continuous integrating Performance test generic script, interface pressure performance of the setting for the test of target software projects in the web interface of presentation Parameter obtains interface pressure performance test script;
In the present embodiment, the interface a webpage (web) is provided by interface pressure performance test generic script, it can be in webpage Parameter needed for filling in interface pressure performance test on interface (interface pressure performance parameter) and parameter value, by what is indicated 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, the test Performance parameter includes: one kind of server ip, port numbers, path, the Virtual User number of pressure survey, pressure survey time, test data etc. Or any combination thereof.
In the present embodiment, as another alternative embodiment, interface pressure performance parameter further includes log information parameter.Packet It includes: CPU information, memory information, number of transactions per second etc..
Test script running module 23 runs the interface pressure for calling the interface pressure performance detection environment built Power performance test script.
In the present embodiment, in the interface pressure performance detection environment built, imports the interface pressure performance editted and survey Training sheet simultaneously runs the script in Jenkins, available 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 each server is collected, for example, the interface pressure performance test knot that first server and second server generate respectively Fruit, after being summarized, by interface pressure the performance test results storage to above-mentioned path.
In the present embodiment, as an alternative embodiment, the device further include:
Chart generating module (not shown), for calling mounted picture to generate frame APMB package, described in operation Log information parameter is extracted in the interface pressure the performance test results that interface pressure performance test script obtains, and generates corresponding figure Table.
In the present embodiment, as an alternative embodiment, it is CMDRunner.jar file that picture, which generates frame APMB package,.
In the present embodiment, as another alternative embodiment, the device further include:
Contrast module (not shown) is being currently generated figure for receiving across comparison instruction or longitudinal comparison instruction In the interface of table, the chart positions and dimensions of generation, the instruction of load across comparison or the log of longitudinal comparison command mappings are adjusted Information parameter obtains and the chart across comparison of adjustment or the parallel tables longitudinally compared.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill Art effect is similar, and details are not described herein again.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
For Installation practice, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), 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 on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.
In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution The software or firmware that system executes are realized.For example, in another embodiment, can be used if realized with hardware Any one of following technology well known in the art or their combination are realized: being had for realizing logic function to data-signal The discrete logic of the logic gates of energy, the specific integrated circuit with 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 the electronic equipment includes dress described in aforementioned any embodiment It sets.
Fig. 3 is the structural schematic diagram of electronic equipment one embodiment of the present invention, may be implemented to implement shown in Fig. 1-2 of the present invention The process of example, as shown in figure 3, above-mentioned electronic equipment may include: shell 31, processor 32, memory 33, circuit board 34 and electricity Source circuit 35, wherein circuit board 34 is placed in the space interior that shell 31 surrounds, and processor 32 and memory 33 are arranged in circuit On plate 34;Power circuit 35, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 33 is for storing and can hold Line program code;Processor 32 is run and executable program generation by reading the executable program code stored in memory 33 The corresponding program of code, for executing interface pressure performance test methods described in aforementioned any embodiment.
Processor 32 to the specific implementation procedures of above-mentioned steps and processor 32 by operation executable program code come The step of further executing may refer to the description of Fig. 1-2 illustrated embodiment of the present invention, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist Implement to realize each unit/module function in the same or multiple software and or hardware when 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 It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention Method described in part.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (13)

1. a kind of interface pressure performance test methods characterized by comprising
Start pre-set pressure test tool, builds interface pressure performance detection environment;The pressure test tool is JMeter pressure test tool, the test environment are that JMeter tests environment;
The engine-operated interface pressure performance test generic script edited in advance of expansible continuous integrating is called, in the net of presentation Interface pressure performance parameter of the setting for the test of target software projects, obtains interface pressure performance test foot in page boundary face This;The interface pressure performance parameter utilizes marking variable;The continuous integrating engine is the JMeter pressure test tool;
The interface pressure performance detection environment built is called, the interface pressure performance test script is run.
2. interface pressure performance test methods according to claim 1, which is characterized in that the pre-set pressure of starting Power testing tool, building interface pressure performance detection environment 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, which is characterized in that the interface pressure performance parameter Including test performance parameter, the test performance parameter include: server ip, port numbers, path, pressure survey Virtual User number, Pressure surveys one kind or any combination thereof of time, test data etc..
4. interface pressure performance test methods according to claim 3, which is characterized in that the interface pressure performance parameter It further include log information parameter.
5. interface pressure performance test methods according to claim 4, which is characterized in that the method also includes:
Mounted picture is called to generate frame APMB package, from the interface pressure for running the interface pressure performance test script acquisition Log information parameter is extracted in the performance test results, generates corresponding chart.
6. interface pressure performance test methods according to claim 5, which is characterized in that generate corresponding chart described Afterwards, the method also includes:
Across comparison instruction or longitudinal comparison instruction are received, in the interface for being currently generated chart, adjusts the chart position of generation And size, the instruction of load across comparison or longitudinal log information parameter for comparing command mappings, it obtains lateral with the chart of adjustment Comparison or the parallel tables longitudinally compared.
7. a kind of interface pressure performance testing device characterized by comprising test environmental structure module, test script editor Module and test script running module, wherein
It tests environmental structure module and builds interface pressure performance detection environment for starting pre-set pressure test tool; The pressure test tool is JMeter pressure test tool, and the test environment is that JMeter tests environment;
Test script editor module, for calling the engine-operated interface pressure performance edited in advance of expansible continuous integrating to survey Generic script is tried, interface pressure performance parameter of the setting for the test of target software projects in the web interface of presentation, Obtain interface pressure performance test script;The interface pressure performance parameter utilizes marking variable;The continuous integrating engine is The JMeter pressure test tool;
Test script running module runs the interface pressure performance for calling the interface pressure performance detection environment built Test script.
8. interface pressure performance testing device according to claim 7, which is characterized in that the test environmental structure module It include: that 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, which is characterized in that the interface pressure performance parameter Including test performance parameter, the test performance parameter include: server ip, port numbers, path, pressure survey Virtual User number, Pressure surveys one kind or any combination thereof of time, test data etc..
10. interface pressure performance testing device according to claim 9, which is characterized in that the interface pressure performance ginseng Number further includes log information parameter.
11. interface pressure performance testing device according to claim 10, which is characterized in that described device further include:
Chart generating module, for calling mounted picture to generate frame APMB package, from the operation interface pressure performance test Log information parameter is extracted in the interface pressure the performance test results that script obtains, and generates corresponding chart.
12. interface pressure performance testing device according to claim 11, which is characterized in that described device further include:
Contrast module, for receiving across comparison instruction or longitudinal comparison instruction, in the interface for being currently generated chart, adjustment life At chart positions and dimensions, the log information parameter of the instruction of load across comparison or longitudinal comparison command mappings obtains and adjusts Whole chart across comparison or the parallel tables longitudinally compared.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply Circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing executable program code;Processing Device runs program corresponding with executable program code by reading the executable program code stored in memory, 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 A kind of interface pressure performance test methods, device and electronic equipment Active CN106383786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610857426.8A CN106383786B (en) 2016-09-27 2016-09-27 A kind of interface pressure performance test methods, 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 A kind of interface pressure performance test methods, device and electronic equipment

Publications (2)

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

Family

ID=57936907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610857426.8A Active CN106383786B (en) 2016-09-27 2016-09-27 A kind of interface pressure performance test methods, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106383786B (en)

Families Citing this family (16)

* 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
CN108733545A (en) * 2017-04-25 2018-11-02 北京微影时代科技有限公司 A kind of method for testing pressure and device
CN107276842B (en) * 2017-05-10 2020-10-09 北京金山安全软件有限公司 Interface test method and device and electronic 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
CN107977292A (en) * 2017-12-07 2018-05-01 北京兆易创新科技股份有限公司 The test method and device of SPI-NAND
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
CN109491894A (en) * 2018-10-25 2019-03-19 深圳壹账通智能科技有限公司 A kind of method and apparatus of interface testing
CN109542790A (en) * 2018-11-26 2019-03-29 郑州云海信息技术有限公司 A kind of automated testing method and system of pressure test
CN111078527B (en) * 2019-11-08 2021-01-26 北京深思数盾科技股份有限公司 Auxiliary system and method for pressure testing of server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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的设计与实现;李琰;《中国优秀硕士学位论文全文数据库 信息科技辑》;20151215;论文第11-13页,第34-35页

Also Published As

Publication number Publication date
CN106383786A (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN106383786B (en) A kind of interface pressure performance test methods, device and electronic equipment
CN105302710B (en) The method and apparatus that a kind of determination needs the test case of regression test
CN102708050B (en) Method and system for testing mobile application
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
CN103577658B (en) The appraisal procedure and assessment system of intelligent terminal hardware
CN105338110A (en) Remote debugging method, platform and server
CN102819766A (en) Method, device and enterprise system for checking forms
CN104978258A (en) Software automation test method and system
CN101777023B (en) Method and device for generating test cases
CN105260082A (en) Display method for test data and development terminal
CN105550252B (en) A kind of file location method, device and electronic equipment
CN102946415B (en) A kind of implementation method of mobile terminal this locality application and device
CN102779045B (en) A kind of interface creating method, interface editor and electronic equipment
CN107291623A (en) A kind of applied program testing method and device
CN103036734A (en) Logic verification method and logic verification system for network chip
CN107133174A (en) Test case code automatically generating device and method
CN110147410A (en) Data verification method, system, device and equipment in a kind of piece of chain type account book
CN103152212B (en) A kind of alarm correlation analysis method, device and network management system
CN108345531A (en) A kind of test method, apparatus and system
CN105843602A (en) Method and system for software development
CN107423176A (en) A kind of method of testing of internal memory, control terminal, server and system
CN105094773B (en) The method for reusing and system of functions of modules
CN106776277A (en) A kind of method of striding course test, device and electronic equipment
CN106302011A (en) Method of testings based on multiterminal and terminal
CN109446103A (en) A kind of CIM Provider test method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant