CN109726100A - Application performance test method, apparatus, equipment and computer readable storage medium - Google Patents
Application performance test method, apparatus, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109726100A CN109726100A CN201810359397.1A CN201810359397A CN109726100A CN 109726100 A CN109726100 A CN 109726100A CN 201810359397 A CN201810359397 A CN 201810359397A CN 109726100 A CN109726100 A CN 109726100A
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- performance
- application
- performance data
- 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
- 238000000034 method Methods 0.000 title claims abstract description 77
- 238000011056 performance test Methods 0.000 title claims abstract description 67
- 238000012360 testing method Methods 0.000 claims abstract description 326
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 31
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000006399 behavior Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000010835 comparative analysis Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012956 testing procedure Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of application performance test method, this method comprises: when receiving test request, automatized script is obtained according to the script storage address for including in the test request, and the automatized script is compiled as by terminal test instruction by default automation framework;Terminal test instruction is sent to test terminal, test operation is executed to target application so that the test terminal is instructed according to the terminal test;It opens test thread to be monitored the system resource of the test terminal, obtains the test performance data when test terminal executes test operation in real time.The present invention also provides a kind of application performance test device, equipment and computer readable storage mediums.The manual operation process of the test process of destination application can be executed automatically by test script in the present invention, and the various performance indicators of intelligent terminal in whole process can be obtained automatically, save manual operation in test process, reduce human cost, while improving the efficiency of test.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of application performance test method, apparatus, equipment and computer
Readable storage medium storing program for executing.
Background technique
With the continuous development of intelligent terminal technology, application APP value volume and range of product currently on the market is increased rapidly,
The stability requirement of APP is also continuously improved in user.And APP performance indicator be influence its stability an important factor for and shadow
The key factor of intelligent terminal normal use is rung, therefore particularly important for the performance test of APP.
APP self performance is tested at present, is to carry out APP test using carry-on tune GT tool etc. mostly, obtains APP
Performance indicator data.But in the test process, need manually to execute the operations such as click, sliding, the input of APP in test terminal,
To enter APP various logic and the page, to obtain the performance indicator in APP operational process, this manual testing's mode is improved
Human cost, also reduce the efficiency of test.
Summary of the invention
The main purpose of the present invention is to provide a kind of application performance test method, apparatus, equipment and readable storage medium storing program for executing,
Aim to solve the problem that the technical issues of application performance test process needs artificial real-time operation.
To achieve the above object, the present invention provides a kind of application performance test method, the application performance test method packet
Include following steps:
When receiving test request, automation foot is obtained according to the script storage address for including in the test request
This, and the automatized script is compiled as by terminal test instruction by default automation framework;
Terminal test instruction is sent to test terminal, so that the test terminal is instructed according to the terminal test
Test operation is executed to target application;
It opens test thread to be monitored the system resource of the test terminal, obtains the test terminal in real time and execute
Test performance data when test operation.
Optionally, the described the step of automatized script is compiled as by terminal test instruction by default automation framework
Include:
Corresponding syntax rule is determined according to the language form of the automatized script, according to and according to the syntax rule
Obtain the operation meaning of the automatized script;
Corresponding terminal control information is searched according to the operation meaning, and according to the operation meaning and the terminal control
Part information generates control operation logic;
The control operation logic is encapsulated as corresponding terminal test instruction.
Optionally, the test thread of opening is monitored the system resource of the test terminal, in real time described in acquisition
Test terminal execute test operation when test performance data the step of after, further includes:
By the test performance data and preset standard data comparison, judge whether the performance data is abnormal;
If the test performance data exception, exports corresponding warning prompt.
Optionally, the test thread of opening is monitored the system resource of the test terminal, in real time described in acquisition
Test terminal execute test operation when test performance data the step of after, further includes:
Test scene is determined according to the environment configurations for including in the automatized script, and inquires database, obtains target
Version applies the target capabilities data under the test scene;
It is described by the test performance data and preset standard data comparison, judge whether the test performance data abnormal
The step of include:
By the test performance data and the target capabilities data comparison, judge whether the test performance data are different
Often.
Optionally, the test thread of opening is monitored the system resource of the test terminal, in real time described in acquisition
Test terminal execute test operation when test performance data the step of after, further includes:
The test performance data are stored into corresponding database table according to the version number of the target application.
Optionally, the test thread of opening is monitored the system resource of the test terminal, in real time described in acquisition
Test terminal execute test operation when test performance data the step of after, further includes:
Corresponding report template is obtained according to the test request, and the test performance data are filled to the report
Template obtains test performance report.
Optionally, described that corresponding report template is obtained according to the test request, and the test performance data are filled out
After the step of being charged to the report template, obtaining test performance report, further includes:
It is true according to the automatized script when receiving the historical comparison instruction based on the test performance report triggering
Determine test scene, and inquire database, obtains old version and apply the History Performance Data under the test scene;
Default template graph is obtained, and chart attribute is set according to the test performance data and History Performance Data, is obtained
Obtain performance comparison chart.
In addition, to achieve the above object, the present invention also provides a kind of application performance test device, the application performance tests
Device includes:
Compiling of instruction module, for being stored according to the script for including in the test request when receiving test request
Address obtains automatized script, and the automatized script is compiled as terminal test instruction by default automation framework;
Instruction sending module, for terminal test instruction to be sent to test terminal, for the test terminal root
Test operation is executed to target application according to terminal test instruction;
Terminal monitoring module is monitored the system resource of the test terminal for opening test thread, obtains in real time
Test performance data when the test terminal being taken to execute test operation.
In addition, to achieve the above object, the present invention also provides a kind of application performance test equipment, the application performance tests
Equipment includes processor, memory and is stored on the memory and can be surveyed by the application performance that the processor executes
Program is tried, wherein realizing such as above-mentioned application performance test side when the application performance test program is executed by the processor
The step of method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Application performance test program is stored on storage medium, wherein realizing when the application performance test program is executed by processor
Such as the step of above-mentioned application performance test method.
The present invention according to the script storage address for including in the test request by obtaining when receiving test request
Automatized script, and the automatized script is compiled as by terminal test instruction by default automation framework;By the terminal
Test instruction is sent to test terminal, so that the test terminal executes test to target application according to terminal test instruction
Operation;It opens test thread to be monitored the system resource of the test terminal, obtains the test terminal in real time and execute survey
Test performance data when examination operation.In the above manner, can be by the artificial of the test process of destination application in the present invention
Operating process is executed automatically by test script, and can obtain the various performance indicators of intelligent terminal in whole process automatically, is saved
Fall manual operation in test process, reduce the human cost of test, while improving the efficiency of test.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of application performance test equipment involved in the embodiment of the present invention;
Fig. 2 is the flow diagram of application performance test method first embodiment of the present invention;
Fig. 3 is the flow diagram of application performance test method second embodiment of the present invention;
Fig. 4 is the flow diagram of application performance test method 3rd embodiment of the present invention;
Fig. 5 is the functional block diagram of application performance test device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to application performance test method be mainly used in application performance test equipment, the application
Energy test equipment, which can be personal computer (personal computer, PC), portable computer, mobile terminal etc., has number
According to the equipment of processing function.
Referring to Fig.1, Fig. 1 is the hardware configuration signal of application performance test equipment involved in the embodiment of the present invention
Figure.In the embodiment of the present invention, application performance test equipment may include (such as the central processing unit Central of processor 1001
Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein,
Communication bus 1002 is for realizing the connection communication between these components;User interface 1003 may include display screen
(Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as Wireless Fidelity WIreless-FIdelity, WI-FI interface);Memory 1005 can be high speed and deposit at random
Access to memory (random access memory, RAM) memory, is also possible to stable memory (non-volatile
Memory), such as magnetic disk storage, memory 1005 optionally can also be the storage dress independently of aforementioned processor 1001
It sets.It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 and not constituting a limitation of the invention, may include
Than illustrating more or fewer components, certain components or different component layouts are perhaps combined.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system
System, network communication module and application performance test program.In Fig. 1, network communication module is mainly used for connecting test terminal,
Data communication is carried out with test terminal;And processor 1001 can call the application performance test journey stored in memory 1005
Sequence, and execute application performance test method provided in an embodiment of the present invention.
The embodiment of the invention provides a kind of application performance test methods.
It is the flow diagram of application performance test method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the application performance test method the following steps are included:
Step S10 is obtained from when receiving test request according to the script storage address for including in the test request
Dynamicization script, and the automatized script is compiled as by terminal test instruction by default automation framework;
APP self performance is tested at present, is to carry out APP test using carry-on tune GT tool etc. mostly, obtains APP
Performance indicator data.But in the test process, need manually to execute the operations such as click, sliding, the input of APP in test terminal,
To enter APP various logic and the page, to obtain the performance indicator in APP operational process, this manual testing's mode is improved
Human cost, also reduces the efficiency of test.The present embodiment for these reasons, provides a kind of application performance test method,
All operating processes of target APP can be executed with automatized script, the test terminal obtained in whole process at the same time is each
Kind performance indicator, so as to save the manual operation during performance test and the process of data processing.
Application performance test method in the present embodiment is realized that the test terminal can be by application performance test equipment
The equipment such as PC, notebook are illustrated in the present embodiment by taking the end PC as an example;By target application APP to be tested in the present embodiment
It is mounted in smart phone, which is connect by way of wired (or wireless) with the end PC.In addition, also pacifying in advance in PC
Equipped with automation framework Appium Server, to send test instruction to mobile phone by the Appium Server.
When a test is begun, tester can operate on the end PC, trigger corresponding test request, wherein the test
(the script storage address can be tester and is manually entered script storage address in request including automatic test script
, the test script in the storage folder of the end PC can also be dragged to test window with tester, the end PC is grasped according to the dragging
The address for making identification storage folder, to obtain script storage address).The end PC is when receiving the test request, it will root
Automatic test script is obtained according to the script storage address for including in the test request.Wherein, it is wrapped in the automatic test script
Include the contents such as application name, beta version, test operating procedure, the corresponding target pages element of test operation of target application;
The automatic test script, which can be, to be edited in advance by tester and is stored in the end PC.For the automatic test foot
This, due to being edited in advance by tester, the language of writing of the automatic script is not necessarily tested mobile phone and is
Unite language, therefore can not directly be tested mobile phone and be identified and executed, thus will by automation framework Appium Server into
Row compiling is converted into the terminal test instruction that tested mobile phone can identify.Specifically, PC first needs the language according to automatized script
Speech type determines corresponding syntax rule, and the operation meaning of the automatized script is obtained according to the syntax rule;Wherein
The operation meaning can be and determined according to operation keyword (or function name), such as clicking operation click, press, it is sliding
Dynamic operation swipe etc.;And after operating keyword, it can also include operation object, that is, operate targeted page elements,
Which element of the page such as clicked;After determining operation meaning, corresponding terminal control will be searched according to the operation meaning
Part information (or service entry), and control operation logic is generated according to the operation meaning and terminal control information, such as click behaviour
It can be according to the keyboard service item keyboard server of mobile phone realization, therefore produce relevant keyboard service item
Calling logic, and enter to join according to operation meaning mapping is corresponding, to obtain the mobile phone control operation logic of clicking operation;Then
These control operation logics can be ranked up according to testing procedure and be packaged encapsulation by PC, obtain corresponding terminal test instruction.
It is worth noting that Appium automation framework itself supports multilingual, so tester can be according to reality
What the language such as the selection of border situation Java, Python, Ruby, PHP, C#, JavaScript were write;Meanwhile for automatic test
Script, since it is to be had no directly by the series of instructions that PC is identified and is compiled with target APP and the function execution for testing terminal
Connection, therefore the structure of automatized script can be defined according to the actual situation.
Terminal test instruction is sent to test terminal, so that the test terminal is according to the terminal by step S20
Test instruction executes test operation to target application;
In the present embodiment, when obtaining terminal test instruction, which can be instructed and be sent to test terminal phone by PC,
Mobile phone will instruct the test and identify when receiving test instruction, determine that the test instructs corresponding target APP, and
Start target APP;When starting target APP, relevant service entry will be called to execute relevant operation according to test instruction and walked
Suddenly.Such as this test is performance indicator situation of change in target APP during certain operating process;Mobile phone is in starting mesh
After marking APP, by according to some object element on test some page of instruction identification target APP, keyboard service entry is then called
Keyboard server, and correlation technique and input touch parameter are transmitted to it, so that keyboard server is defeated according to this
Enter parameter to respond, click operation is executed, so that the clicking operation of people is simulated, so that target APP executes it according to the operation
The logic that jumps of itself jumps to next page, while mobile phone will also judge whether according to the situation of change of page target element
Jump success;If jumping success, continue to identify the object element on the page, and continues to execute click operation or other behaviour
Make etc., and so on, it is finished until all operations in test instruction are performed both by.
Step S30 opens test thread and is monitored to the system resource of the test terminal, obtains the test in real time
Terminal executes test performance data when test operation.
In the present embodiment, the end PC will open new p-wire while testing according to automatized script mobile phone
Journey runs occupied system resource to target APP in mobile phone and is monitored, the content of monitoring include the operation response time,
EMS memory occupation amount, cpu occupancy, network traffic flow etc.;Then the end PC can will be with data flow by these test performance data
Form carry out recording and storage, analyzed for subsequent.
It is worth noting that the application performance test method in the present embodiment, is the hand by that will be equipped with target application
Machine is attached with the end PC, and is tested in the way of automatized script terminal applies, and artificial real-time perfoming is not needed
Operation;And in practice, the test machine that more be mounted with target application can also be attached with the end PC simultaneously, the end PC according to
Automatic test script Xiang Duotai test machine sends test instruction, to realize batch testing, obtains target application and surveys at more
Test performance data in test-run a machine simultaneously compare, to guarantee the confidence level of test result.
In the present embodiment, when receiving test request, obtained according to the script storage address for including in the test request
Automatized script is taken, and the automatized script is compiled as by terminal test instruction by default automation framework;By the end
End test instruction is sent to test terminal, so that the test terminal executes survey to target application according to terminal test instruction
Examination operation;It opens test thread to be monitored the system resource of the test terminal, obtains the test terminal in real time and execute
Test performance data when test operation.In the above manner, can be by the artificial behaviour of the test process of target APP in the present embodiment
Make process to execute automatically by test script, and the various performance indicators of intelligent terminal in whole process can be obtained automatically, saves
Manual operation in test process, reduces the human cost of test, while improving the efficiency of test.
It is the flow diagram of application performance test method second embodiment of the present invention referring to Fig. 3, Fig. 3.
Based on above-mentioned embodiment illustrated in fig. 2, in the present embodiment, after step S30, further includes:
Whether the test performance data and preset standard data comparison are judged the test performance data by step S40
It is abnormal;
In the present embodiment, when the end PC will carry out automatic test to mobile phone, it will open test thread to target APP in hand
Occupied system resource is run in machine to be monitored, and obtains the test performance when test terminal executes test operation in real time
Data;Meanwhile the end PC also (or can set in advance the test performance data got in real time and pre-set normal data
The arm's length standard range set) it is compared, judge these test performance data, thus judge target APP during the test, mesh
It is whether normal in the system resource occupancy to mobile phone to mark APP.
Further, the update of APP often eliminates the optimization of previous release or BUG, therefore is testing
The data that APP current version is tested also often are compared by journey with the target capabilities data of a certain old version, thus
The performance conclusion of current version out.Based on above-mentioned consideration, in the present embodiment, can be the Objective of a certain target version of APP
Energy data are as the normal data for comparing.Specifically, being stored with the performance that APP is obtained under different test scenes in the end PC
Data, these data will be respectively stored in different database tables by version number, test scene number etc.;Wherein, checkout area
Scape can be regarded as environment when testing, including internal environment (the APP page that such as test operation is related to) and external environment
(such as network type, network signal intensity), which can be is matched by the environment for including in automatized script
It sets and is described and determines.The end PC when testing, will determine current survey according to the environment configurations in automatized script
Examination hall scape is simultaneously simulated, and test operation is then carried out under the test scene;Simultaneously according to the comparison requirement in test request
Database is inquired, obtains target capabilities data of the targeted contrast version of APP under same test scene as normal data, with
The test performance data obtained with test process compare and analyze.Certainly, for the test performance data of this target APP,
The end PC will also be stored according to its version number, test scene etc. into corresponding database table after the acquisition, for later release survey
It tries or is used when analyzing global alignment.
Step S50, if the test performance data exception, exports corresponding warning prompt.
In the present embodiment, if judging test performance data after by test performance data and preset standard data comparison
Abnormal, then the end PC can export related corresponding warning prompt immediately.Such as the mobile phone of Android system opens test under 4G network
The homepage of target APP, after executing to some option clicking operation of homepage, mobile phone jumps to next subpage according to logic is jumped
Face;At this point, the end PC detects in the jump procedure, it has been more than preset that the highest CPU usage of target APP, which has reached 20%,
Standard CPU usage 15%, the end PC output character will alert on the screen at this time, to prompt tester's current goal APP
Test performance is exceeded.Certainly, for different types of performance data, can be set different notification types, for example, for memory,
CPU usage can be set to single text prompt, then can be set to text for mobile phone temp and reminds the dual of sound
Prompt.Further, when exporting warning prompt, the end PC can also show the behaviour that current goal APP is carrying out in screen
Make information, including operation meaning and corresponding automation code content etc., to facilitate tester to carry out subsequent optimization operation.
It is the flow diagram of application performance test method 3rd embodiment of the present invention referring to Fig. 4, Fig. 4.
Based on above-mentioned embodiment illustrated in fig. 2, in the present embodiment, after step S30, further includes:
Step S60 obtains corresponding report template according to the test request, and by the test performance data fill to
The report template obtains test performance report.
In the present embodiment, the end PC is finished (i.e. mobile phone has executed the corresponding operation of automatized script) in automatized script
When, the end PC can also be analyzed and be handled to the test performance data that test process is got automatically.Specifically, the end PC is by basis
Test request determines that this tests targeted performance data type, and gets corresponding report mould according to performance data type
Plate;Then test performance data are filled into report template by the end PC, to generate the test performance report of this test.Wherein,
It may include data form, statistical chart (line chart, column diagram, cake chart etc.) in test performance report;For different analyses
Demand can be shown with different forms.For example, target APP is in hand in the implementation procedure of entire automatized script
The variation tendency that EMS memory occupation, the cpu of machine are occupied, can be and be shown in the form of line chart (or curve);Meanwhile it is different
The broken line of index can also be to be integrated in the same figure and be shown;And then for every comparison index of certain discrete instants
It can be and be shown with the mode of histogram.
Further, tester generally requires when checking that the performance of target APP is analyzed in test performance report
It is compared with the performance data of different editions, therefore the test performance is reported, be also possible to be made into the form that can be interacted.
Specifically, the performance data of the target APP got under different test scenes, will be numbered by version number, test scene, be deposited
It stores up in database table;The end PC is while generating test performance report, also by according to the content of automatized script, (operation contains
Justice) determine test scene, and will be carried out under the test scene, in the report of the similar performance data of old version and test performance
Association;When tester is when browsing the test report of a certain version, if desired by the data of certain scene in this report and its
The homogeneous data of its old version carries out across comparison, then can click the data, and select a certain old version number;The end PC
The old version can be obtained by, which being obtained according to the operation, corresponds to History Performance Data under scene, and compares displaying.For exhibition
The mode shown equally can be what the mode of chart carried out;The end PC also will acquire while getting History Performance Data
Preset template graph is arranged chart attribute according to the test performance data and History Performance Data, obtains performance comparison diagram
Table (such as histogram, line chart etc.), for tester's comparative analysis.
In addition, the embodiment of the present invention also provides a kind of application performance test device.
It is the functional block diagram of application performance test device first embodiment of the present invention referring to Fig. 5, Fig. 5.
In the present embodiment, the application performance test device includes:
Compiling of instruction module 10, for being deposited according to the script for including in the test request when receiving test request
It stores up address and obtains automatized script, and the automatized script is compiled as by terminal test instruction by default automation framework;
Instruction sending module 20, for terminal test instruction to be sent to test terminal, for the test terminal
Test operation is executed to target application according to terminal test instruction;
Terminal monitoring module 30 is monitored the system resource of the test terminal for opening test thread, in real time
Obtain the test performance data when test terminal executes test operation.
Wherein, each virtual functions module of above-mentioned application performance test device is stored in application performance test shown in Fig. 1 and sets
It is functional for realizing the institute of application performance test program in standby memory 1005;When each module is executed by processor 1001,
It can be achieved to execute all operating processes of target APP with automatized script, the test obtained at the same time in whole process is whole
Various performance indicators are held, so as to save the manual operation during performance test and the process of data processing.
Further, described instruction collector 10 includes:
Meaning acquiring unit, for determining corresponding syntax rule according to the language form of the automatized script, according to
And the operation meaning of the automatized script is obtained according to the syntax rule;
Logic Generation Unit, for searching corresponding terminal control information according to the operation meaning, and according to the behaviour
Make meaning and the terminal control information generates control operation logic;
Encapsulation unit is instructed, is instructed for the control operation logic to be encapsulated as corresponding terminal test.
Further, the application performance test device further include:
Abnormal judgment module, for judging the performance number for the test performance data and preset standard data comparison
According to whether abnormal;
Output module is prompted, if being used for the test performance data exception, exports corresponding warning prompt.
Further, the application performance test device further include:
First obtains module, for determining test scene according to the environment configurations for including in the automatized script, and looks into
Database is ask, target version is obtained and applies the target capabilities data under the test scene;
The exception judgment module is also used to the test performance data and the target capabilities data comparison, judgement
Whether the test performance data are abnormal.
Further, the application performance test device further include:
Data memory module, for being stored the test performance data to correspondence according to the version number of the target application
Database table in.
Further, the application performance test device further include:
Report obtains module, for obtaining corresponding report template according to the test request, and by the test performance
Data are filled to the report template, and test performance report is obtained.
Further, the application performance test device further include:
Second obtain module, for receive based on the test performance report triggering historical comparison instruction when, root
Test scene is determined according to the automatized script, and inquires database, is obtained old version and is applied under the test scene
History Performance Data;
Chart obtains module, for obtaining default template graph, and according to the test performance data and historical performance number
According to setting chart attribute, performance comparison diagram table is obtained.
Wherein, the function of modules is realized and above-mentioned application performance test method reality in above-mentioned application performance test device
It is corresponding to apply each step in example, function and realization process no longer repeat one by one here.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium.
Application performance test program is stored on computer readable storage medium of the present invention, wherein the application performance test
When program is executed by processor, realize such as the step of above-mentioned application performance test method.
Wherein, application performance test program, which is performed realized method, can refer to application performance test method of the present invention
Each embodiment, function and realization process no longer repeat one by one here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of application performance test method, which is characterized in that the application performance test method the following steps are included:
When receiving test request, automatized script is obtained according to the script storage address for including in the test request, and
The automatized script is compiled as terminal test instruction by default automation framework;
Terminal test instruction is sent to test terminal, so that the test terminal is instructed according to the terminal test to mesh
Mark application execution test operation;
It opens test thread to be monitored the system resource of the test terminal, obtains the test terminal in real time and execute test
Test performance data when operation.
2. application performance test method as described in claim 1, which is characterized in that described by presetting automation framework for institute
Stating the step of automatized script is compiled as terminal test instruction includes:
Corresponding syntax rule is determined according to the language form of the automatized script, is obtained according to and according to the syntax rule
The operation meaning of the automatized script;
Corresponding terminal control information is searched according to the operation meaning, and is believed according to the operation meaning and the terminal control
Breath generates control operation logic;
The control operation logic is encapsulated as corresponding terminal test instruction.
3. application performance test method as described in claim 1, which is characterized in that the unlatching test thread is to the test
The system resource of terminal is monitored, obtain in real time it is described test terminal execute test operation when test performance data the step of
Later, further includes:
By the test performance data and preset standard data comparison, judge whether the performance data is abnormal;
If the test performance data exception, exports corresponding warning prompt.
4. application performance test method as claimed in claim 3, which is characterized in that the unlatching test thread is to the test
The system resource of terminal is monitored, obtain in real time it is described test terminal execute test operation when test performance data the step of
Later, further includes:
Test scene is determined according to the environment configurations for including in the automatized script, and inquires database, obtains target version
Apply the target capabilities data under the test scene;
It is described by the test performance data and preset standard data comparison, judge the test performance data whether Yi Chang step
Suddenly include:
By the test performance data and the target capabilities data comparison, judge whether the test performance data are abnormal.
5. application performance test method as claimed in claim 4, which is characterized in that the unlatching test thread is to the test
The system resource of terminal is monitored, obtain in real time it is described test terminal execute test operation when test performance data the step of
Later, further includes:
The test performance data are stored into corresponding database table according to the version number of the target application.
6. the application performance test method as described in any one of claims 1 to 5, which is characterized in that the unlatching p-wire
Journey is monitored the system resource of the test terminal, obtains the testability when test terminal executes test operation in real time
After the step of energy data, further includes:
Corresponding report template is obtained according to the test request, and the test performance data are filled to the report mould
Plate obtains test performance report.
7. application performance test method as claimed in claim 6, which is characterized in that described according to test request acquisition pair
The report template answered, and the step of test performance data are filled to the report template, test performance report is obtained it
Afterwards, further includes:
When receiving the historical comparison instruction based on the test performance report triggering, is determined and surveyed according to the automatized script
Examination hall scape, and database is inquired, it obtains old version and applies the History Performance Data under the test scene;
Default template graph is obtained, and chart attribute is arranged according to the test performance data and History Performance Data, it is acquired
Chart can be compared.
8. a kind of application performance test device, which is characterized in that the application performance test device includes:
Compiling of instruction module, for when receiving test request, according to the script storage address for including in the test request
Automatized script is obtained, and the automatized script is compiled as by terminal test instruction by default automation framework;
Instruction sending module, for terminal test instruction to be sent to test terminal, so that the test terminal is according to institute
It states terminal test instruction and test operation is executed to target application;
Terminal monitoring module is monitored the system resource of the test terminal for opening test thread, obtains institute in real time
State test performance data when test terminal executes test operation.
9. a kind of application performance test equipment, which is characterized in that the application performance test equipment include processor, memory,
And it is stored in the application performance test program that can be executed on the memory and by the processor, wherein the application performance
When test program is executed by the processor, realizing the application performance test method as described in any one of claims 1 to 7
Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with application on the computer readable storage medium
Energy test program, wherein realizing such as any one of claims 1 to 7 when the application performance test program is executed by processor
The step of described application performance test method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810359397.1A CN109726100A (en) | 2018-04-19 | 2018-04-19 | Application performance test method, apparatus, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810359397.1A CN109726100A (en) | 2018-04-19 | 2018-04-19 | Application performance test method, apparatus, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109726100A true CN109726100A (en) | 2019-05-07 |
Family
ID=66294523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810359397.1A Pending CN109726100A (en) | 2018-04-19 | 2018-04-19 | Application performance test method, apparatus, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109726100A (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515829A (en) * | 2019-07-10 | 2019-11-29 | 平安普惠企业管理有限公司 | Application testing method, device, equipment and computer readable storage medium |
CN110765006A (en) * | 2019-10-08 | 2020-02-07 | 贝壳技术有限公司 | Flow testing method and device, computer readable storage medium and electronic device |
CN111008144A (en) * | 2019-12-18 | 2020-04-14 | 上海品顺信息科技有限公司 | Software performance detection method, terminal device and computer readable storage medium |
CN111008135A (en) * | 2019-12-02 | 2020-04-14 | 北京博睿宏远数据科技股份有限公司 | APP test method, device, equipment and storage medium |
CN111367812A (en) * | 2020-03-12 | 2020-07-03 | 北京奇艺世纪科技有限公司 | Test method, electronic device and readable storage medium |
CN111611144A (en) * | 2020-05-27 | 2020-09-01 | 中国工商银行股份有限公司 | Method, apparatus, computing device, and medium for processing performance test data |
CN111984527A (en) * | 2020-07-10 | 2020-11-24 | 招联消费金融有限公司 | Software performance testing method, device, equipment and medium |
CN112015648A (en) * | 2020-08-27 | 2020-12-01 | 深圳壹账通智能科技有限公司 | Test method, device, computer equipment and medium based on automation script |
CN112256560A (en) * | 2020-09-22 | 2021-01-22 | 北京达佳互联信息技术有限公司 | Application program testing method and device and electronic equipment |
CN112363915A (en) * | 2020-10-26 | 2021-02-12 | 深圳市明源云科技有限公司 | Method and device for page performance test, terminal equipment and storage medium |
CN112770108A (en) * | 2020-12-22 | 2021-05-07 | 深圳创维-Rgb电子有限公司 | Performance test method, device and system and computer readable storage medium |
CN113138930A (en) * | 2021-05-12 | 2021-07-20 | 上海云从企业发展有限公司 | Software testing method and device and computer storage medium |
CN113505053A (en) * | 2021-07-27 | 2021-10-15 | 云账户技术(天津)有限公司 | Application performance detection method and device |
CN113806210A (en) * | 2020-06-16 | 2021-12-17 | 北京字节跳动网络技术有限公司 | Test method, test device, test system and storage medium |
CN114356676A (en) * | 2022-01-07 | 2022-04-15 | 国泰君安证券股份有限公司 | System, method, device, processor and storage medium for realizing automatic contrast analysis by calling interface for mobile phone application terminal |
CN114490375A (en) * | 2022-01-24 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Method, device and equipment for testing performance of application program and storage medium |
CN115865809A (en) * | 2023-02-02 | 2023-03-28 | 爱集微咨询(厦门)有限公司 | Data transmission method and device, electronic equipment and readable storage medium |
CN118171010A (en) * | 2024-05-11 | 2024-06-11 | 中移(苏州)软件技术有限公司 | Webpage performance detection method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461856A (en) * | 2013-09-22 | 2015-03-25 | 阿里巴巴集团控股有限公司 | Performance test method, device and system based on cloud computing platform |
CN106547687A (en) * | 2016-10-14 | 2017-03-29 | 深圳前海微众银行股份有限公司 | Application testing method, device and system |
CN107135390A (en) * | 2017-05-08 | 2017-09-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Automatic testing method and system for television application |
CN107391362A (en) * | 2017-06-28 | 2017-11-24 | 北京珠穆朗玛移动通信有限公司 | Application testing method, mobile terminal and storage medium |
CN107577602A (en) * | 2017-08-25 | 2018-01-12 | 上海斐讯数据通信技术有限公司 | A kind of method of testing of APP interfaces, apparatus and system |
-
2018
- 2018-04-19 CN CN201810359397.1A patent/CN109726100A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461856A (en) * | 2013-09-22 | 2015-03-25 | 阿里巴巴集团控股有限公司 | Performance test method, device and system based on cloud computing platform |
CN106547687A (en) * | 2016-10-14 | 2017-03-29 | 深圳前海微众银行股份有限公司 | Application testing method, device and system |
CN107135390A (en) * | 2017-05-08 | 2017-09-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Automatic testing method and system for television application |
CN107391362A (en) * | 2017-06-28 | 2017-11-24 | 北京珠穆朗玛移动通信有限公司 | Application testing method, mobile terminal and storage medium |
CN107577602A (en) * | 2017-08-25 | 2018-01-12 | 上海斐讯数据通信技术有限公司 | A kind of method of testing of APP interfaces, apparatus and system |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515829A (en) * | 2019-07-10 | 2019-11-29 | 平安普惠企业管理有限公司 | Application testing method, device, equipment and computer readable storage medium |
CN110765006A (en) * | 2019-10-08 | 2020-02-07 | 贝壳技术有限公司 | Flow testing method and device, computer readable storage medium and electronic device |
CN111008135A (en) * | 2019-12-02 | 2020-04-14 | 北京博睿宏远数据科技股份有限公司 | APP test method, device, equipment and storage medium |
CN111008135B (en) * | 2019-12-02 | 2024-01-23 | 北京博睿宏远数据科技股份有限公司 | APP test method, device, equipment and storage medium |
CN111008144A (en) * | 2019-12-18 | 2020-04-14 | 上海品顺信息科技有限公司 | Software performance detection method, terminal device and computer readable storage medium |
CN111008144B (en) * | 2019-12-18 | 2023-11-14 | 上海品顺信息科技有限公司 | Software performance detection method, terminal equipment and computer readable storage medium |
CN111367812A (en) * | 2020-03-12 | 2020-07-03 | 北京奇艺世纪科技有限公司 | Test method, electronic device and readable storage medium |
CN111611144A (en) * | 2020-05-27 | 2020-09-01 | 中国工商银行股份有限公司 | Method, apparatus, computing device, and medium for processing performance test data |
CN111611144B (en) * | 2020-05-27 | 2023-09-19 | 中国工商银行股份有限公司 | Method, apparatus, computing device, and medium for processing performance test data |
CN113806210A (en) * | 2020-06-16 | 2021-12-17 | 北京字节跳动网络技术有限公司 | Test method, test device, test system and storage medium |
CN113806210B (en) * | 2020-06-16 | 2024-07-26 | 北京字节跳动网络技术有限公司 | Test method, test equipment, test system and storage medium |
CN111984527A (en) * | 2020-07-10 | 2020-11-24 | 招联消费金融有限公司 | Software performance testing method, device, equipment and medium |
CN112015648A (en) * | 2020-08-27 | 2020-12-01 | 深圳壹账通智能科技有限公司 | Test method, device, computer equipment and medium based on automation script |
CN112256560A (en) * | 2020-09-22 | 2021-01-22 | 北京达佳互联信息技术有限公司 | Application program testing method and device and electronic equipment |
CN112363915A (en) * | 2020-10-26 | 2021-02-12 | 深圳市明源云科技有限公司 | Method and device for page performance test, terminal equipment and storage medium |
CN112770108A (en) * | 2020-12-22 | 2021-05-07 | 深圳创维-Rgb电子有限公司 | Performance test method, device and system and computer readable storage medium |
CN113138930A (en) * | 2021-05-12 | 2021-07-20 | 上海云从企业发展有限公司 | Software testing method and device and computer storage medium |
CN113505053A (en) * | 2021-07-27 | 2021-10-15 | 云账户技术(天津)有限公司 | Application performance detection method and device |
CN114356676A (en) * | 2022-01-07 | 2022-04-15 | 国泰君安证券股份有限公司 | System, method, device, processor and storage medium for realizing automatic contrast analysis by calling interface for mobile phone application terminal |
CN114490375A (en) * | 2022-01-24 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Method, device and equipment for testing performance of application program and storage medium |
CN114490375B (en) * | 2022-01-24 | 2024-03-15 | 腾讯科技(深圳)有限公司 | Performance test method, device, equipment and storage medium of application program |
CN115865809A (en) * | 2023-02-02 | 2023-03-28 | 爱集微咨询(厦门)有限公司 | Data transmission method and device, electronic equipment and readable storage medium |
CN115865809B (en) * | 2023-02-02 | 2023-06-02 | 爱集微咨询(厦门)有限公司 | Data transmission method, device, electronic equipment and readable storage medium |
CN118171010A (en) * | 2024-05-11 | 2024-06-11 | 中移(苏州)软件技术有限公司 | Webpage performance detection method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109726100A (en) | Application performance test method, apparatus, equipment and computer readable storage medium | |
CN108733568A (en) | Application testing method, device, equipment and readable storage medium | |
CN109726103B (en) | Test report generation method, device, equipment and storage medium | |
CN109633351B (en) | Intelligent IT operation and maintenance fault positioning method, device, equipment and readable storage medium | |
CN111026645B (en) | User interface automatic test method and device, storage medium and electronic equipment | |
CN111240973B (en) | Equipment testing method and system based on simulation and readable storage medium | |
CN110708210B (en) | Cloud test configuration method and device, computer equipment and storage medium | |
CN105094783A (en) | Method and device for testing Android application stability | |
CN105183630B (en) | Applied program testing method and device | |
CN109491891A (en) | Full-automatic interface pressure surveys method, apparatus, computer equipment and storage medium | |
CN111124919A (en) | User interface testing method, device, equipment and storage medium | |
WO2016008398A1 (en) | Program performance test method and device | |
CN110297760A (en) | Building method, device, equipment and the computer readable storage medium of test data | |
CN111026670B (en) | Test case generation method, test case generation device and storage medium | |
CN111258290A (en) | Automatic test method and system for vehicle control unit | |
CN105653946A (en) | Android malicious behavior detection system based on combined event behavior triggering and detection method of Android malicious behavior detection system | |
CN109766261A (en) | Coverage test method, device, computer equipment and storage medium | |
CN110750460A (en) | Browser compatibility detection method, device, equipment and readable storage medium | |
CN106294172A (en) | App self-testing method based on terminal unit and device | |
CN111796578A (en) | Vehicle controller testing method, device and system and storage medium | |
CN113900962B (en) | Code difference detection method and device | |
CN105760300A (en) | Automatic STK/UTK service testing method and system | |
CN107562621A (en) | The method and apparatus for determining manual test use-case and tested code incidence relation | |
CN113268409B (en) | Method, apparatus, device and medium for tracking logical nodes during automated testing | |
CN110543429A (en) | Test case debugging method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240517 |
|
AD01 | Patent right deemed abandoned |