CN110134574A - A kind of software performance testing method, system, medium and electronic equipment - Google Patents
A kind of software performance testing method, system, medium and electronic equipment Download PDFInfo
- Publication number
- CN110134574A CN110134574A CN201910317814.0A CN201910317814A CN110134574A CN 110134574 A CN110134574 A CN 110134574A CN 201910317814 A CN201910317814 A CN 201910317814A CN 110134574 A CN110134574 A CN 110134574A
- Authority
- CN
- China
- Prior art keywords
- test
- task
- preset
- current
- software 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3419—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Present invention discloses a kind of software performance testing method, system, medium and electronic equipments.The described method includes: detecting whether to receive the task setting operation for preset software performance test script;If detecting to receive task setting operation, it is arranged to operate the task setting parameter for determining test assignment, and obtaining test assignment according to the task;The automation framework that parameter is arranged according to task and builds in advance carries out software performance test to the corresponding system of current business version, obtains current test result;Current test result and historic test results are compared, comparison result is obtained;Wherein, historic test results include at least and the testing time of current test result test result the most similar;It analyses and compares as a result, obtaining the corresponding performance issue of current business version;Test report is formed based on performance issue, and exports test report and is checked for user.Under the method, it can reduce misuse rate and improve the testing efficiency of system.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of software performance testing method, system, medium and electronics
Equipment.
Background technique
Software performance test mainly simulates a variety of normal, peak values and abnormal load conditions by testing tool come to system
Performance indexes tested.In the case where current operation version iteration speed is fast, the period is short, software performance test can
With the ability for helping us to find the performance short slab of system, assessment system in time, and targetedly performance is realized on this basis
Optimization.But software performance test usually requires tester during perform script and operates dependence test tool, manually
The collection and analysis work for completing test data, thus performance issue existing for final positioning system.As it can be seen that this manual operation
Mode can not only there is a problem of that misuse rate is high, can also there is a problem of that testing efficiency is lower.
Summary of the invention
In order to solve present in the relevant technologies by manual operation testing tool to system tested caused by accidentally grasp
Make the technical problem that rate is high and testing efficiency is low, the present invention provides a kind of software performance testing method, system, medium and electricity
Sub- equipment.
First aspect of the embodiment of the present invention discloses a kind of software performance testing method, which comprises
It detects whether to receive the task setting operation for preset software performance test script;
If detecting to receive the task setting operation, it is arranged according to the task and operates determining test assignment, and
Obtain the task setting parameter of the test assignment;
According to the task be arranged parameter and in advance the automation framework built to the corresponding system of current business version
Software performance test is carried out, current test result is obtained;
The current test result and historic test results are compared, comparison result is obtained;Wherein, the historic test results
Including at least the test result the most similar of the testing time with the current test result;
The comparison result is analyzed, the corresponding performance issue of the current business version is obtained;
Test report is formed based on the performance issue, and exports the test report and is checked for user.
As an alternative embodiment, the task setting parameter is at least in first aspect of the embodiment of the present invention
Including task execution time;
The automation framework that parameter is arranged according to the task and builds in advance carries out current business version soft
Part performance test, before obtaining current test result, the method also includes:
Judge whether the quantity of the test assignment is greater than preset quantity threshold value;
If it is greater than the preset quantity threshold value, holding for each test assignment is determined according to the task execution time
Row sequence;
The automation framework that parameter is arranged according to the task and builds in advance carries out current business version soft
Part performance test obtains current test result, comprising:
Sequence is executed according to described, is built according to the corresponding task setting parameter of each test assignment and in advance
Automation framework carries out software performance test to current business version, obtains current test result.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described according to the task execution
What the time determined each test assignment executes sequence, comprising:
Judge whether to need to be implemented other surveys in the test assignment in addition to target detection task in target time section
Trial business;Wherein, the target time section is the period where the corresponding task execution time of the target detection task, and
And the target detection task is any test assignment;
It is true according to the task execution time if not needing to execute other described test assignments in the target time section
Fixed each test assignment executes sequence.
As an alternative embodiment, other test assignments are held in first aspect of the embodiment of the present invention
Row major grade is higher than the execution priority of the target detection task.
As an alternative embodiment, in first aspect of the embodiment of the present invention, if in the target time section
Other described test assignments are needed to be implemented, the method also includes:
Determine the execution time again of the target detection task;Wherein, described to execute the time corresponding period again
All remaining test assignments in the test assignment in addition to the target detection task are not executed inside;
Determine that the execution of each test assignment is suitable according to execution time and the task execution time again
Sequence.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the determination target detection
The execution time again of task, comprising:
Obtain the task type of the target detection task;
Judge the target detection task task type whether with any preset task in preset task type set
Type matches;Wherein, the preset task type set includes at least one preset task type, the preset task type
Task corresponding to task execution duration be greater than preset duration threshold value;
If any preset task in the task type of the target detection task and the preset task type set
Type matches, and the execution time again of the target detection task is determined in preset night-time hours.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described to be based on the performance issue
Test report is formed, and is exported after the test report checks for user, the method also includes:
By test report storage into the corresponding file of the current business version.
Second aspect of the embodiment of the present invention discloses a kind of software performance test system, comprising:
Detection unit, for detecting whether receiving the task setting operation for preset software performance test script;
Acquiring unit receives the task setting operation for detecting in the detection unit, according to the task
Setting, which operates, determines test assignment, and obtains the task setting parameter of the test assignment;
Test cell, the automation framework for parameter to be arranged according to the task and builds in advance is to current business version
This progress software performance test obtains current test result;
Comparing unit is used for the current test result and historic test results, obtains comparison result;Wherein, described to go through
History test result includes at least and the testing time of current test result test result the most similar;
Analytical unit is used for the comparison result, obtains the corresponding performance issue of the current business version;
Output unit for forming test report based on the performance issue, and exports the test report and looks into for user
It sees.
The third aspect of the embodiment of the present invention discloses a kind of computer readable storage medium, stores computer program, wherein
The computer program makes computer execute a kind of software performance testing method disclosed in first aspect of the embodiment of the present invention.
Fourth aspect of the embodiment of the present invention discloses a kind of electronic equipment, and the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing
When device executes, foregoing method is realized.
The technical solution that the embodiment of the present invention provides can include the following benefits:
Software performance testing method provided by the present invention includes the following steps, detects whether to receive for preset soft
Operation is arranged in the task of part performance test script;If detecting to receive task setting operation, it is arranged according to the task and is grasped
Make to determine test assignment, and obtains the task setting parameter of test assignment;According to task be arranged parameter and in advance build from
Dynamicization frame carries out software performance test to the corresponding system of current business version, obtains current test result;Compare current survey
Test result and historic test results, obtain comparison result;Wherein, historic test results include at least the survey with current test result
Try time test result the most similar;It analyses and compares as a result, obtaining the corresponding performance issue of current business version;Based on performance
Problem forms test report, and exports test report and check for user.
Under the method, the automatic test to current business version can be realized, and analyze test result, and then shape
At test report, performance issue present in the current business release directly is shown for tester, so that related personnel is to working as
Preceding business release improves and optimizes, and reduces misuse rate caused by the manual operation in software performance test, and
Improve testing efficiency.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is a kind of schematic diagram of device shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of software performance testing method shown according to an exemplary embodiment;
Fig. 3 is the flow chart of another software performance testing method shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of software performance test system shown according to an exemplary embodiment;
Fig. 5 is the block diagram of another software performance test system shown according to an exemplary embodiment.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of schematic diagram of device shown according to an exemplary embodiment.Device 100 can be electronic equipment.
As shown in Figure 1, device 100 may include following one or more components: processing component 102, memory 104, power supply module
106, multimedia component 108, audio component 110, sensor module 114 and communication component 116.
The integrated operation of the usual control device 100 of processing component 102, such as with display, telephone call, data communication, phase
Machine operation and the associated operation of record operation etc..Processing component 102 may include one or more processors 118 to execute
Instruction, to complete all or part of the steps of following methods.In addition, processing component 102 may include one or more modules,
For convenient for the interaction between processing component 102 and other assemblies.For example, processing component 102 may include multi-media module, use
In to facilitate the interaction between multimedia component 108 and processing component 102.
Memory 104 is configured as storing various types of data to support the operation in device 100.These data are shown
Example includes the instruction of any application or method for operating on the device 100.Memory 104 can be by any kind of
Volatibility or non-volatile memory device or their combination are realized, such as static random access memory (Static Random
Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable
Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable
Programmable Read Only Memory, abbreviation EPROM), programmable read only memory (Programmable Red-
Only Memory, abbreviation PROM), read-only memory (Read-Only Memory, abbreviation ROM), magnetic memory, flash
Device, disk or CD.It is also stored with one or more modules in memory 104, is configured to for the one or more module
It is executed by the one or more processors 118, to complete all or part of step in method as follows.
Power supply module 106 provides electric power for the various assemblies of device 100.Power supply module 106 may include power management system
System, one or more power supplys and other with for device 100 generate, manage, and distribute the associated component of electric power.
Multimedia component 108 includes the screen of one output interface of offer between described device 100 and user.One
In a little embodiments, screen may include liquid crystal display (Liquid Crystal Display, abbreviation LCD) and touch panel.
If screen includes touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel
Including one or more touch sensors to sense the gesture on touch, slide, and touch panel.The touch sensor can be with
The boundary of a touch or slide action is not only sensed, but also detects duration associated with the touch or slide operation and pressure
Power.Screen can also include display of organic electroluminescence (Organic Light Emitting Display, abbreviation OLED).
Audio component 110 is configured as output and/or input audio signal.For example, audio component 110 includes a Mike
Wind (Microphone, abbreviation MIC), when device 100 is in operation mode, such as call model, logging mode and speech recognition mould
When formula, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory
104 or via communication component 116 send.In some embodiments, audio component 110 further includes a loudspeaker, for exporting
Audio signal.
Sensor module 114 includes one or more sensors, and the state for providing various aspects for device 100 is commented
Estimate.For example, sensor module 114 can detecte the state that opens/closes of device 100, the relative positioning of component, sensor group
Part 114 can be with the position change of 100 1 components of detection device 100 or device and the temperature change of device 100.Some
In embodiment, which can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 116 is configured to facilitate the communication of wired or wireless way between device 100 and other equipment.Device
100 can access the wireless network based on communication standard, such as WiFi (Wireless-Fidelity, Wireless Fidelity).Show at one
In example property embodiment, communication component 116 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 116 further includes near-field communication (Near Field
Communication, abbreviation NFC) module, for promote short range communication.For example, radio frequency identification can be based in NFC module
(Radio Frequency Identification, abbreviation RFID) technology, Infrared Data Association (Infrared Data
Association, abbreviation IrDA) technology, ultra wide band (Ultra Wideband, abbreviation UWB) technology, Bluetooth technology and other skills
Art is realized.
In the exemplary embodiment, device 100 can be by one or more application specific integrated circuit (Application
Specific Integrated Circuit, abbreviation ASIC), it is digital signal processor, digital signal processing appts, programmable
Logical device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components are realized, for executing
Following methods.
Fig. 2 is a kind of flow chart of software performance testing method shown according to an exemplary embodiment.As shown in Fig. 2,
The method includes the following steps.
Step 201, whether software performance test system detection receives appointing for preset software performance test script
Business setting operation, if detecting to receive task setting operation, triggering executes step 202;Take office if detecting not receive
Business setting operation, terminates this process.
In the embodiment of the present invention, it includes being write using programming languages such as C Plus Plus that software performance test script, which is a kind of,
The text file of program code, user (such as tester) can be write according to test purpose in the software performance test script
Program code, the function that can be also introduced into other dynamic link libraries, therefore the software performance test script has stronger flexibility
And scalability;In addition, above-mentioned preset software performance test script can be existing test foot in software performance test system
This, is also possible to rewrite recording by user, the embodiment of the present invention is without limitation.
Step 202, software performance test system, which is arranged to operate according to task, determines test assignment, and obtains the test assignment
Task be arranged parameter.
In the embodiment of the present invention, task setting parameter can include but is not limited to task execution time, execute time interval
And task execution rate etc..
Step 203, software performance test system according to task be arranged parameter and in advance the automation framework built to working as
The corresponding system of preceding business release carries out software performance test, obtains current test result.
In the embodiment of the present invention, mature Jmeter, Pylot or Mul-Mechanize frame is can be used in automation framework
The automation framework built in advance also can be used in frame, and the embodiment of the present invention is without limitation.Wherein, Jmeter frame can be real
Existing distributed testing, and cross-platform can use, such as used in windows platform or linux platform;Pylot frame can be with
It realizes extension, and may include mapping result in current test result after wxpython is installed;Further, it is also possible to same
When build a variety of frames, corresponding frame is selected according to testing requirement, to be applicable in a variety of test scenes, and then improve from
The diversity of dynamicization frame.
Step 204, software performance test system compares current test result and historic test results, obtains comparison result;
Wherein, which includes at least and the testing time of current test result test result the most similar.
In the embodiment of the present invention, historic test results, which can be, carries out software for the corresponding system of history service version
Obtained test result can be tested, wherein the business that history service version is run before current business version by system
Version.In addition, the quantity of historic test results can be several;When the quantity of historic test results is one, the history
Test result can be the test result the most similar of the testing time with current test result;When the quantity of test result is more
When a, i.e., when the quantity of test result is greater than one, which can be the testing time with current test result
Multiple historic test results of the time difference in preset time difference range, then correspondingly, comparison result also can wrap
The comparison result that current test result is compared with each historic test results is included, the embodiment of the present invention does not limit
It is fixed.
Step 205, software performance test network analysis comparison result obtains the corresponding performance issue of current business version.
In the embodiment of the present invention, the corresponding output item of system element, such as throughput, the response time, cpu load with
And memory such as uses at the performance that can carry out decision systems, therefore, above-mentioned performance issue mainly includes throughput, response time, CPU
The problem of load and memory use etc..
Step 206, software performance test system is based on performance issue and forms test report, and exports test report for user
It checks.
In the embodiment of the present invention, optionally, test report can be diagrammatic form, be also possible to textual form;It is another can
Choosing, software performance test system can also detect whether to receive user after forming test report based on performance issue
The inquiry instruction for test report of input, if receiving the inquiry instruction, output test report is checked for user;If
The inquiry instruction is not received, and at the appointed time output test report is checked for user in section;Wherein, designated time period can be
By user's sets itself, it is also possible to by system automatically generated, the embodiment of the present invention is without limitation.
As an alternative embodiment, software performance test system output test report checked for user after,
The test report can also be stored into the corresponding file of the current business release.
In the embodiment of the present invention, software performance test system is checked in output test report for user (such as tester)
Later, optionally, the current industry can be arrived using the test report as the corresponding historic test results storage of current business version
In the corresponding file of version of being engaged in;Wherein, this document folder can be with the name nominating of the current business release, the embodiment of the present invention
Without limitation.
As it can be seen that implementing software performance testing method described in Fig. 2, the automatic survey to current business version can be realized
Examination, and test result is analyzed, and then form test report, directly show that the current business release is deposited by tester
Performance issue reduced in software performance test so that related personnel improves and optimizes to current business version
Manual operation caused by misuse rate, and improve testing efficiency.
Fig. 3 is a kind of flow chart of the software performance testing method shown according to another exemplary embodiment.Such as Fig. 3 institute
Show, which may comprise steps of:
Step 301, whether software performance test system detection receives appointing for preset software performance test script
Business setting operation, if detecting to receive task setting operation, triggering executes step 302;Take office if detecting not receive
Business setting operation, terminates this process.
Step 302, software performance test system, which is arranged to operate according to task, determines test assignment, and obtains test assignment
Parameter is arranged in task;Wherein, task setting parameter at least may include task execution time.
Step 303, software performance test system judges whether the quantity of test assignment is greater than preset quantity threshold value, if greatly
In preset quantity threshold value, triggering executes step 304;If being not more than preset quantity threshold value, terminate this process.
In the embodiment of the present invention, optionally, preset quantity threshold value can be 1 or N;For example, when preset quantity threshold
When value is 1, if the quantity of test assignment is not more than preset quantity threshold value, i.e. the quantity of test assignment is 1, then software at this time
Performance Test System can directly according to the task of the test assignment be arranged parameter and in advance the automation framework that build to working as
The corresponding system of preceding business release carries out software performance test, obtains current test result;Wherein, N is the positive integer greater than 1.
Step 304, software performance test system executes sequence according to what task execution time determined each test assignment.
As an alternative embodiment, software performance test system determines that each test is appointed according to task execution time
Business executes sequence, may include:
Judge whether to need to be implemented other tests in test assignment in addition to target detection task in target time section to appoint
Business;Wherein, target time section is the period where the corresponding task execution time of target detection task, and target detection is appointed
Business is any test assignment;
If not needing to execute other test assignments in target time section, determine that each test is appointed according to task execution time
Business executes sequence.
It is further alternative, when the execution that the execution priority of other above-mentioned test assignments is higher than target detection task is preferential
Grade when, if being also required to execute other test assignments in target time section, software performance test system can also be performed with
Lower operation:
Determine the execution time again of target detection task;Wherein, this is executed again does not hold in the time corresponding period
All remaining test assignments in row test assignment in addition to target detection task;
Sequence is executed according to execute that time and task execution time determine each test assignment again.
In the embodiment of the present invention, if needing to be implemented other test assignments in target time section, illustrate target detection task
There are overlapping on task execution time with other test assignments;Optionally, judging to need to be implemented it in target time section
When his test assignment, prompt information can be exported and checked for user;Wherein, which can be used for that user is prompted currently to deposit
In at least two test assignments of task execution time-interleaving, and the prompt information can also include that there is currently task executions
The task detail information of at least two test assignments of time-interleaving;It is further alternative after exporting prompt information, may be used also
To detect whether to receive the reset information of user's input, if the time reset indication of user's input is received, when according to this
Between reset indication to the task execution time of above-mentioned target detection task and the task execution time of other above-mentioned test assignments
It is reset, so that the task execution time of above-mentioned target detection task and other test assignments after resetting after resetting
Task execution time is not within the same period, that is, after the task execution time of the above-mentioned target detection task after resetting and resetting
Other test assignments task execution time not time of origin be overlapped;Further optionally, after can also be according to resetting
The task execution time of other test assignments after the task execution time of above-mentioned target detection task, resetting and above-mentioned task
Execute that the time determines each test assignment executes sequence.As it can be seen that the embodiment of the present invention, can be improved oneself of software performance test
Dynamicization degree.
As an alternative embodiment, the execution priority when other above-mentioned test assignments is appointed not higher than target detection
When the execution priority of business, if being also required to execute other test assignments in target time section, software performance test system
It can also determine the alternative execution time of other test assignments;Wherein, this is alternatively executed does not execute in the time corresponding period
All remaining test assignments in all test assignments in addition to other test assignments;It is held according to alternative execution time and task
What the row time determined each test assignment executes sequence.
In the embodiment of the present invention, optionally, software performance test system determines the execution time again of target detection task,
May include:
Obtain the task type of target detection task;
Judge target detection task task type whether with any preset task type in preset task type set
Match;Wherein, preset task type set includes at least one preset task type, corresponding to the task of preset task type
Task execution duration be greater than preset duration threshold value;
If the task type of target detection task and any preset task type phase in preset task type set
Match, the execution time again of target detection task is determined in preset night-time hours.
In the embodiment of the present invention, for example, if the task type of target detection task is the survey of stability software performance
Examination, has the characteristic that time-consuming, the task execution of stability software performance test task based on stability software performance test
Time is preferably at night-time hours (such as 0. -3 point at night);Therefore, software performance test system is judging target detection times
It, can be at preset night when the task type of business and any preset task type in preset task type set match
The execution time again for determining target detection task in section, it can be improved software performance test efficiency in this way, avoid target detection
Task occupies excessive machine resources (such as cpu resource, hard disk resources etc.) when executing daytime, and then improves the utilization of resources
Rate.
Step 305, software performance test system is according to execution sequence, according to the corresponding task setting ginseng of each test assignment
Number and the automation framework built in advance carry out software performance test to current business version, obtain current test result.
Wherein, which further includes step 306~308, for the description of step 306~308, please be joined
According to the detailed description for being directed to step 204~206 in above-described embodiment one, the embodiment of the present invention is repeated no more.
As it can be seen that software performance testing method described in implementing Fig. 3, can be realized the automatic survey to current business version
Examination, and test result is analyzed, and then form test report, directly show that the current business release is deposited by tester
Performance issue reduced in software performance test so that related personnel improves and optimizes to current business version
Manual operation caused by misuse rate, and improve testing efficiency;Furthermore it is possible to which target detection task is avoided to hold on daytime
Excessive machine resources are occupied when row, and then are improved resource utilization.
It is the device of the invention embodiment below.
Fig. 4 is a kind of block diagram of software performance test system shown according to an exemplary embodiment.As shown in figure 4, should
System includes:
Detection unit 401, for detecting whether receiving the task setting behaviour for preset software performance test script
Make, and will test result and be supplied to acquiring unit 402.
In the embodiment of the present invention, it includes being write using programming languages such as C Plus Plus that software performance test script, which is a kind of,
The text file of program code, user (such as tester) can be write according to test purpose in the software performance test script
Program code, the function that can be also introduced into other dynamic link libraries, therefore the software performance test script has stronger flexibility
And scalability;In addition, above-mentioned preset software performance test script can be existing test foot in software performance test system
This, is also possible to rewrite recording by user, the embodiment of the present invention is without limitation.
Acquiring unit 402 receives task setting operation for detecting in above-mentioned detection unit 401, is set according to task
It sets operation and determines test assignment, and obtain the task setting parameter of test assignment, and task setting parameter is supplied to test
Unit 403.
Test cell 403, the automation framework for parameter to be arranged according to task and builds in advance is to current business version
This progress software performance test obtains current test result, and current test result is supplied to comparing unit 404.
In the embodiment of the present invention, mature Jmeter, Pylot or Mul-Mechanize frame is can be used in automation framework
The automation framework built in advance also can be used in frame, and the embodiment of the present invention is without limitation.Wherein, Jmeter frame can be real
Existing distributed testing, and cross-platform can use, such as used in windows platform or linux platform;Pylot frame can be with
It realizes extension, and may include mapping result in current test result after wxpython is installed;Further, it is also possible to same
When build a variety of frames, corresponding frame is selected according to testing requirement, to be applicable in a variety of test scenes, and then improve from
The diversity of dynamicization frame.
Comparing unit 404 is used for current test result and historic test results, obtains comparison result, and by comparison result
It is supplied to analytical unit 405;Wherein, which includes at least the most close with the testing time of current test result
Test result.
In the embodiment of the present invention, historic test results, which can be, carries out software for the corresponding system of history service version
Obtained test result can be tested, wherein the business that history service version is run before current business version by system
Version.In addition, the quantity of historic test results can be several;When the quantity of historic test results is one, the history
Test result can be the test result the most similar of the testing time with current test result;When the quantity of test result is more
When a, i.e., when the quantity of test result is greater than one, which can be the testing time with current test result
Multiple historic test results of the time difference in preset time difference range, then correspondingly, comparison result also can wrap
The comparison result that current test result is compared with each historic test results is included, the embodiment of the present invention does not limit
It is fixed.
Analytical unit 405 is used for comparison result, obtains the corresponding performance issue of current business version, and the performance is asked
Topic is supplied to output unit 406.
Output unit 406 for forming test report based on performance issue, and exports test report and checks for user.
In the embodiment of the present invention, optionally, test report can be diagrammatic form, be also possible to textual form;It is another can
Choosing, output unit 406 can also detect whether to receive user's input after forming test report based on performance issue
For the inquiry instruction of test report, if receiving the inquiry instruction, output test report is checked for user;If do not received
To the inquiry instruction, at the appointed time output test report is checked for user in section;Wherein, designated time period can be by user
Sets itself, it is also possible to by system automatically generated, the embodiment of the present invention is without limitation.
As it can be seen that implementing system described in Fig. 4, the automatic test to current business version can be realized, and tie to test
Fruit is analyzed, and then forms test report, directly shows performance issue present in the current business release for tester,
So that related personnel improves and optimizes to current business version, reduces the manual operation in software performance test and cause
Misuse rate, and improve testing efficiency.
Referring to Fig. 5, the block diagram of Fig. 5 another software performance test system shown according to an exemplary embodiment,
In, system shown in fig. 5 is that system further progress as shown in Figure 4 optimizes.Compared with system shown in Fig. 4,
System shown in fig. 5 further include:
Judging unit 407 for judging whether the quantity of test assignment is greater than preset quantity threshold value, and judging result is mentioned
Supply determination unit 408.
Wherein, above-mentioned acquiring unit 402 can be after determining test assignment according to task setting operation, triggering judgement
Unit 407 starts, and executes the operation whether above-mentioned quantity for judging test assignment is greater than preset quantity threshold value.
Determination unit 408, for judging that the quantity of test assignment is greater than preset quantity threshold value in above-mentioned judging unit 407
When, the sequence that executes of each test assignment is determined according to task execution time, and the execution is sequentially presented to test cell
403。
Wherein, above-mentioned task setting parameter at least may include task execution time.
The automation framework that above-mentioned test cell 403 is built according to task setting parameter and in advance is to current business version
Software performance test is carried out, the mode for obtaining current test result is specifically as follows:
According to execution sequence, the automation frame that parameter is set and is built in advance according to each test assignment corresponding task
Frame carries out software performance test to current business version, obtains current test result.
As an alternative embodiment, as shown in figure 5, above-mentioned determination unit 408 may include:
Judgment sub-unit 4081, for judging whether to need to be implemented in target time section in test assignment except target detection is appointed
Other test assignments other than business, and judging result is supplied to determining subelement 4082;Wherein, which is target
Period where the corresponding task execution time of test assignment, and target detection task is any test assignment;
Subelement 4082 is determined, for judging not needing to execute it in target time section in above-mentioned judgment sub-unit 4081
When his test assignment, sequence is executed according to what task execution time determined each test assignment.
As another optional embodiment, as shown in figure 5, the execution priority of other test assignments can be higher than mesh
Mark the execution priority of test assignment;It is further alternative, in above-mentioned determination unit 408:
Above-mentioned determining subelement 4082 is also used to judge to need to hold in target time section in above-mentioned judgment sub-unit 4081
When other test assignments of row, the execution time again of target detection task is determined, and hold according to execution time and task again
What the row time determined each test assignment executes sequence;Wherein, it is executed in the time corresponding period again and does not execute test times
All remaining test assignments in business in addition to target detection task.
In the embodiment of the present invention, optionally, determine that subelement 4082 determines the execution time again of target detection task
Mode is specifically as follows:
Obtain the task type of target detection task;
Judge target detection task task type whether with any preset task type in preset task type set
Match;Wherein, preset task type set includes at least one preset task type, corresponding to the task of preset task type
Task execution duration be greater than preset duration threshold value;
If the task type of target detection task and any preset task type phase in preset task type set
Match, the execution time again of target detection task is determined in preset night-time hours.
In the embodiment of the present invention, for example, if the task type of target detection task is the survey of stability software performance
Examination, has the characteristic that time-consuming, the task execution of stability software performance test task based on stability software performance test
Time is preferably at night-time hours (such as 0. -3 point at night);Accordingly, it is determined that subelement 4082 is judging target detection task
Task type and preset task type set in any preset task type when matching, can be in preset night-time hours
It the execution time again of middle determining target detection task, can be improved software performance test efficiency in this way, target detection avoided to appoint
Business occupies excessive machine resources (such as cpu resource, hard disk resources etc.) when executing daytime, and then improves resource utilization.
As another optional embodiment, as shown in figure 5, above system can also include:
Storage unit 409 forms test report for being based on performance issue in above-mentioned output unit 406, and exports test
After report is checked for user, by test report storage into the corresponding file of current business version.
Wherein, after the above-mentioned output of output unit 406 test report is checked for user, storage unit 409 can also be triggered
Starting, and execute it is above-mentioned by test report storage into the corresponding file of current business version.
As it can be seen that implementing system described in Fig. 5, the automatic test to current business version can be realized, and tie to test
Fruit is analyzed, and then forms test report, directly shows performance issue present in the current business release for tester,
So that related personnel improves and optimizes to current business version, reduces the manual operation in software performance test and cause
Misuse rate, and improve testing efficiency;Furthermore it is possible to which target detection task is avoided to occupy excessively when executing daytime
Machine resources, and then improve resource utilization.
The present invention also provides a kind of electronic equipment, which includes:
Processor;
Memory is stored with computer-readable instruction on the memory, when which is executed by processor,
Realize software performance testing method as previously shown.
In one exemplary embodiment, the present invention also provides a kind of computer readable storage mediums, are stored thereon with calculating
Machine program when the computer program is executed by processor, realizes software performance testing method as previously shown.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.
Claims (10)
1. a kind of software performance testing method, which is characterized in that the described method includes:
It detects whether to receive the task setting operation for preset software performance test script;
If detecting to receive the task setting operation, it is arranged according to the task and operates determining test assignment, and obtained
Parameter is arranged in the task of the test assignment;
The automation framework that parameter is arranged according to the task and builds in advance carries out the corresponding system of current business version
Software performance test obtains current test result;
The current test result and historic test results are compared, comparison result is obtained;Wherein, the historic test results are at least
Including the test result the most similar of the testing time with the current test result;
The comparison result is analyzed, the corresponding performance issue of the current business version is obtained;
Test report is formed based on the performance issue, and exports the test report and is checked for user.
2. the method according to claim 1, wherein when task setting parameter includes at least task execution
Between;
The automation framework that parameter is arranged according to the task and builds in advance carries out software to current business version
It can test, before obtaining current test result, the method also includes:
Judge whether the quantity of the test assignment is greater than preset quantity threshold value;
If it is greater than the preset quantity threshold value, determine that the execution of each test assignment is suitable according to the task execution time
Sequence;
The automation framework that parameter is arranged according to the task and builds in advance carries out software to current business version
It can test, obtain current test result, comprising:
Sequence is executed according to described, is built according to the corresponding task setting parameter of each test assignment and in advance automatic
Change frame and software performance test is carried out to current business version, obtains current test result.
3. according to the method described in claim 2, it is characterized in that, described determining each described according to the task execution time
Test assignment executes sequence, comprising:
Judge whether to need to be implemented other tests in the test assignment in addition to target detection task in target time section to appoint
Business;Wherein, period of the target time section where the corresponding task execution time of the target detection task, and institute
Stating target detection task is any test assignment;
If not needing to execute other described test assignments in the target time section, determined according to the task execution time every
A test assignment executes sequence.
4. according to the method described in claim 3, it is characterized in that, the execution priority of other test assignments is higher than described
The execution priority of target detection task.
5. according to the method described in claim 4, it is characterized in that, if needed to be implemented in the target time section it is described other
Test assignment, the method also includes:
Determine the execution time again of the target detection task;Wherein, described to be executed in the time corresponding period again not
Execute all remaining test assignments in the test assignment in addition to the target detection task;
According to it is described execute that time and the task execution time determine each test assignment again execute sequence.
6. according to the method described in claim 5, it is characterized in that, when the execution again of the determination target detection task
Between, comprising:
Obtain the task type of the target detection task;
Judge the target detection task task type whether with any preset task type in preset task type set
Match;Wherein, the preset task type set includes at least one preset task type, and the preset task type is appointed
The corresponding task execution duration of business is greater than preset duration threshold value;
If any preset task type in the task type of the target detection task and the preset task type set
Match, the execution time again of the target detection task is determined in preset night-time hours.
7. described in any item methods according to claim 1~6, which is characterized in that described formed based on the performance issue is surveyed
Examination report, and export after the test report checks for user, the method also includes:
By test report storage into the corresponding file of the current business version.
8. a kind of software performance test system, which is characterized in that the system comprises:
Detection unit, for detecting whether receiving the task setting operation for preset software performance test script;
Acquiring unit receives the task setting operation for detecting in the detection unit, is arranged according to the task
It operates and determines test assignment, and obtain the task setting parameter of the test assignment;
Test cell, the automation framework for parameter to be arranged according to the task and builds in advance is to current business version pair
The system answered carries out software performance test, obtains current test result;
Comparing unit is used for the current test result and historic test results, obtains comparison result;Wherein, the history is surveyed
Test result includes at least and the testing time of current test result test result the most similar;
Analytical unit is used for the comparison result, obtains the corresponding performance issue of the current business version;
Output unit for forming test report based on the performance issue, and exports the test report and checks for user.
9. a kind of computer readable storage medium, which is characterized in that it stores computer program, and the computer program makes to succeed in one's scheme
Calculation machine perform claim requires 1~7 described in any item software performance testing methods.
10. a kind of electronic equipment, including memory and processor, the memory are stored with computer program, which is characterized in that
The step of processor realizes method according to any one of claims 1 to 7 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910317814.0A CN110134574A (en) | 2019-04-19 | 2019-04-19 | A kind of software performance testing method, system, medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910317814.0A CN110134574A (en) | 2019-04-19 | 2019-04-19 | A kind of software performance testing method, system, medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110134574A true CN110134574A (en) | 2019-08-16 |
Family
ID=67570522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910317814.0A Pending CN110134574A (en) | 2019-04-19 | 2019-04-19 | A kind of software performance testing method, system, medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134574A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569287A (en) * | 2019-09-11 | 2019-12-13 | 上海移远通信技术股份有限公司 | control method and system for product sampling test, electronic equipment and storage medium |
CN111310160A (en) * | 2020-01-19 | 2020-06-19 | 深圳忆联信息系统有限公司 | WINDOWS automatic login deployment method, device, computer equipment and storage medium |
CN111324650A (en) * | 2020-02-16 | 2020-06-23 | 广州信安数据有限公司 | Task processing efficiency real-time evaluation early warning method, computer readable storage medium and enterprise data management system |
CN111930633A (en) * | 2020-08-19 | 2020-11-13 | 北京海益同展信息科技有限公司 | Data testing method, platform, electronic device and storage medium |
CN111984527A (en) * | 2020-07-10 | 2020-11-24 | 招联消费金融有限公司 | Software performance testing method, device, equipment and medium |
CN113238934A (en) * | 2021-04-30 | 2021-08-10 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Method for automatically judging data acquisition result of test system |
CN113282471A (en) * | 2021-05-17 | 2021-08-20 | 多点(深圳)数字科技有限公司 | Equipment performance testing method and device and terminal equipment |
CN113377679A (en) * | 2021-07-13 | 2021-09-10 | 北京乐学帮网络技术有限公司 | Code determination method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201856A (en) * | 2015-05-04 | 2016-12-07 | 阿里巴巴集团控股有限公司 | A kind of multi version performance test methods and device |
CN106484605A (en) * | 2015-08-28 | 2017-03-08 | 中兴通讯股份有限公司 | A kind of method and system realizing software automated testing |
CN106815141A (en) * | 2015-12-02 | 2017-06-09 | 北京奇虎科技有限公司 | A kind of method for testing software and device |
CN108763093A (en) * | 2018-06-01 | 2018-11-06 | 政采云有限公司 | A kind of automated testing method and system |
CN109388535A (en) * | 2018-10-09 | 2019-02-26 | 郑州云海信息技术有限公司 | A kind of storing performance testing method, device and application server |
-
2019
- 2019-04-19 CN CN201910317814.0A patent/CN110134574A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201856A (en) * | 2015-05-04 | 2016-12-07 | 阿里巴巴集团控股有限公司 | A kind of multi version performance test methods and device |
CN106484605A (en) * | 2015-08-28 | 2017-03-08 | 中兴通讯股份有限公司 | A kind of method and system realizing software automated testing |
WO2017036068A1 (en) * | 2015-08-28 | 2017-03-09 | 中兴通讯股份有限公司 | Method and system for realizing software automatic test |
CN106815141A (en) * | 2015-12-02 | 2017-06-09 | 北京奇虎科技有限公司 | A kind of method for testing software and device |
CN108763093A (en) * | 2018-06-01 | 2018-11-06 | 政采云有限公司 | A kind of automated testing method and system |
CN109388535A (en) * | 2018-10-09 | 2019-02-26 | 郑州云海信息技术有限公司 | A kind of storing performance testing method, device and application server |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569287A (en) * | 2019-09-11 | 2019-12-13 | 上海移远通信技术股份有限公司 | control method and system for product sampling test, electronic equipment and storage medium |
CN111310160A (en) * | 2020-01-19 | 2020-06-19 | 深圳忆联信息系统有限公司 | WINDOWS automatic login deployment method, device, computer equipment and storage medium |
CN111324650A (en) * | 2020-02-16 | 2020-06-23 | 广州信安数据有限公司 | Task processing efficiency real-time evaluation early warning method, computer readable storage medium and enterprise data management system |
CN111984527A (en) * | 2020-07-10 | 2020-11-24 | 招联消费金融有限公司 | Software performance testing method, device, equipment and medium |
CN111930633A (en) * | 2020-08-19 | 2020-11-13 | 北京海益同展信息科技有限公司 | Data testing method, platform, electronic device and storage medium |
CN113238934A (en) * | 2021-04-30 | 2021-08-10 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Method for automatically judging data acquisition result of test system |
CN113238934B (en) * | 2021-04-30 | 2024-04-05 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Method for automatically judging data acquisition result of test system |
CN113282471A (en) * | 2021-05-17 | 2021-08-20 | 多点(深圳)数字科技有限公司 | Equipment performance testing method and device and terminal equipment |
CN113377679A (en) * | 2021-07-13 | 2021-09-10 | 北京乐学帮网络技术有限公司 | Code determination method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110134574A (en) | A kind of software performance testing method, system, medium and electronic equipment | |
CN105446868B (en) | System compatibility test method, testing case management and relevant apparatus | |
CN105680960B (en) | A kind of Bluetooth card reader automated testing method, test host computer and test system | |
CN112596972A (en) | Vehicle-mounted equipment testing method, device and system and computer equipment | |
CN101593146B (en) | Method and device for automatically testing page | |
CN109726100A (en) | Application performance test method, apparatus, equipment and computer readable storage medium | |
CN111026640B (en) | Vehicle-mounted equipment testing method, system, mobile terminal and storage medium | |
CN103019942B (en) | Method and system for automatically testing applications to be tested based on android system | |
CN104598380A (en) | Method and system for automatic testing based on control | |
CN104424089A (en) | Terminal testing method and device | |
CN107861876A (en) | Method of testing, device, computer equipment and readable storage medium storing program for executing | |
CN108491321A (en) | test case range determining method, device and storage medium | |
CN113672441B (en) | Method and device for testing intelligent equipment | |
CN104794057A (en) | Automatic testing method and device for crossed event | |
CN106021118B (en) | Test code generating method and device, test frame code execution method and device | |
CN113422794A (en) | Traffic recording and playback processing method and device and electronic equipment | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN102340429B (en) | Automatic Internet protocol recovery detection method | |
CN110134593A (en) | Method for testing software, device, electronic equipment and storage medium | |
CN105187608A (en) | Method and device obtaining power consumption of application program in mobile terminal | |
CN113254331A (en) | Model test method, device, storage medium and program product | |
CN112835808A (en) | Interface testing method and device, computer equipment and storage medium | |
CN110334008B (en) | Data automation processing method and device, electronic equipment and storage medium | |
CN106708728B (en) | The method and system of automatic test Android application starting time | |
CN104581808B (en) | Test the method, device and mobile terminal of mobile network property |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary) Applicant after: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd. Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190816 |
|
WD01 | Invention patent application deemed withdrawn after publication |