CN106339321A - Method and device for testing performance of application - Google Patents

Method and device for testing performance of application Download PDF

Info

Publication number
CN106339321A
CN106339321A CN201610816398.5A CN201610816398A CN106339321A CN 106339321 A CN106339321 A CN 106339321A CN 201610816398 A CN201610816398 A CN 201610816398A CN 106339321 A CN106339321 A CN 106339321A
Authority
CN
China
Prior art keywords
destination application
performance data
described destination
application
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.)
Granted
Application number
CN201610816398.5A
Other languages
Chinese (zh)
Other versions
CN106339321B (en
Inventor
罗章龙
魏学峰
严明
章平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610816398.5A priority Critical patent/CN106339321B/en
Publication of CN106339321A publication Critical patent/CN106339321A/en
Application granted granted Critical
Publication of CN106339321B publication Critical patent/CN106339321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides a method and device for testing the performance of an application. The method comprises the steps of: sending a test command to a target application, wherein the test command is used for instructing the target application to report a performance data message to a target port; obtaining the performance data message reported by the target application to a target port; cracking the performance data message reported by the target application to the target port; generating performance data of the target application; and reporting the performance data of the target application to a database server so as to enable the database server to analyze the performance of the target application according to the performance data of the target application. According to the method and device, by reporting the performance data of the target application to the database server, the database server may be enabled to obtain complete test data and analyze the performance of the target application based on the data; thus, the accuracy of the performance testing result for the application is ensured.

Description

A kind of application program capacity method of testing and device
Technical field
The present invention relates to technical field of performance test, in particular, it is to be related to a kind of application program capacity method of testing And device.
Background technology
Unity engine, as a development of games instrument, can develop various mobile phone games.At present how using by unity official The profiler instrument that side provides carries out performance test to the game developed by unity engine.Specifically, with by unity engine It is necessary first to be connected mobile phone terminal by the special connecting line of unity engine with computer end as a example the mobile phone games a of exploitation, its In, mobile phone terminal needs to install the specific compiled version of mobile phone games a, and computer end needs to install unity profiler instrument, so Afterwards, the performance of the mobile phone games a that the unity profiler instrument that startup computer end is installed runs to mobile phone terminal is tested, Afterwards, test data is passed through the data display showing interface of unity profiler instrument to tester, by tester people Work point analyses the performance of mobile phone games a.
But, in the prior art, when test data is showed tester by unity profiler instrument, every time only Test data in a bit of time being shown, because unity profiler instrument does not possess storage or derives test data Function, therefore, when the test data in a bit of time instantly is shown, the test data in the upper a bit of time will disappear, That is, tester can only see the test data in a bit of time every time it is impossible to obtain complete test data, this In the case of kind, test result undoubtedly can be led to inaccurate.
It can be seen that, in prior art, using the profiler instrument that provided by unity official to being developed by unity engine Game carries out performance test, due to cannot obtain complete test data, leads to test result inaccurate.
Content of the invention
In view of this, the invention provides a kind of application program capacity method of testing and device, to overcome in prior art Performance test is carried out to the game developed by unity engine using the profiler instrument being provided by unity official, due to cannot Obtain complete test data, lead to the inaccurate problem of test result.
For achieving the above object, the following technical scheme of present invention offer:
A kind of application program capacity method of testing, methods described includes:
Send test command to destination application, described test command is used for indicating described reporting property of destination application Energy data-message is to target port;
Obtain the performance data message that described destination application reports to target port;
Crack the performance data message that described destination application reports to target port, generate described destination application Performance data;
By the reporting performance data of described destination application to database server, so that described database server root Performance data according to described destination application carries out performance evaluation to described destination application.
The embodiment of the present invention also provides a kind of application program capacity method of testing, and methods described includes:
Receive the performance data of the destination application that testing tool reports;
Performance data according to described destination application carries out performance evaluation to described destination application, generates analysis Result.
The embodiment of the present invention also provides a kind of application program capacity test device, and described device includes:
Sending module, for sending test command to destination application, described test command is used for indicating described target Application program reporting performance data message is to target port;
Acquisition module, reports to the performance data message of target port for obtaining described destination application;
Crack module, report to the performance data message of target port for cracking described destination application, generate institute State the performance data of destination application;
Reporting module, for by the reporting performance data of described destination application to database server so that described Database server carries out performance evaluation according to the performance data of described destination application to described destination application.
The embodiment of the present invention also provides a kind of application program capacity test device, and described device includes:
Receiver module, for receiving the performance data of the destination application that testing tool reports;
Analysis module, carries out performance for the performance data according to described destination application to described destination application Analysis, generates analysis result.
Understand via above-mentioned technical scheme, compared with prior art, the invention provides a kind of application program capacity is surveyed Method for testing and device, send test command to destination application, and described test command is used for indicating described destination application Reporting performance data message is to target port;Obtain the performance data message that described destination application reports to target port; Crack the performance data message that described destination application reports to target port, generate the performance number of described destination application According to;By the reporting performance data of described destination application to database server, so that described database server is according to institute The performance data stating destination application carries out performance evaluation to described destination application.Said method and device, by inciting somebody to action The reporting performance data of described destination application, to database server, can make database server obtain complete test Data simultaneously carries out performance evaluation according to it to destination application it is ensured that the accuracy of application program capacity test result.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing providing obtains other accompanying drawings.
Fig. 1 is the structural representation of application program capacity test system provided in an embodiment of the present invention;
Fig. 2 is the signaling process figure of application program capacity method of testing provided in an embodiment of the present invention;
Fig. 3 is the flow chart of application program capacity method of testing provided in an embodiment of the present invention;
Fig. 4 is provided in an embodiment of the present invention in the collocation method flow process to before destination application transmission test command Figure;
Fig. 5 is another flow chart of application program capacity method of testing provided in an embodiment of the present invention;
Fig. 6 is another flow chart of application program capacity method of testing provided in an embodiment of the present invention;
Fig. 7 is the structured flowchart of application program capacity test device provided in an embodiment of the present invention;
Fig. 8 is another structure chart of application program capacity test device provided in an embodiment of the present invention;
Fig. 9 is the hardware block diagram of application program capacity test device provided in an embodiment of the present invention;
Figure 10 is another structured flowchart of application program capacity test device provided in an embodiment of the present invention;
Figure 11 is the hardware block diagram of application program capacity test device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
It was found by the inventors of the present invention that in prior art using the profiler instrument being provided by unity official to by The game of unity engine exploitation carries out performance test, due to cannot obtain complete test data, leads to test result to be forbidden Really, therefore, need a kind of application program capacity method of testing badly, to improve the accuracy of test result.
Technical scheme disclosed in the embodiment of the present invention is in order to solve the above problems, there is provided a kind of application program capacity is surveyed Method for testing and device, send test command to destination application, and described test command is used for indicating described destination application Reporting performance data message is to target port;Obtain the performance data message that described destination application reports to target port; Crack the performance data message that described destination application reports to target port, generate the performance number of described destination application According to;By the reporting performance data of described destination application to database server, so that described database server is according to institute The performance data stating destination application carries out performance evaluation to described destination application.Said method and device, by inciting somebody to action The reporting performance data of described destination application, to database server, can make database server obtain complete test Data simultaneously carries out performance evaluation according to it to destination application it is ensured that the accuracy of application program capacity test result.
Fig. 1 is the structural representation of application program capacity test system provided in an embodiment of the present invention, the embodiment of the present invention The application program capacity method of testing providing can be implemented by this application program capacity test system;With reference to Fig. 1, this application program Test system can may include that the client 20 of the client 10 of application program, testing tool, database server 30 and mutually Networked server 40.
Wherein, the client 10 of application program is specifically as follows mobile phone, panel computer etc., is provided with mesh to be tested thereon Mark application program.
The client 20 of testing tool is specifically as follows computer etc., is provided with thereon for the property to destination application The testing tool that can be tested.It can be connected with the client 10 of application program by usb data wire it is also possible to pass through no The mode of line is connected with the client 10 of application program.When it is connected with the client 10 of application program by usb data wire, Can receive application program client 10 send adb message format performance data message, when its wirelessly When being connected with the client 10 of application program, the scocket message format of client 10 transmission of application program can be received Performance data message.
Database server 30 possesses the function of being communicated by network with the client 20 of testing tool, can receive The performance data of the destination application that the client 20 of testing tool reports, and, database server 30 possesses to target The function that the performance data of application program is stored and analyzed.
Internet Server 40 possesses the function of being communicated by network and database server 30, can be from data base The results of performance analysis of destination application is obtained in server 30.
Based on the application program capacity test system shown in Fig. 1, Fig. 2 shows application program provided in an embodiment of the present invention The signaling process figure of performance test methods, with reference to Fig. 2, this flow process may include that
Step s10, the client of testing tool send test command to the client of application program, and described test command is used In instruction application program client install destination application reporting performance data message to the client of testing tool Target port.
The target port that performance data message is reported to by step s11, the destination application of the client of application program.
Step s12, the client of testing tool crack the performance data that described destination application reports to target port Message, generates the performance data of described destination application.
Step s13, the client of testing tool are by the reporting performance data of described destination application to database service Device.
Step s14, database server are according to the performance data of described destination application to described destination application Carry out performance evaluation, generate analysis result.
Step s15, database server receive the analysis result acquisition request that Internet Server sends.
Described analysis result is fed back to Internet Server by step s16, database server.
Described analysis result is showed tester by step s17, Internet Server in the form of a web page.
Application program capacity method of testing provided in an embodiment of the present invention, the client of testing tool is to the visitor of application program Family end sends test command, and described test command is used for indicating the reporting property of destination application that the client of application program is installed Can data-message to the client of testing tool target port, the destination application of the client of application program is by performance number According to information reporting target port extremely, the client of testing tool cracks the property that described destination application reports to target port Can data-message, generate the performance data of described destination application, the client of testing tool is by described destination application Reporting performance data to database server, database server is according to the performance data of described destination application to described Destination application carries out performance evaluation, generates analysis result, and database server receives the analysis that Internet Server sends Result obtains request, and described analysis result is fed back to Internet Server by database server, and Internet Server will be described Analysis result shows tester in the form of a web page, and then ensure that the accuracy of application program capacity test result.
Below with the angle of the client of testing tool, to application program capacity method of testing provided in an embodiment of the present invention It is introduced, application program capacity method of testing described below can ginseng mutually corresponding with above-described signaling process content According to.
Fig. 3 is the flow chart of application program capacity method of testing provided in an embodiment of the present invention, and the method can be applicable to institute State the client of testing tool, with reference to Fig. 3, methods described may include that
Step s100, send test command to destination application, described test command is used for indicating described intended application Program reporting performance data message is to target port.
Target port is for being used for receptivity data in the testing tool of the client installation of testing tool in the present embodiment The port of message.
Step s101, the described destination application of acquisition report to the performance data message of target port.
Step s102, crack the performance data message that described destination application reports to target port, generate described mesh The performance data of mark application program.
Specifically, interface can be shown by compareing the test data of unity profiler instrument, and substantial amounts of sampling Data analysiss crack the structure of performance data message, generate one kind and crack rule, afterwards, receive described destination application every time Report to a performance data message of target port, all rule can be cracked according to this and this performance data message is broken Solution.
Preferably, the described performance data generating described destination application, comprising: reject on described destination application Report the redundant data in the data comprising to the performance data message of target port, retain described destination application and report to Performance data in the data comprising in the performance data message of target port is as the performance data of described destination application.
Step s103, by the reporting performance data of described destination application to database server so that described data Storehouse server carries out performance evaluation according to the performance data of described destination application to described destination application.
In the present embodiment, it is to get a performance data message, just this message is carried out cracking generation performance data, Then by reporting performance data to database server.Database server be receive all of performance data after, carry out Unitary analysiss.
Preferably, the described reporting performance data by described destination application is to database server, comprising: for described The performance data of destination application adds the mark of the classification of the performance data for representing described destination application;To add Mark-on know after destination application reporting performance data to database server so that described database server is according to institute State mark the performance data of described destination application is classified and the performance number according to sorted destination application Carry out performance evaluation according to described destination application.
Application program capacity method of testing provided in an embodiment of the present invention, sends test command, institute to destination application State test command to be used for indicating described destination application reporting performance data message to target port;Obtain described intended application Program reports to the performance data message of target port;Crack the performance data that described destination application reports to target port Message, generates the performance data of described destination application;By the reporting performance data of described destination application to data base Server, so that described database server enters to described destination application according to the performance data of described destination application Row performance evaluation, and then ensure that the accuracy of application program capacity test result.
In prior art, using the profiler instrument being provided by unity official to the application journey developed by unity engine When sequence carries out performance test, if thinking, application program can support that generating performance data must develop specific compiled version, for solution Determine this technical bottleneck, the embodiment of the present invention increased a kind of configuration side before sending test command to destination application Formula.Specifically, Fig. 4 show provided in an embodiment of the present invention to destination application send test command before configuration side Method flow chart, with reference to Fig. 4, the method may include that
Step s200, the process name of the described destination application of acquisition.
Step s201, determine the operation catalogue of described destination application according to the process name of described destination application.
Step s202, the corresponding exploitation of described destination application is determined according to the operation catalogue of described destination application Instrument version.
In the present embodiment, destination application corresponding developing instrument version is specially the version of unity engine.
Step s203, transfer the general dynamic link library of developing instrument version match corresponding with described destination application File, described general dynamic link library file includes generating the letter of performance data message for triggering described destination application Number.
The corresponding different general dynamic link library file of the version of different unity engines, in the present embodiment, is determining After destination application corresponding exploitation version, need to transfer developing instrument version match corresponding with described destination application General dynamic link library file.
Under normal circumstances, destination application is needed can to support that generating performance data must open in compiled version " development " option is just permissible, in the present embodiment, can generate by using opening the empty engineering of this option " libunity.so " file, libunity.so file is regarded as the general dynamic link library text described in the present embodiment Part.
Corresponding in step s204, the operation catalogue with the described general dynamic link library file described destination application of replacement Dynamic link library file so that described destination application is used for triggering in going to described general dynamic link library file Described destination application generates and generates performance data message during the function of performance data message.
With the angle of database server, application program capacity method of testing provided in an embodiment of the present invention is carried out below Introduce, application program capacity method of testing described below can be with above-described signaling process content, and the visitor of testing tool The application program capacity method of testing of family end angle description is mutually to should refer to.
Fig. 5 is another flow chart of application program capacity method of testing provided in an embodiment of the present invention, and the method can be applied In database server, the method needs the application program capacity test side with the client angle of testing tool described above Method connected applications realize application program capacity test.With reference to Fig. 5, the method may include that
The performance data of the destination application that step s300, reception testing tool report.
Step s301, performance is carried out to described destination application according to the performance data of described destination application divide Analysis, generates analysis result.
Preferably, Fig. 6 shows another flow chart of application program capacity method of testing provided in an embodiment of the present invention, ginseng According to Fig. 6, the method may include that
The performance data of the destination application that step s400, reception testing tool report.
It is used in step s401, the performance data of destination application being reported according to testing tool representing that described target should With the mark of the classification of the performance data of program, the performance data of described destination application is classified.
Step s402, performance is carried out to described destination application according to the performance data of sorted destination application Analysis, generates analysis result.
The analysis result that step s403, reception Internet Server send obtains request.
Step s404, described analysis result is fed back to Internet Server, so that tester checks institute by webpage State analysis result.
The application examples of application program capacity method of testing provided in an embodiment of the present invention can be such that
Mobile phone games a is developed by unity engine, in prior art, if necessary to the cpu to mobile phone games a Can be tested, then can only be adopted the profiler instrument being provided by unity official, but, this mode is due to obtaining Complete cpu test data, leads to the cpu the performance test results to mobile phone games a inaccurate.
Using application program capacity method of testing provided in an embodiment of the present invention, the cpu performance of mobile phone games a is surveyed Examination, then can capture mobile phone games a script by testing tool provided in an embodiment of the present invention and be sent to profiler instrument Cpu performance data message, and this message is cracked, obtain the cpu performance data of mobile phone games a, by the mobile phone getting , to database server, database server can be whole according to mobile phone games a for whole cpu reporting performance datas of game a Cpu performance data automatically analyzes to the cpu performance of mobile phone games a, generates analysis result, and then ensure that analysis result Accuracy.
Below application program capacity test device provided in an embodiment of the present invention is introduced, application journey described below Sequence performance testing device can be with application program capacity method of testing above mutually to should refer to.
Fig. 7 is the structured flowchart of application program capacity test device provided in an embodiment of the present invention, this application program capacity Test device is specifically as follows the client of testing tool, and with reference to Fig. 7, this application program capacity test device may include that
Sending module 10, for sending test command to destination application, described test command is used for indicating described mesh Mark application program reporting performance data message is to target port.
Acquisition module 11, reports to the performance data message of target port for obtaining described destination application.
Crack module 12, report to the performance data message of target port for cracking described destination application, generate The performance data of described destination application.
Preferably, described crack module specifically for: reject described destination application and report to the performance of target port Redundant data in the data comprising in data-message, retains the performance data that described destination application reports to target port Performance data in the data comprising in message is as the performance data of described destination application.
Reporting module 13, for by the reporting performance data of described destination application to database server so that institute State database server and performance evaluation is carried out to described destination application according to the performance data of described destination application.
Preferably, described reporting module specifically for: the performance data for described destination application is added for representing The mark of the classification of the performance data of described destination application;By in the performance data of the destination application adding after mark Report to database server, so that described database server identifies the performance data of described destination application according to described Classified and performance evaluation is carried out to described destination application according to the performance data of sorted destination application.
Preferably, Fig. 8 shows another structure chart of application program capacity test device provided in an embodiment of the present invention, ginseng According to Fig. 8, this device also includes:
Configuration module 14, for, before the described transmission test command to destination application, obtaining described intended application The process name of program;Determine the operation catalogue of described destination application according to the process name of described destination application;According to The operation catalogue of described destination application determines described destination application corresponding developing instrument version;Transfer and described mesh The general dynamic link library file of mark application program corresponding developing instrument version match, in described general dynamic link library file Including the function generating performance data message for triggering described destination application;Replaced with described general dynamic link library file Change corresponding dynamic link library file in the operation catalogue of described destination application, so that described destination application is in execution It is used for life during the function triggering described destination application generation performance data message in described general dynamic link library file Become performance data message.
Optionally, application program capacity test device can be hardware device, and above-described module can be arranged at should With the functional module in program feature test device.Fig. 9 shows the hardware block diagram of application program capacity test device, ginseng According to Fig. 9, application program capacity test device may include that processor 1, communication interface 2, memorizer 3 and communication bus 4;Wherein Processor 1, communication interface 2, memorizer 3 complete mutual communication by communication bus 4;Optionally, communication interface 2 can be The interface of communication module, the such as interface of gsm module;
Processor 1, for configuration processor;Memorizer 3, is used for depositing program;Program can include program code, described journey Sequence code includes computer-managed instruction;
Processor 1 is probably a central processing unit cpu, or specific integrated circuit asic (application Specific integrated circuit), or be arranged to implement the one or more integrated electricity of the embodiment of the present invention Road;Memorizer 3 may comprise high speed ram memorizer it is also possible to also include nonvolatile memory (non-volatile Memory), for example, at least one disk memory.
Wherein, program can be specifically for:
Send test command to destination application, described test command is used for indicating described reporting property of destination application Energy data-message is to target port;
Obtain the performance data message that described destination application reports to target port;
Crack the performance data message that described destination application reports to target port, generate described destination application Performance data;
By the reporting performance data of described destination application to database server, so that described database server root Performance data according to described destination application carries out performance evaluation to described destination application.
Below another kind application program capacity test device provided in an embodiment of the present invention is introduced, this application program Performance testing device is specifically as follows database server, application program capacity test device described below can with believe above Make flow content, and with the application program capacity method of testing of the client angle description of testing tool mutually to should refer to.
Figure 10 is a kind of another structured flowchart of application program capacity test device provided in an embodiment of the present invention, refers to Figure 10, this application program capacity test device may include that
Receiver module 20, for receiving the performance data of the destination application that testing tool reports;
Analysis module 21, for the performance data according to described destination application to described destination application progressive Can analyze, generate analysis result.
Preferably, described device also includes:
Sort module, is used in the performance data for the destination application being reported according to testing tool representing described mesh The performance data of described destination application is classified by the mark of the classification of performance data of mark application program;
Then described analysis module specifically for:
Performance data according to sorted destination application carries out performance evaluation to described destination application.
Preferably, described receiver module is additionally operable in the described performance data according to described destination application to described mesh Mark application program carries out performance evaluation, and after generating analysis result, the analysis result acquisition receiving Internet Server transmission please Ask;
Described device also includes: feedback module, for described analysis result is fed back to Internet Server, so that test Personnel check described analysis result by webpage.
Optionally, above-mentioned application program capacity test device can be hardware device, and above-described module can be arranged Functional module in application program capacity test device.Figure 11 shows the hardware configuration frame of application program capacity test device Figure, with reference to Figure 11, application program capacity test device may include that processor 1 ', communication interface 2 ', memorizer 3 ' and communication are total Line 4 ';Wherein processor 1 ', communication interface 2 ', memorizer 3 ' complete mutual communication by communication bus 4 ';Optionally, lead to Letter interface 2 ' can be the interface of communication module, the such as interface of gsm module;
Processor 1 ', for configuration processor;Memorizer 3 ', is used for depositing program;Program can include program code, described Program code includes computer-managed instruction;
Processor 1 ' is probably a central processing unit cpu, or specific integrated circuit asic (application Specific integrated circuit), or be arranged to implement the one or more integrated electricity of the embodiment of the present invention Road;Memorizer 3 ' may comprise high speed ram memorizer it is also possible to also include nonvolatile memory (non-volatile Memory), for example, at least one disk memory.
Wherein, program can be specifically for:
Receive the performance data of the destination application that testing tool reports;
Performance data according to described destination application carries out performance evaluation to described destination application, generates analysis Result.
In this specification, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it corresponds to the method disclosed in Example, so description is fairly simple, say referring to method part in place of correlation Bright.
Professional further appreciates that, in conjunction with the unit of each example of the embodiments described herein description And algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and The interchangeability of software, generally describes composition and the step of each example in the above description according to function.These Function to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.Specialty Technical staff can use different methods to each specific application realize described function, but this realization should Think beyond the scope of this invention.
The step of the method in conjunction with the embodiments described herein description or algorithm can directly be held with hardware, processor The software module of row, or the combination of the two is implementing.Software module can be placed in random access memory (ram), internal memory, read-only deposit Reservoir (rom), electrically programmable rom, electrically erasable rom, depositor, hard disk, moveable magnetic disc, cd-rom or technology In known any other form of storage medium in field.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention. Multiple modifications to these embodiments will be apparent from for those skilled in the art, as defined herein General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention It is not intended to be limited to the embodiments shown herein, and be to fit to and principles disclosed herein and features of novelty phase one The scope the widest causing.

Claims (14)

1. a kind of application program capacity method of testing is it is characterised in that methods described includes:
Send test command to destination application, described test command is used for indicating that described destination application reports performance number According to message to target port;
Obtain the performance data message that described destination application reports to target port;
Crack the performance data message that described destination application reports to target port, generate the property of described destination application Can data;
By the reporting performance data of described destination application to database server, so that described database server is according to institute The performance data stating destination application carries out performance evaluation to described destination application.
2. method according to claim 1 is it is characterised in that the performance data of the described destination application of described generation, Including:
Reject the redundant data that described destination application reports in the data comprising in the performance data message of target port, Retain described destination application and report to the performance data conduct in the data comprising in the performance data message of target port The performance data of described destination application.
3. method according to claim 1 is it is characterised in that the described reporting performance data by described destination application To database server, comprising:
Performance data for described destination application adds the classification of the performance data for representing described destination application Mark;
By the reporting performance data of the destination application adding after mark to database server, so that described database service Device is classified and the performance data of described destination application according to sorted destination application according to described mark Performance data performance evaluation is carried out to described destination application.
4. the method according to any one in claims 1 to 3 is it is characterised in that send out to destination application described Before sending test command, methods described also includes:
Obtain the process name of described destination application;
Determine the operation catalogue of described destination application according to the process name of described destination application;
Described destination application corresponding developing instrument version is determined according to the operation catalogue of described destination application;
Transfer the general dynamic link library file of developing instrument version match corresponding with described destination application, described general Dynamic link library file includes generating the function of performance data message for triggering described destination application;
Replace corresponding dynamic link library in the operation catalogue of described destination application with described general dynamic link library file File, so that described destination application is used for triggering described intended application in going to described general dynamic link library file Performance data message is generated during the function of Program Generating performance data message.
5. a kind of application program capacity method of testing is it is characterised in that methods described includes:
Receive the performance data of the destination application that testing tool reports;
Performance data according to described destination application carries out performance evaluation to described destination application, generates analysis knot Really.
6. method according to claim 5 is it is characterised in that methods described also includes:
It is used in the performance data of the destination application being reported according to testing tool representing the performance of described destination application The performance data of described destination application is classified by the mark of the classification of data;
Then the described performance data according to described destination application carries out performance evaluation to described destination application, comprising:
Performance data according to sorted destination application carries out performance evaluation to described destination application.
7. method according to claim 5 is it is characterised in that in the described performance data according to described destination application Described destination application is carried out with performance evaluation, after generating analysis result, methods described also includes:
Receive the analysis result acquisition request that Internet Server sends;
Described analysis result is fed back to Internet Server, so that tester checks described analysis result by webpage.
8. a kind of application program capacity test device is it is characterised in that described device includes:
Sending module, for sending test command to destination application, described test command is used for indicating described intended application Program reporting performance data message is to target port;
Acquisition module, reports to the performance data message of target port for obtaining described destination application;
Crack module, report to the performance data message of target port for cracking described destination application, generate described mesh The performance data of mark application program;
Reporting module, for by the reporting performance data of described destination application to database server so that described data Storehouse server carries out performance evaluation according to the performance data of described destination application to described destination application.
9. device according to claim 8 it is characterised in that described crack module specifically for:
Reject the redundant data that described destination application reports in the data comprising in the performance data message of target port, Retain described destination application and report to the performance data conduct in the data comprising in the performance data message of target port The performance data of described destination application.
10. device according to claim 8 it is characterised in that described reporting module specifically for:
Performance data for described destination application adds the classification of the performance data for representing described destination application Mark;By the reporting performance data of the destination application adding after mark to database server, so that described data base Server is classified and the performance data of described destination application according to sorted intended application according to described mark The performance data of program carries out performance evaluation to described destination application.
In 11. according to Claim 8~10, the device described in any one is it is characterised in that described device also includes:
Configuration module, for, before the described transmission test command to destination application, obtaining described destination application Process name;Determine the operation catalogue of described destination application according to the process name of described destination application;According to described mesh The operation catalogue of mark application program determines described destination application corresponding developing instrument version;Transfer and described intended application The general dynamic link library file of program corresponding developing instrument version match, described general dynamic link library file includes using In the function triggering described destination application generation performance data message;Replaced described with described general dynamic link library file Corresponding dynamic link library file in the operation catalogue of destination application so that described destination application go to described It is used in general dynamic link library file generating performance during the function triggering described destination application generation performance data message Data-message.
A kind of 12. application program capacity test devices are it is characterised in that described device includes:
Receiver module, for receiving the performance data of the destination application that testing tool reports;
Analysis module, carries out performance for the performance data according to described destination application to described destination application and divides Analysis, generates analysis result.
13. devices according to claim 12 are it is characterised in that described device also includes:
Sort module, is used in the performance data for the destination application being reported according to testing tool representing that described target should With the mark of the classification of the performance data of program, the performance data of described destination application is classified;
Then described analysis module specifically for:
Performance data according to sorted destination application carries out performance evaluation to described destination application.
14. devices according to claim 12 it is characterised in that
Described receiver module is additionally operable in the described performance data according to described destination application to described destination application Carry out performance evaluation, after generating analysis result, receive the analysis result acquisition request that Internet Server sends;
Described device also includes: feedback module, for described analysis result is fed back to Internet Server, so that tester Described analysis result is checked by webpage.
CN201610816398.5A 2016-09-09 2016-09-09 A kind of application program capacity test method and device Active CN106339321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610816398.5A CN106339321B (en) 2016-09-09 2016-09-09 A kind of application program capacity test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610816398.5A CN106339321B (en) 2016-09-09 2016-09-09 A kind of application program capacity test method and device

Publications (2)

Publication Number Publication Date
CN106339321A true CN106339321A (en) 2017-01-18
CN106339321B CN106339321B (en) 2018-04-27

Family

ID=57838619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610816398.5A Active CN106339321B (en) 2016-09-09 2016-09-09 A kind of application program capacity test method and device

Country Status (1)

Country Link
CN (1) CN106339321B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032916A (en) * 2017-06-08 2018-12-18 阿里巴巴集团控股有限公司 The method, apparatus and system that functional module in application program is evaluated and tested
CN109840209A (en) * 2019-01-18 2019-06-04 深圳壹账通智能科技有限公司 Application performance collecting method, terminal, computer equipment and storage medium
CN109977013A (en) * 2019-03-19 2019-07-05 深圳市腾讯信息技术有限公司 A kind of Debugging message acquisition methods, system and device
CN110532193A (en) * 2019-09-09 2019-12-03 珠海金山网络游戏科技有限公司 A kind of method for analyzing performance, calculates equipment and storage medium at device
CN113312272A (en) * 2021-07-26 2021-08-27 中科三清科技有限公司 Method and device for analyzing algorithm program data
CN113468069A (en) * 2021-07-22 2021-10-01 腾讯科技(成都)有限公司 Application testing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425577A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Test method and device
CN103516559A (en) * 2012-12-13 2014-01-15 Tcl集团股份有限公司 Method and system for testing application compatibility of intelligent terminal
CN105653456A (en) * 2015-12-31 2016-06-08 网易(杭州)网络有限公司 Application program performance testing method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425577A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Test method and device
CN103516559A (en) * 2012-12-13 2014-01-15 Tcl集团股份有限公司 Method and system for testing application compatibility of intelligent terminal
CN105653456A (en) * 2015-12-31 2016-06-08 网易(杭州)网络有限公司 Application program performance testing method, device and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032916A (en) * 2017-06-08 2018-12-18 阿里巴巴集团控股有限公司 The method, apparatus and system that functional module in application program is evaluated and tested
CN109840209A (en) * 2019-01-18 2019-06-04 深圳壹账通智能科技有限公司 Application performance collecting method, terminal, computer equipment and storage medium
WO2020147420A1 (en) * 2019-01-18 2020-07-23 深圳壹账通智能科技有限公司 Application performance data collection method, terminal, computer device, and storage medium
CN109977013A (en) * 2019-03-19 2019-07-05 深圳市腾讯信息技术有限公司 A kind of Debugging message acquisition methods, system and device
CN109977013B (en) * 2019-03-19 2022-06-17 深圳市腾讯信息技术有限公司 Debugging information acquisition method, system and device
CN110532193A (en) * 2019-09-09 2019-12-03 珠海金山网络游戏科技有限公司 A kind of method for analyzing performance, calculates equipment and storage medium at device
CN113468069A (en) * 2021-07-22 2021-10-01 腾讯科技(成都)有限公司 Application testing method and device, computer equipment and storage medium
CN113312272A (en) * 2021-07-26 2021-08-27 中科三清科技有限公司 Method and device for analyzing algorithm program data

Also Published As

Publication number Publication date
CN106339321B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN106339321A (en) Method and device for testing performance of application
CN104185840B (en) It is used for being prioritized the mthods, systems and devices of multiple tests in lasting deployment streamline
US9710257B2 (en) System and method to map defect reduction data to organizational maturity profiles for defect projection modeling
CN111897724B (en) Automatic testing method and device suitable for cloud platform
CN106502883B (en) The database synchronization method and system of client and server-side when automatic test
CN103077108B (en) A kind of method and system browser collapse being carried out to early warning
US20100218049A1 (en) Method of Creating Signatures for Classifying Program Failures
CN111045921A (en) Automatic interface testing method and device, computer equipment and storage medium
US11429574B2 (en) Computer system diagnostic log chain
CN108319550A (en) A kind of test system and test method
CN111651595A (en) Abnormal log processing method and device
CN105117345A (en) Interface testing method and device for application program
CN109828859A (en) Mobile terminal memory analysis method, apparatus, storage medium and electronic equipment
CN109408309A (en) The test method and device of multiple terminals
US20190094300A1 (en) Ensuring completeness of interface signal checking in functional verification
CN113342560A (en) Fault processing method, system, electronic equipment and storage medium
CN110769076B (en) DNS (Domain name System) testing method and system
CN101494654B (en) Method and apparatus for determining server accessibility
US7975177B2 (en) System and method for testing network performance
US10599797B1 (en) System, method, and computer program product for grouping one or more failures in a formal verification
CN113282496B (en) Automatic interface testing method, device, equipment and storage medium
CN116455794A (en) Micro service node debugging method, device, equipment and storage medium
CN110971478A (en) Pressure measurement method and device for cloud platform service performance and computing equipment
CN109446079A (en) A kind of browser fuzz testing method based on AST mutation
CN113392010A (en) Common component testing method and device, electronic equipment and storage medium

Legal Events

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