CN110309067A - Fixed scene method for testing pressure and device based on android system - Google Patents

Fixed scene method for testing pressure and device based on android system Download PDF

Info

Publication number
CN110309067A
CN110309067A CN201910516734.8A CN201910516734A CN110309067A CN 110309067 A CN110309067 A CN 110309067A CN 201910516734 A CN201910516734 A CN 201910516734A CN 110309067 A CN110309067 A CN 110309067A
Authority
CN
China
Prior art keywords
program
program code
data
pressure test
target program
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
Application number
CN201910516734.8A
Other languages
Chinese (zh)
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.)
Ji Qi (chengdu) Science And Technology Co Ltd
Original Assignee
Ji Qi (chengdu) Science And Technology 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 Ji Qi (chengdu) Science And Technology Co Ltd filed Critical Ji Qi (chengdu) Science And Technology Co Ltd
Priority to CN201910516734.8A priority Critical patent/CN110309067A/en
Publication of CN110309067A publication Critical patent/CN110309067A/en
Pending legal-status Critical Current

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
    • 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/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application provides a kind of fixed scene method for testing pressure based on android system and device, and method includes: the program code for obtaining the target program of different editions;Pressure test is carried out to the same functional module of the program code of the different editions respectively, and data analysis is carried out according to the result of the pressure test;Performance optimization is carried out to corresponding program code according to the result of data analysis;The application quickly, accurately and automatically can carry out pressure test to the target program of different editions, and carry out data analysis according to test result, and then the targetedly performance of optimization aim program.

Description

Fixed scene method for testing pressure and device based on android system
Technical field
This application involves data processing fields, and in particular to a kind of fixed scene method for testing pressure based on android system And device.
Background technique
Performance issue is to lead to one of the arch-criminal of the App customer churn in Android system, if user is using me App when encounter the problems such as such as page Caton, response speed are slow, fever is serious, flow electric quantity consumption is big, very It may will uninstall App.And the cost for often obtaining user is high, therefore the case where performance issue leads to customer churn It needs strongly to avoid.
Inventors have found that existing App measuring technology all can not completely realize automatic flow, including installation, login, Data acquisition and unloading, and existing measuring technology is all unable to satisfy based on fixed test scene, to different clients version Performance indicator compare, meanwhile, existing measuring technology or testing tool integrate relative difficulty, and can not cut Enter to actual software exploitation environment and carries out full-automatic test.
Summary of the invention
For the problems of the prior art, the application provides a kind of fixed scene method for testing pressure based on android system And device, can quickly, it is accurate and pressure test automatically carried out to the target program of different editions, and according to test result into The analysis of row data, and then the targetedly performance of optimization aim program.
At least one of to solve the above-mentioned problems, the application the following technical schemes are provided:
In a first aspect, the application provides a kind of fixed scene method for testing pressure based on android system, comprising:
Obtain the program code of the target program of different editions;
Pressure test is carried out respectively to the same functional module of the program code of the different editions, and according to the pressure The result of test carries out data analysis;
Performance optimization is carried out to corresponding program code according to the result of data analysis.
Further, after the program code of the different editions for obtaining target program, described to the difference The same functional module of the program code of version is carried out respectively after pressure test, comprising:
Judge whether the target program has been installed;
If so, the installed target program of unloading, and will be installed for the target program of installation.
It is further, described to judge whether the target program has been installed, comprising:
Judge version identifier in current mounted target program whether the version with the uninstalled target program Mark is consistent.
Further, the same functional module of the program code to the different editions carries out pressure test respectively, Include:
The functional module in the target program is run according to said program code;
Acquire the operation data in the functional module operational process, wherein the operation data includes: CPU operation number According to, at least one of thread operation data, memory operation data and running log data.
It is further, described that data analysis is carried out according to the result of the pressure test, comprising:
Corresponding curve fluction analysis is carried out according to the result of pressure test described at least one.
Further, the result according to data analysis carries out performance optimization to corresponding program code, comprising:
Exception Type corresponding to the result analyzed according to the data executes corresponding performance optimization operation.
Second aspect, the application provide a kind of fixed scene pressure test device based on android system, comprising:
Program obtains module, the program code of the target program for obtaining different editions;
Pressure test module, the same functional module for the program code to the different editions carry out pressure survey respectively Examination, and data analysis is carried out according to the result of the pressure test;
Performance optimization module, the result for being analyzed according to the data carry out performance optimization to corresponding program code.
Further, the pressure test module includes:
Functional module running unit, for running the function mould in the target program according to said program code Block;
Operation data acquisition unit, for acquiring the operation data in the functional module operational process, wherein the fortune Row data include: at least one of CPU operation data, thread operation data, memory operation data and running log data.
The third aspect, the application provides a kind of electronic equipment, including memory, processor and storage are on a memory and can The computer program run on a processor, it is based on android system solid described in realization when the processor executes described program The step of determining scene method for testing pressure.
Fourth aspect, the application provide a kind of computer readable storage medium, are stored thereon with computer program, the calculating The step of fixed scene method for testing pressure based on android system is realized when machine program is executed by processor.
As shown from the above technical solution, the application provide a kind of fixed scene method for testing pressure based on android system and Device, by obtain different editions target program program code after, automatically the target program of different editions is pacified Dress and starting carry out pressure test to the same functional module of the program code of the different editions respectively, and are tied according to test Fruit carries out data analysis, and then the targetedly performance of optimization aim program, reduces the coupling of test case and business scenario Conjunction property fast and accurately where orientation problem, can improve the availability and stability of project frame.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the application Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 be the embodiment of the present application in fixed scene method for testing pressure based on android system flow diagram it One;
Fig. 2 be the embodiment of the present application in fixed scene method for testing pressure based on android system flow diagram it Two;
Fig. 3 be the embodiment of the present application in fixed scene method for testing pressure based on android system flow diagram it Three;
Fig. 4 be the embodiment of the present application in fixed scene pressure test device based on android system structural schematic diagram it One;
Fig. 5 be the embodiment of the present application in fixed scene pressure test device based on android system structural schematic diagram it Two;
Fig. 6 is the structural schematic diagram of the electronic equipment in the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, technical solutions in the embodiments of the present application carries out clear, complete description, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
In view of existing App measuring technology all can not completely realize automatic flow, including installation, login, data Acquisition and unloading, and existing measuring technology is all unable to satisfy based on fixed test scene, to the property of different clients version Energy index compares, meanwhile, existing measuring technology or testing tool integrate relative difficulty, and can not be cut into Actual software is developed the problem of environment carries out full-automatic test, the application provide a kind of existing App measuring technology all without Method completely realizes automatic flow, including installation, login, data acquisition and unloading, and existing measuring technology can not all expire Foot based on fixed test scene, the performance indicator of different clients version is compared, meanwhile, existing measuring technology or Person's testing tool integrates relative difficulty, and can not be cut into actual software exploitation environment and carry out full-automatic test, After program code by the target program for obtaining different editions, automatically the target program of different editions is installed and opened It is dynamic, pressure test is carried out respectively to the same functional module of the program code of the different editions, and carry out according to test result Data analysis, and then the targetedly performance of optimization aim program, reduce the coupling of test case and business scenario, energy Where enough orientation problems fast and accurately, the availability and stability of project frame are improved.
In order to quick, accurate and automatically carry out pressure test to the target program of different editions, and according to test As a result data analysis is carried out, and then the targetedly performance of optimization aim program, the application provides a kind of based on Android system Fixed scene method for testing pressure embodiment, referring to Fig. 1, the fixed scene method for testing pressure based on android system Include specifically following content:
Step S101: the program code of the target program of different editions is obtained.
Step S102: pressure test, and root are carried out respectively to the same functional module of the program code of the different editions Data analysis is carried out according to the result of the pressure test.
Step S103: performance optimization is carried out to corresponding program code according to the result of data analysis.
As can be seen from the above description, fixed scene method for testing pressure based on android system provided by the embodiments of the present application, After the program code that the target program of different editions can be obtained, automatically the target program of different editions is installed and opened It is dynamic, pressure test is carried out respectively to the same functional module of the program code of the different editions, and carry out according to test result Data analysis, and then the targetedly performance of optimization aim program, reduce the coupling of test case and business scenario, energy Where enough orientation problems fast and accurately, the availability and stability of project frame are improved.
In order to improve the accuracy of test, duplicate ancient deed and old program are removed, in the application based on Android It can also specifically include to carry out target journey before the test begins in one embodiment of the fixed scene method for testing pressure of system The step of sequence duplicate checking, referring to fig. 2, which specifically includes following content:
Step S201: judge whether the target program has been installed.
Step S202: if so, the installed target program of unloading, and by for the target program installed into Row installation.
In order to improve the accuracy of test, duplicate ancient deed and old program are effectively removed, in the base of the application It can also specifically include the version according to target program in an embodiment of the fixed scene method for testing pressure of Android system This mark carries out the step of target program duplicate checking, which specifically includes following content:
Judge version identifier in current mounted target program whether the version with the uninstalled target program Mark is consistent.
In order to effectively carry out pressure test to the specified functional module in target program, in the application based on peace It can also specifically include to acquire the functional module running in one embodiment of the fixed scene method for testing pressure of tall and erect system The step of operation data generated in the process, referring to Fig. 3, which specifically includes following content:
Step S301: the functional module in the target program is run according to said program code.
Step S302: the operation data in the functional module operational process is acquired, wherein the operation data includes: At least one of CPU operation data, thread operation data, memory operation data and running log data.
In order to be carried out according to the operation data collected to the operating status of target program and the performance of each dimension Comprehensive data analysis, in an embodiment of the fixed scene method for testing pressure based on android system of the application, may be used also Specifically to include step the step of carrying out corresponding curve fluction analysis according to the result of pressure test described at least one Include specifically following content:
APP baseline version is applied in operation, obtains CPU, MEMRAY, and data are carried out chart after THREAD and HEAP data It draws, same operating procedure run tested APP version again, acquisition CPU, MEMRAY, after THREAD and HEAP data Also it is depicted as chart, can be clearly seen that the curve fluctuation of 2 each indexs of version in the graph, if the fluctuation of index Less, that is to say, the performance of bright tested APP and the basic indifference of baseline version do not need to optimize, if some index fluctuates It is widely different, illustrate that there are performance issues for tested APP index.
In order to according to data analyze as a result, the runnability of corresponding target program is promoted and is optimized, It can also specifically include basis in an embodiment of the fixed scene method for testing pressure based on android system of the application Exception Type corresponding to the result of the data analysis executes the step of corresponding performance optimization operates, which specifically wraps Contain following content:
, can be using adb shell top-m 100-n 1-s cpu when problematic for CPU index | grep packet name come Check that process occupies CPU higher, if CPU caused by process load is slow is excessively high;
When problematic for MEMARY index, memory service condition can be checked using dumpsys meminfo+ packet name, It whether is to lead to memory overflow since blob can not discharge;
It is problematic for THREAD number index, number of processes all under app can be checked using adb shell ps To be analyzed, if due to creating excessive useless thread;
It is problematic for HEAP index, analysis can be carried out using HEAP VIEWER tool using the heap of thread in APP Stack situation, if lead to problem since the space HEAP of distribution is unreasonable.
In order to quick, accurate and automatically carry out pressure test to the target program of different editions, and according to test As a result data analysis is carried out, and then the targetedly performance of optimization aim program, the application provides one kind for realizing described The fixed scene pressure based on android system of all or part of the content of fixed scene method for testing pressure based on android system The embodiment of force test device, referring to fig. 4, the fixed scene pressure test device based on android system specifically include just like Lower content:
Program obtains module 10, the program code of the target program for obtaining different editions.
Pressure test module 20, the same functional module for the program code to the different editions carry out pressure respectively Test, and data analysis is carried out according to the result of the pressure test.
Performance optimization module 30, it is excellent that the result for being analyzed according to the data carries out performance to corresponding program code Change.
As can be seen from the above description, fixed scene pressure test device based on android system provided by the embodiments of the present application, After the program code that the target program of different editions can be obtained, automatically the target program of different editions is installed and opened It is dynamic, pressure test is carried out respectively to the same functional module of the program code of the different editions, and carry out according to test result Data analysis, and then the targetedly performance of optimization aim program, reduce the coupling of test case and business scenario, energy Where enough orientation problems fast and accurately, the availability and stability of project frame are improved.
In order to effectively carry out pressure test to the specified functional module in target program, in the application based on peace In one embodiment of the fixed scene pressure test device of tall and erect system, referring to Fig. 5, the pressure test module 20 includes:
Functional module running unit 21, for running the function mould in the target program according to said program code Block.
Operation data acquisition unit 22, for acquiring the operation data in the functional module operational process, wherein described Operation data includes: at least one of CPU operation data, thread operation data, memory operation data and running log data.
In order to further explain this programme, the application also provides a kind of above-mentioned fixed scene based on android system of application Pressure test device realizes the specific application example of fixed scene method for testing pressure based on android system, it is specific comprising just like Lower content:
1, principle
1) App is installed first in equipment and is logged in;
2) module to be tested and collecting performance data are operated;
3) data store;
4) storing data anomaly analysis;
5) graph making is carried out according to storing data;
6) report generation.
2, design pattern
This technology realized using based on the part the SDK of Android bottom, therefore is realized with what language and to be all Can with, such as python, java.
3, technical characterstic
1) it is realized based on python, installation is easy, it is only necessary to python environment.
2) split hair environmental requirement is low.
3) it can be readily appreciated that upper hand is easy, is simple and efficient.
4) easy to maintain, internal processes stability is high, and controllability is high.
4, workflow
(1) CI is pre-processed
Jenkins pulls newest code, downloads beta version and benchmark version to specified directory, calls tool entrance
(2) tool ends end is handled
It checks and whether App is installed in equipment, be mounted with just to unload current App, App to be tested is installed, App is then started Initialization register is carried out, into module to be tested.
(3) equipment end is handled:
Data are carried out between disparate modules and acquire CPU, MEMARY, THREAD etc., are set according to test App process id crawl Standby running log.
(4) data processing:
Collected performance data and daily record data are stored, performance data is drawn a diagram, daily record data solution Analysis.
(5) test result is handled
Performance graph and log exception information etc. are generated into HTML report and related personnel is informed with lettergram mode.
It can be seen from the above, the application also has following technical effect that
1) performance difference of different editions App can be found in time, and notifies developer to optimize in time;
2) user is substantially increased to experience using the performance of App;
3) test report can be clear, enables the faster orientation problem of developer;
4) by tool and CI container perfect combination to together, realizing full link automatic operation;
5) it is write using python, upper hand is easy, and environmental structure is simple;
6) our pressure test scenes for fixing of very good solution, realize whole process automation well.
Embodiments herein also provides the fixed scene pressure based on android system that can be realized in above-described embodiment The specific embodiment of a kind of electronic equipment of Overall Steps in test method, referring to Fig. 6, the electronic equipment specifically include as Lower content:
Processor (processor) 601, memory (memory) 602, communication interface (Communications Interface) 603 and bus 604;
Wherein, the processor 601, memory 602, communication interface 603 complete mutual lead to by the bus 604 Letter;The communication interface 603 is for realizing fixed scene pressure test device based on android system, online operation system, visitor Information transmission between family end equipment and other participation mechanisms;
The processor 601 is used to call the computer program in the memory 602, and the processor executes the meter The Overall Steps in the fixed scene method for testing pressure based on android system in above-described embodiment, example are realized when calculation machine program Such as, following step is realized when the processor executes the computer program:
Step S101: the program code of the target program of different editions is obtained.
Step S102: pressure test, and root are carried out respectively to the same functional module of the program code of the different editions Data analysis is carried out according to the result of the pressure test.
Step S103: performance optimization is carried out to corresponding program code according to the result of data analysis.
As can be seen from the above description, electronic equipment provided by the embodiments of the present application, can obtain the target program of different editions Program code after, automatically the target program of different editions is installed and is started, to the program generation of the different editions The same functional module of code carries out pressure test respectively, and carries out data analysis according to test result, and then targetedly excellent The performance for changing target program, reduces the coupling of test case and business scenario, being capable of orientation problem institute fast and accurately Improving the availability and stability of project frame.
Embodiments herein also provides the fixed scene pressure based on android system that can be realized in above-described embodiment A kind of computer readable storage medium of Overall Steps in test method is stored with calculating on the computer readable storage medium Machine program, the computer program realize the fixed scene pressure based on android system in above-described embodiment when being executed by processor The Overall Steps of test method, for example, the processor realizes following step when executing the computer program:
Step S101: the program code of the target program of different editions is obtained.
Step S102: pressure test, and root are carried out respectively to the same functional module of the program code of the different editions Data analysis is carried out according to the result of the pressure test.
Step S103: performance optimization is carried out to corresponding program code according to the result of data analysis.
As can be seen from the above description, computer readable storage medium provided by the embodiments of the present application, can obtain different editions Target program program code after, automatically the target program of different editions is installed and is started, to the different versions The same functional module of this program code carries out pressure test respectively, and carries out data analysis, Jin Eryou according to test result The targetedly performance of optimization aim program reduces the coupling of test case and business scenario, can be fast and accurately Where orientation problem, the availability and stability of project frame are improved.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for hardware+ For program class embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side The part of method embodiment illustrates.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or noninvasive The labour for the property made may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous steps One of execution sequence mode, does not represent and unique executes sequence.It, can when device or client production in practice executes To be executed according to embodiment or method shown in the drawings sequence or parallel execute (such as parallel processor or multithreading The environment of processing).
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, vehicle-mounted human-computer interaction device, cellular phone, camera phone, smart phone, individual Digital assistants, media player, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or The combination of any equipment in these equipment of person.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program Product.Therefore, in terms of this specification embodiment can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.
This specification embodiment can describe in the general context of computer-executable instructions executed by a computer, Such as program module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, journey Sequence, object, component, data structure etc..This specification embodiment can also be practiced in a distributed computing environment, in these points Cloth calculates in environment, by executing task by the connected remote processing devices of communication network.In distributed computing ring In border, program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", The description of " specific example " or " some examples " etc. means specific features described in conjunction with this embodiment or example, structure, material Or feature is contained at least one embodiment or example of this specification embodiment.In the present specification, to above-mentioned term Schematic representation be necessarily directed to identical embodiment or example.Moreover, description specific features, structure, material or Person's feature may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, in not conflicting feelings Under condition, those skilled in the art by different embodiments or examples described in this specification and different embodiment or can show The feature of example is combined.
The foregoing is merely the embodiments of this specification, are not limited to this specification embodiment.For ability For field technique personnel, this specification embodiment can have various modifications and variations.It is all this specification embodiment spirit and Any modification, equivalent replacement, improvement and so within principle should be included in the scope of the claims of this specification embodiment Within.

Claims (10)

1. a kind of fixed scene method for testing pressure based on android system characterized by comprising
Obtain the program code of the target program of different editions;
Pressure test is carried out respectively to the same functional module of the program code of the different editions, and according to the pressure test Result carry out data analysis;
Performance optimization is carried out to corresponding program code according to the result of data analysis.
2. method for testing pressure according to claim 1, which is characterized in that in the different editions for obtaining target program Program code after, the same functional module of the program code to the different editions carry out respectively pressure test it Afterwards, comprising:
Judge whether the target program has been installed;
If so, the installed target program of unloading, and will be installed for the target program of installation.
3. method for testing pressure according to claim 2, which is characterized in that described to judge the target program whether Installation, comprising:
Judge version identifier in current mounted target program whether the version identifier with the uninstalled target program Unanimously.
4. method for testing pressure according to claim 1, which is characterized in that the program code to the different editions Same functional module carry out pressure test respectively, comprising:
The functional module in the target program is run according to said program code;
Acquire the operation data in the functional module operational process, wherein the operation data includes: CPU operation data, line At least one of journey operation data, memory operation data and running log data.
5. method for testing pressure according to claim 1, which is characterized in that the result according to the pressure test into The analysis of row data, comprising:
Corresponding curve fluction analysis is carried out according to the result of pressure test described at least one.
6. method for testing pressure according to claim 1, which is characterized in that the result pair analyzed according to the data Corresponding program code carries out performance optimization, comprising:
Exception Type corresponding to the result analyzed according to the data executes corresponding performance optimization operation.
7. a kind of fixed scene pressure test device based on android system characterized by comprising
Program obtains module, the program code of the target program for obtaining different editions;
Pressure test module, the same functional module for the program code to the different editions carry out pressure test respectively, And data analysis is carried out according to the result of the pressure test;
Performance optimization module, the result for being analyzed according to the data carry out performance optimization to corresponding program code.
8. pressure test device according to claim 7, which is characterized in that the pressure test module includes:
Functional module running unit, for running the functional module in the target program according to said program code;
Operation data acquisition unit, for acquiring the operation data in the functional module operational process, wherein the operation number According to including: at least one of CPU operation data, thread operation data, memory operation data and running log data.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor is realized as claimed in any one of claims 1 to 6 based on peace when executing described program The step of fixed scene method for testing pressure of tall and erect system.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Processor realizes fixed scene method for testing pressure based on android system as claimed in any one of claims 1 to 6 when executing Step.
CN201910516734.8A 2019-06-14 2019-06-14 Fixed scene method for testing pressure and device based on android system Pending CN110309067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910516734.8A CN110309067A (en) 2019-06-14 2019-06-14 Fixed scene method for testing pressure and device based on android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910516734.8A CN110309067A (en) 2019-06-14 2019-06-14 Fixed scene method for testing pressure and device based on android system

Publications (1)

Publication Number Publication Date
CN110309067A true CN110309067A (en) 2019-10-08

Family

ID=68077236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910516734.8A Pending CN110309067A (en) 2019-06-14 2019-06-14 Fixed scene method for testing pressure and device based on android system

Country Status (1)

Country Link
CN (1) CN110309067A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209194A (en) * 2019-12-30 2020-05-29 杭州安恒信息技术股份有限公司 Test case design method for discovering memory leakage bug
CN111797015A (en) * 2020-06-30 2020-10-20 中国工商银行股份有限公司 Testing method and device based on dynamic byte codes
CN113468074A (en) * 2021-08-09 2021-10-01 北京映客芝士网络科技有限公司 Application program version comparison monitoring method, device, medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102560A (en) * 2013-04-07 2014-10-15 深圳市腾讯计算机***有限公司 Method and device for testing system performance
CN107179919A (en) * 2016-03-09 2017-09-19 广州优视网络科技有限公司 Source code management system, application management method and device
CN107451058A (en) * 2017-07-31 2017-12-08 北京云测信息技术有限公司 A kind of software development methodology and device
CN109739762A (en) * 2018-12-29 2019-05-10 微梦创科网络科技(中国)有限公司 A kind of performance test methods and device of application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102560A (en) * 2013-04-07 2014-10-15 深圳市腾讯计算机***有限公司 Method and device for testing system performance
CN107179919A (en) * 2016-03-09 2017-09-19 广州优视网络科技有限公司 Source code management system, application management method and device
CN107451058A (en) * 2017-07-31 2017-12-08 北京云测信息技术有限公司 A kind of software development methodology and device
CN109739762A (en) * 2018-12-29 2019-05-10 微梦创科网络科技(中国)有限公司 A kind of performance test methods and device of application program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209194A (en) * 2019-12-30 2020-05-29 杭州安恒信息技术股份有限公司 Test case design method for discovering memory leakage bug
CN111209194B (en) * 2019-12-30 2023-12-19 杭州安恒信息技术股份有限公司 Test case design method for finding memory leakage bug
CN111797015A (en) * 2020-06-30 2020-10-20 中国工商银行股份有限公司 Testing method and device based on dynamic byte codes
CN111797015B (en) * 2020-06-30 2024-02-09 中国工商银行股份有限公司 Dynamic byte code based test method and device
CN113468074A (en) * 2021-08-09 2021-10-01 北京映客芝士网络科技有限公司 Application program version comparison monitoring method, device, medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10346292B2 (en) Software component recommendation based on multiple trace runs
US9436540B2 (en) Automated diagnosis of software crashes
US9645838B2 (en) Automatic discovery of a JavaScript API
CN110309067A (en) Fixed scene method for testing pressure and device based on android system
US11442765B1 (en) Identifying dependencies for processes for automated containerization
US8219856B2 (en) Memory growth detection
US20200110687A1 (en) Differential resource profiling with actionable diagnostics
US20170060968A1 (en) Compiling extract, transform, and load job test data cases
CN110795357A (en) Program monitoring method and device
US10592392B2 (en) System and method for predictive performance analysis via dynamic benchmark generation
US20130152042A1 (en) Automated and heuristically managed solution to quantify cpu and path length cost of instructions added, changed or removed by a service team
US10740166B2 (en) Thread based dynamic data collection
US9697102B2 (en) Compare concurrent threads executions
CN111367768A (en) Method and device for monitoring function response time of program
US11960918B2 (en) Creating product orchestration engines
US11599456B2 (en) Automated validation of a rest application programming interface
Seybold et al. The impact of the storage tier: A baseline performance analysis of containerized dbms
WO2018022303A1 (en) Capturing commands in a multi-engine graphics processing unit
US20110246967A1 (en) Methods and systems for automation framework extensibility
CN116483888A (en) Program evaluation method and device, electronic equipment and computer readable storage medium
CN115757888A (en) Method, storage medium and device for generating code call relation chain view
US20100050162A1 (en) Automatically detecting non-modifying transforms when profiling source code
CN113360182B (en) Method and apparatus for system performance diagnostics
US20230078091A1 (en) Method and system for performance management of distributed software applications
CN111444057A (en) Page performance data acquisition method and device and computing equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191008

RJ01 Rejection of invention patent application after publication