CN109032919A - APP flux monitoring method, system, computer equipment and storage medium - Google Patents
APP flux monitoring method, system, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109032919A CN109032919A CN201810548247.5A CN201810548247A CN109032919A CN 109032919 A CN109032919 A CN 109032919A CN 201810548247 A CN201810548247 A CN 201810548247A CN 109032919 A CN109032919 A CN 109032919A
- Authority
- CN
- China
- Prior art keywords
- app
- file
- test result
- functional module
- tool
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 89
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000004907 flux Effects 0.000 title claims abstract description 34
- 238000012360 testing method Methods 0.000 claims abstract description 182
- 238000002360 preparation method Methods 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims description 46
- 238000007405 data analysis Methods 0.000 claims description 32
- 238000004458 analytical method Methods 0.000 claims description 24
- 238000001514 detection method Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 10
- 239000000284 extract Substances 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 230000001755 vocal effect Effects 0.000 description 3
- 238000013075 data extraction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 238000010406 interfacial reaction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to APP flux monitoring method, system, computer equipment and storage mediums, which comprises by either automatically or manually mode, all functional modules of APP to be detected is carried out preparation after marking one by one and generate configuration file;Is obtained by test result and is stored into cache file according to the functional module title one by onechecking in the configuration file by the APP to be detected using testing tool;Cache file is monitored in real time using monitoring tools, and is transferred in test result file after the test result having been written into the cache file is extracted.Consumed flow is larger in accurate positionin APP and responds the functional module taken a long time and request position, positions and solves the problems, such as convenient for technical staff;Interpretation of result script can be started after obtaining data, Study document data generate result report, optimize in time convenient for technical staff and solve the problems, such as.
Description
Technical field
The present invention relates to software testing technology field, in particular to APP flux monitoring method, system, computer equipment and
Storage medium.
Background technique
The mobile terminal APP of mainstream operates in Android (common name " Android " system), iOS (common name " apple " system) at present
And three kinds of mobile terminal operating systems that versatility is higher and coverage rate is wide of Windows Phone (common name " WP " system)
In.Wherein iOS and Windows Phone currently belongs to close source environment, therefore runs on the tool of the APP on the two operating systems
There is higher-security.Android is a kind of open source operating system known to the public, technology door within a very long time
Sill are relatively low, and exploitation freedom degree is larger, but also bring the weaker problem of safety for the above two relatively.With regard to typical case
Client layer experience for, there are the following problems by the APP at the end Android:
1, operation fluency is low;
2, low-response when starting;
3, interfacial reaction is slow or Caton;
4, internet connection speed is unstable;
5, webpage load and display speed are slower;
6, the consumption of mobile data network flow is abnormal.
Based on these situations, so that the mobile terminal operating-system resources of user and data network flux resource are excessively disappeared
Consumption, reduces the user experience of APP, brings loss directly or indirectly to APP application developer and service supplier.To change
It is apt to this kind of APP application experience, needs to carry out APP before being published to user functional test and improvement.It realizes this purpose, puts
In front the problem of, is: how the performance of a APP of validity test, including included to it function in cold and hot starting plus
The test of duration, resource consumption situation, flow Expenditure Levels, power consumption situation etc. is carried, and can intuitively be got desired
Test result, in order to provide to exploitation debugging and maintenance technical staff reference.
The client performance testing scheme or tool of mainstream have problems in that at present: due to the operation system of APP operation
The kernel of system is mostly Unix-like type, and the end android is directly based upon linux system exploitation, therefore testing tool counts this
When a little performance parameters, it is based on process ID statistics, the performance curve for causing test result finally to be drawn is only used for marking
Some APP is known in the overall performance of specific time period, can not but know the source of these performance datas, including which from the APP
A little interfaces, or come from which functional module, so as to cause technical staff can not precise positioning cause flow to consume excessively, resource
The problem of excessively occupying source can not solve the problems, such as to be effective and optimize program code and provide reference frame.
Summary of the invention
Based on this, it is necessary to be directed to when carrying out APP traffic monitoring, since the environment of APP operation is based on linux system
These performance parameters are counted using testing tool to go to count based on process ID, can not know which interface, which the function mould of APP
Block consumed flow is more, takes a long time, and provides APP flux monitoring method, system, computer equipment and storage medium.
A kind of APP flux monitoring method, the APP flux monitoring method, the specific steps are as follows:
The all functional modules of APP to be detected are subjected to preparation after marking one by one and generate configuration file;The configuration file
The corresponding label of each functional module name and function module title for being included for storing the APP to be detected, according to
The rule of functional module title correspondence markings realizes that the corresponding label of functional module title forms one-to-one relationship;
Using testing tool to the APP to be detected according to the functional module title one by onechecking in the configuration file,
It obtains test result and is stored into cache file, the testing tool is the automatic test with traversal detection function
Tool;
Cache file is monitored in real time using monitoring tools, and the test result in the cache file will be had been written into
It is transferred in test result file after extraction, the monitoring tools are with the tool for monitoring and extracting test result in real time;
The test result file is read, using data analysis tool to the data in the test result file according to pre-
The analysis rule first set is analyzed, and is exported according to preset output form into interpretation of result file, the data point
Analysis tool is the tool with data analysis and chart data output function.
The corresponding label of the functional module title includes English alphabet or English alphabet in one of the embodiments,
With the combination of Arabic numerals;
When the entitled Chinese of functional module, the rule of the functional module title correspondence markings includes: the function mould
The combination producing one of the first letter of pinyin of each middle text identifies label in block title, and initial is unified for uppercase format;When
When the mark marks identical with the mark of other function module title label, then additional character is subject to after mark label
It distinguishes;
When the entitled English of functional module, the rule of the corresponding label of the functional module title includes: the function
The initial combination producing one of each independent English word identifies label in module title, and initial is unified for uppercase format;
When mark label is identical with the mark of other function module title label, then additional character adds after mark label
To distinguish.
It is described in one of the embodiments, to utilize detection instrument to the APP to be detected according in the configuration file
Functional module title one by onechecking, obtain test result and stored and include: into cache file
By testing tool to the APP to be detected according to functional module title listed in the configuration file according to head
The successive sequence of letter is tested item by item, test result is obtained, and stored into cache file, in the test result
Result data and label of the functional module in configuration file of the APP to be detected correspond.
It is described in one of the embodiments, that cache file is monitored in real time using monitoring tools, and will have been written into
Test result in the cache file is transferred in test result file after extracting
The cache file is monitored in real time using monitoring tools, and in real time according to the mark in the configuration file
Remember sequential extraction procedures test result data, cooperates its corresponding label in configuration file test result data after extraction operation success
In be stored in test result file together after URL when transferring corresponding functional module title and HTTPS request corresponding thereto,
Corresponding error message is written when failing in extraction operation in the test result file, and continues to execute remaining test result
It extracts, until test item is fully completed or is ended until the test period of setting.
In one of the embodiments, it is described using data analysis tool to the data in the test result file according to
Preset analysis rule is analyzed, and is exported according to preset output form and included: into interpretation of result file
Using data analysis tool, the test result file is analyzed according to analysis rule, and result will be analyzed
It exports according to preset output form into interpretation of result file, the interpretation of result file is the APP flux monitoring method
Implementing result file, reference for improving APP as maintenance personnel be basic.
The analysis rule includes: in one of the embodiments,
A selected functional module is objects of statistics to count its occupied resource, including data traffic consumption summation and
The summation of response time-consuming;
The call method of a selected request of data is objects of statistics to count data total consumed by the request of data
Flow and total response are time-consuming.
The output form of the interpretation of result file includes text report form, chart report in one of the embodiments,
Announcement form or picture and text report.
Based on the same technical idea, the present invention also provides a kind of APP flux monitoring system, APP traffic monitoring systems
System includes marking unit, test cell, monitoring unit and analytical unit;
The marking unit generates configuration for all functional modules of APP to be detected to be carried out preparation after marking one by one
File, the configuration file is for storing each functional module name and function module name that the APP to be detected is included
Claim corresponding label, according to the rule of functional module title correspondence markings, realizes the corresponding label shape of functional module title
At one-to-one relationship;
The test cell, for utilizing testing tool to the APP to be detected according to the function in the configuration file
Module title one by onechecking obtains test result and is stored into cache file, and the testing tool is that have traversal inspection
The automated test tool of brake;
The monitoring unit for being monitored in real time using monitoring tools to cache file, and will have been written into described slow
It deposits after the test result in file is extracted and is transferred in test result file, the monitoring tools are with real time monitoring and to extract
The tool of test result;
The analytical unit, for reading the test result file, using data analysis tool to the test result
Data in file are analyzed according to preset analysis rule, and are exported according to preset output form to interpretation of result
In file;The data analysis tool is the tool with data analysis and chart data output function.
Based on the same technical idea, described the present invention also provides a kind of computer equipment, including memory and processor
Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor, so that the place
Manage the step of device executes above-mentioned APP flux monitoring method.
Based on the same technical idea, the present invention also provides a kind of computer-readable instruction storage medium, the computers
Computer-readable instruction is stored on readable instruction storage medium, the computer-readable instruction is held by one or more processors
When row, so that one or more processors are executed such as the step of above-mentioned APP flux monitoring method.
Above-mentioned APP flux monitoring method, system, computer equipment and storage medium will by either automatically or manually mode
The all functional modules of APP to be detected carry out preparation after marking one by one and generate configuration file;The configuration file is for storing institute
The corresponding label of each functional module name and function module title that APP to be detected is included is stated, according to functional module name
Claim the rule of correspondence markings, realizes that the corresponding label of functional module title forms one to one relation;Using testing tool to institute
APP to be detected is stated according to the functional module title one by onechecking in the configuration file, obtain test result and stored to
In cache file;Wherein, the testing tool is the automated test tool with traversal detection function;Real time monitoring caching text
Part simultaneously obtains test result file: being monitored in real time using monitoring tools to cache file, and will have been written into the caching text
Test result in part is transferred in test result file after extracting;The monitoring tools are with real time monitoring and to extract test
As a result tool;Analysis test result file simultaneously exports interpretation of result file: reading the test result file, utilizes data point
Analysis tool analyzes data therein according to preset rule, and exports interpretation of result according to preset output form
File;The data analysis tool is the tool with data analysis and chart data output function.Compared with prior art, originally
The advantageous effects of technical solution are that consumed flow is larger in accurate positionin APP and responds the function mould taken a long time
Block and request position, solve the problems, such as convenient for technical staff's positioning;Interpretation of result script, Study document number can be started after obtaining data
According to generation result report optimizes in time convenient for technical staff and solves the problems, such as.
Detailed description of the invention
Fig. 1 is a kind of flow chart of APP flux monitoring method in one embodiment of the invention;
Fig. 2 is a kind of APP traffic monitoring execution flow chart in one embodiment of the invention;
Fig. 3 is a kind of schematic diagram of APP flux monitoring system in one embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of APP flux monitoring method, the APP flux monitoring method can
To include the following steps:
Step S1: carrying out preparation after marking one by one for all functional modules of APP to be detected and generate configuration file, described to match
File is set for storing the corresponding mark of each functional module name and function module title that the APP to be detected is included
It is a pair of to realize that the label of functional module title corresponding thereto forms one according to the rule of functional module title correspondence markings for note
The relationship answered;
Step S2: using testing tool to the APP to be detected according to the functional module title in the configuration file by
Detection, obtain test result simultaneously stored into cache file, the testing tool be with traversal detection function from
Dynamicization testing tool;
Step S3: implementing monitoring is carried out to cache file using monitoring tools, and will be had been written into the cache file
Test result is transferred in test result file after extracting, and the monitoring tools are with real time monitoring and extract test result
Tool;
Step S4: reading the test result file, using data analysis tool to data therein according to presetting
Rule analyzed, and export according to preset output form into interpretation of result file, the data analysis tool is tool
There is the tool of data analysis and chart data output function.
Fig. 2 is a kind of APP traffic monitoring execution flow chart in one embodiment of the invention, as shown in Fig. 2, by be detected
Preparation generates configuration file after all functional modules of APP carry out Care Mark;The APP to be detected is pressed using testing tool
According to the functional module title one by onechecking in the configuration file, obtains test result and stored into cache file;Benefit
Cache file is monitored in real time with monitoring tools, and by the test result having been written into the cache file extract after unloading
Into test result file;The test result file is read, using data analysis tool to data therein according to setting in advance
Fixed rule is analyzed, and is exported according to preset output form into interpretation of result file.Specific step is as follows:
Step S101: a selected APP as APP to be detected, and all functional modules in the APP to be detected are all known
And determine title;For example, functional module is " business " and " homepage ".
Step S102: according to the rule of functional module title correspondence markings, realize functional module title corresponding thereto
Label forms one-to-one relationship, to generate label corresponding with all functional modules;Meanwhile passing through either automatically or manually side
Functional module in APP to be detected is carried out preparation after marking one by one and generates the function mould for being included with the APP to be detected by formula
The corresponding configuration file of block;
The corresponding group marked including English alphabet or English alphabet and Arabic numerals of the functional module title
It closes;
When the entitled Chinese of functional module, the rule of the functional module title correspondence markings includes: the function mould
The combination producing one of the first letter of pinyin of each middle text identifies label in block title, and initial is unified for uppercase format;When
When the mark marks identical with the mark of other function module title label, then additional character is subject to after mark label
It distinguishes;For example, functional module entitled " business " and " homepage ", then corresponding mark be respectively labeled as " SY1 " and "
SY2″。
When the entitled English of functional module, the rule of the corresponding label of the functional module title includes: the function
The initial combination producing one of each independent English word identifies label in module title, and initial is unified for uppercase format;
When mark label is identical with the mark of other function module title label, then additional character adds after mark label
To distinguish;For example, functional module is respectively " MainPage " and " MonitorPlan ", then be respectively labeled as " MP1 ", "
MP2″。
The manual mode generates configuration file, that is, indicates the functional module that APP to be detected is traversed by manual type, and
Label is generated according to the rule of the functional module title correspondence markings to any functional module title;
The operation rules that the automated manner generates configuration file includes: that the operation rules is generated including an automatic label
Script automatically generates corresponding label after traversing APP functional module name list, thus instead of manually generated mode,
When functional module quantity is more or duplication of name project is more, it can effectively prevent marking generation error caused by artificially slipping
The problem of;Wherein, the automatic label generates script, available script development language include: python, vbs, JS, c/c#,
shell。
In one embodiment, an APP to be detected is selected as test object comprising homepage, financing page and insurance three
Functional module, either manually or automatically mode be each functional module defined label after generate configuration file, the configuration
File format such as the following table 1:
Module | Label |
Homepage | SY |
Financing page | LC |
Insurance | BX |
Table 1
Step S201: using testing tool to the APP to be detected according to the functional module title in the configuration file
One by onechecking obtains test result, and the testing tool is the automatic detection tool with traversal detection function, including automatic
The tool for traversing UI interface element, is defined as traversal method;
Step S202: the test result is stored into cache file, result data and institute in the test result
Label of the functional module of APP to be detected in configuration file is stated to correspond;
In one embodiment, selecting testing tool is traversal method, and is named as UIAutoTravele, for leading to
Crossing each of click configuration file marks corresponding function to obtain the corresponding test item data of the functional module,
Network linking address, the method name of HTTPS request, uplink traffic consumption, downlink traffic consumption are directed toward including HTTPS request and are answered
The mark label of the data answering total time-consuming, and will acquire corresponding thereto is written together in the cache file;Wherein, described
Writing mode is named as WriteExcel.
Step S301: the cache file is monitored in real time using monitoring tools, and in real time according to the configuration
Flag sequence in file extracts test result data, and the monitoring tools are with the work for monitoring and extracting test result in real time
Tool, including data monitoring tool;
The data field for including in the cache file have label, test item 1 ..., test item n, n is that non-zero is natural
Number;For example, the test item 1 is that HTTPS request is directed toward network linking address;The test item 2 is the HTTPS request
The corresponding path of the method for calling;The test item 3 is uplink traffic consumption;The test item 4 is downlink traffic consumption;
The test item 5 is response total time-consuming.
Step S302: when extracting test result data using monitoring tools, after the success of test result data extraction operation,
Its corresponding label is cooperated to transfer in configuration file corresponding functional module title and corresponding thereto test result data
HTTPS request when URL after store test result file together;When the failure of test result data extraction operation, described
(the preset mistake generation in the generally described test result exception handling of the corresponding error message of write-in in test result file
Code), and the extraction of remaining test result is continued to execute, until test item is fully completed or is cut until the test period of setting
Only, for maintenance personnel with reference to other data monitoring tools cooperation test process is chosen after the error message, a completion is complete
Test process.
The data field that the test result file includes has: functional module title, test item 1 ..., test item n,
N is non-zero natural number;For example, the test item 1 is that HTTPS request is directed toward network linking address;The test item 2 is institute
State the corresponding path of method of HTTPS request calling;The test item 3 is uplink traffic consumption;Under the test item 4 is
The consumption of row flow;The test item 5 is response total time-consuming.
In one embodiment, the data monitoring tool is named as DATAMonitor, for according to the configuration file
In label the cache file is monitored;DATAMonitor method is monitored the data grabbed after file to pass through
Test result file is written in WriteExcel method.
Step S401: the test result file is read, and using data analysis tool in the test result file
Data analyzed according to preset rule, obtain analysis as a result, the data analysis tool is with data analysis
With the tool of chart data output function;
The analysis rule includes: rule one: a selected functional module is objects of statistics to count its occupied resource,
Summation and response total time-consuming including data traffic consumption;Rule two: the call method of a selected request of data is objects of statistics
It is time-consuming to count data traffic total consumed by the request and total response.
In one embodiment, the analysis tool is named as ResultAL, reads the test result file, is utilized
ResultAL analyzes the data in the test result file according to described regular one and described regular two, obtains analysis
As a result.
Step S402: based on the analysis results, interpretation of result file is exported according to preset output form;The interpretation of result
The output form of file includes: text report, chart report or picture and text report;
The text report, i.e., only with the text file of verbal description analysis result, its advantage is that simple and clear, opening side
Formula is low to the dependency degree of tool, and data are presented intuitively, the disadvantage is that when test module data are more, and mutual compare of needs is,
It is readable weaker;
The chart report, that is, include the electronic form file of verbal description content and chart content, in conjunction with text report
Accuse and the comprehensive advantage of chart report, can either be very clear to each test item, and can global alignment as a result, fixed rapidly
Position was arrived where the problem of resource consumption;Chart mode include pie chart, line chart, column diagram, bar chart, area-graph, in scatter plot
Any or at least two group be combined into presentation mode;
The picture and text report includes the electronic form file of verbal description content and chart content, in conjunction with text report
Accuse and the comprehensive advantage of chart report, can either data to each test item it is very clear, and can Comprehensive Correlation as a result,
Where the problem of rapid locating resource consumption.
In one embodiment, the output form is named as ResultOutput, based on the analysis results, according to text report
The output form of announcement exports interpretation of result file, and the output interpretation of result file is as shown in table 2;
Table 2
It is reported according to text shown in table 2, the time-consuming most and flow consumption most serious of response can be navigated to rapidly
It is BX module, the path of call method is toa-mgw/rest/gateway/insurance.do, according to the information of acquisition,
The functional module can be targetedly modified, to finally improve the user experience of APP.
Based on the same technical idea, the present invention also provides a kind of APP flux monitoring systems, as shown in figure 3, described
APP flux monitoring system includes marking unit, test cell, monitoring unit and analytical unit;
The marking unit generates configuration for all functional modules of APP to be detected to be carried out preparation after marking one by one
File, the configuration file is for storing each functional module name and function module name that the APP to be detected is included
Claim corresponding label, according to the rule of functional module title correspondence markings, realizes the corresponding label shape of functional module title
At one-to-one relationship;
The test cell, for utilizing testing tool to the APP to be detected according to the function in the configuration file
Module title one by onechecking obtains test result and is stored into cache file, and the testing tool is that have traversal inspection
The automated test tool of brake;
The monitoring unit for being monitored in real time using monitoring tools to cache file, and will have been written into described slow
It deposits after the test result in file is extracted and is transferred in test result file, the monitoring tools are with real time monitoring and to extract
The tool of test result;
The analytical unit, for reading the test result file, using data analysis tool to the test result
Data in file are analyzed according to preset analysis rule, and are exported according to preset output form to interpretation of result
In file, the data analysis tool is the tool with data analysis and chart data output function.
Based on the same technical idea, described the present invention also provides a kind of computer equipment, including memory and processor
Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor, so that processor
The step of executing APP flux monitoring method, the specific steps of the APP flux monitoring method include: by either automatically or manually
The all functional modules of APP to be detected are carried out preparation after marking one by one and generate configuration file by mode;The configuration file is used for
The corresponding label of each functional module name and function module title that the APP to be detected is included is stored, according to function
The rule of module title correspondence markings realizes that the corresponding label of functional module title forms one to one relation;Utilize test work
Tool to the APP to be detected according to the functional module title one by onechecking in the configuration file, obtain test result and by its
It stores into cache file;Wherein, the testing tool is the automated test tool with traversal detection function;Real time monitoring
Cache file simultaneously obtains test result file: being monitored in real time, and will had been written into described to cache file using monitoring tools
Test result in cache file is transferred in test result file after extracting;The monitoring tools are with real time monitoring and to mention
Take the tool of test result;Analysis test result file simultaneously exports interpretation of result file: reading the test result file, utilizes
Data analysis tool analyzes data therein according to preset rule, and according to preset output form export to
In interpretation of result file;The data analysis tool is the tool with data analysis and chart data output function.
Based on the same technical idea, the present invention also provides a kind of storage medium for being stored with computer-readable instruction, institutes
When stating computer-readable instruction and being executed by one or more processors, so that one or more processors execute APP traffic monitoring
The step of method, the specific steps of the APP flux monitoring method include: by either automatically or manually mode, by APP to be detected
All functional modules carry out one by one mark after preparation generate configuration file;The configuration file is described to be detected for storing
The corresponding label of each functional module name and function module title that APP is included is marked according to functional module title is corresponding
The rule of note realizes that the corresponding label of functional module title forms one to one relation;Using testing tool to described to be detected
APP obtains test result and is stored to cache file according to the functional module title one by onechecking in the configuration file
In;Wherein, the testing tool is the automated test tool with traversal detection function;Real time monitoring cache file simultaneously obtains
Test result file: monitoring cache file in real time using monitoring tools, and will have been written into the survey in the cache file
Test result is transferred in test result file after extracting;The monitoring tools are with the work for monitoring and extracting test result in real time
Tool;Analysis test result file simultaneously exports interpretation of result file: reading the test result file, utilizes data analysis tool pair
Data therein are analyzed according to preset rule, and are exported according to preset output form to interpretation of result file
In;The data analysis tool is the tool with data analysis and chart data output function.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between
In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be
The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note
Recall body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of APP flux monitoring method, which comprises the steps of:
The all functional modules of APP to be detected are subjected to preparation after marking one by one and generate configuration file, the configuration file is used for
The corresponding label of each functional module name and function module title that the APP to be detected is included is stored, according to function
The rule of module title correspondence markings realizes that the corresponding label of functional module title forms one-to-one relationship;
The APP to be detected is obtained according to the functional module title one by onechecking in the configuration file using testing tool
Test result is simultaneously stored into cache file, and the testing tool is the automatic test work with traversal detection function
Tool;
Cache file is monitored in real time using monitoring tools, and the test result having been written into the cache file is extracted
After be transferred in test result file, the monitoring tools be with monitor in real time and extract test result tool;
The test result file is read, using data analysis tool to the data in the test result file according to setting in advance
Fixed analysis rule is analyzed, and is exported according to preset output form into interpretation of result file, and the data analyze work
Tool is the tool with data analysis and chart data output function.
2. a kind of APP flux monitoring method according to claim 1, which is characterized in that the functional module title is corresponding
Label include English alphabet or English alphabet and Arabic numerals combination;
When the entitled Chinese of functional module, the rule of the functional module title correspondence markings includes: the functional module name
The combination producing one of the first letter of pinyin of each middle text identifies label in title, and initial is unified for uppercase format;When described
When mark label is identical with the mark of other function module title label, then additional character is subject to area after mark label
Point;
When the entitled English of functional module, the rule of the corresponding label of the functional module title includes: the functional module
The initial combination producing one of each independent English word identifies label in title, and initial is unified for uppercase format;Work as institute
State mark label it is identical with the mark of other function module title label when, then the mark mark after additional character be subject to area
Point.
3. a kind of APP flux monitoring method according to claim 1, which is characterized in that described to utilize testing tool to institute
APP to be detected is stated according to the functional module title one by onechecking in the configuration file, obtain test result and stored to
Include: in cache file
By testing tool to the APP to be detected according to functional module title listed in the configuration file according to initial
Successive sequence test item by item, obtain test result, and stored into cache file, the number of results in the test result
It is corresponded according to label of the functional module with the APP to be detected in configuration file.
4. a kind of APP flux monitoring method according to claim 1, which is characterized in that described to utilize monitoring tools to slow
It deposits file to be monitored in real time, and is transferred to test result file after the test result having been written into the cache file is extracted
In include:
The cache file is monitored in real time using monitoring tools, and in real time according to the label sequence in the configuration file
Column extract test result data, cooperate its corresponding label to adjust in configuration file test result data after extraction operation success
It is stored in test result file together after taking URL when corresponding functional module title and HTTPS request corresponding thereto, extracts
Corresponding error message is written when operation failure in the test result file, and continues to execute mentioning for remaining test result
It takes, until test item is fully completed or is ended until the test period of setting.
5. a kind of APP flux monitoring method according to claim 1, which is characterized in that described to utilize data analysis tool
Data in the test result file are analyzed according to preset analysis rule, and according to preset output form
It exports and includes: into interpretation of result file
Using data analysis tool, the test result file is analyzed according to analysis rule, and will analysis result according to
Preset output form is exported to an interpretation of result file, and the interpretation of result file is holding for the APP flux monitoring method
Row destination file, for improving the reference basis of APP as maintenance personnel.
6. a kind of APP flux monitoring method according to claim 1, which is characterized in that the analysis rule includes:
A selected functional module is objects of statistics to count its occupied resource, including data traffic consumption summation and response
Time-consuming summation;
The call method of a selected request of data is objects of statistics to count data traffic total consumed by the request of data
It is time-consuming with total response.
7. a kind of APP flux monitoring method according to claim 1, which is characterized in that the interpretation of result file it is defeated
Form includes text report, chart report or picture and text report out.
8. a kind of APP flux monitoring system, which is characterized in that the APP flux monitoring system includes marking unit, test list
Member, monitoring unit and analytical unit;
The marking unit generates configuration file for all functional modules of APP to be detected to be carried out preparation after marking one by one,
It is corresponding that the configuration file is used to store each functional module name and function module title that the APP to be detected is included
Label realize that the corresponding label of functional module title is formed one by one according to the rule of functional module title correspondence markings
Corresponding relationship;
The test cell, for utilizing testing tool to the APP to be detected according to the functional module in the configuration file
Title one by onechecking obtains test result and is stored into cache file, and the testing tool is that have traversal detection function
The automated test tool of energy;
The monitoring unit for monitoring in real time using monitoring tools to cache file, and will have been written into the caching text
Test result in part is transferred in test result file after extracting, and the monitoring tools are with real time monitoring and to extract test
As a result tool;
The analytical unit, for reading the test result file, using data analysis tool to the test result file
In data analyzed according to preset analysis rule, and export according to preset output form to interpretation of result file
In, the data analysis tool is the tool with data analysis and chart data output function.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described
When computer-readable instruction is executed by the processor, so that the processor is executed as described in any one of claims 1 to 7
The step of APP flux monitoring method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Readable instruction, when the computer-readable instruction is executed by one or more processors, so that the processor executes such as right
It is required that described in any one of 1 to 7 the step of APP flux monitoring method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810548247.5A CN109032919A (en) | 2018-05-31 | 2018-05-31 | APP flux monitoring method, system, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810548247.5A CN109032919A (en) | 2018-05-31 | 2018-05-31 | APP flux monitoring method, system, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109032919A true CN109032919A (en) | 2018-12-18 |
Family
ID=64611922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810548247.5A Pending CN109032919A (en) | 2018-05-31 | 2018-05-31 | APP flux monitoring method, system, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109032919A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110851544A (en) * | 2019-11-12 | 2020-02-28 | 芜湖盟博科技有限公司 | Method for controlling remote vehicle by using remote service |
CN110874324A (en) * | 2019-10-14 | 2020-03-10 | 平安普惠企业管理有限公司 | Test result data storage method and device, terminal equipment and storage medium |
CN110955603A (en) * | 2019-12-03 | 2020-04-03 | 望海康信(北京)科技股份公司 | Automatic testing method and device, electronic equipment and computer readable storage medium |
CN111314183A (en) * | 2020-04-09 | 2020-06-19 | 网易(杭州)网络有限公司 | Flow information detection method and device, electronic equipment and storage medium |
CN113556260A (en) * | 2020-04-24 | 2021-10-26 | 北京三快在线科技有限公司 | Flow monitoring method and device, storage medium and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107622014A (en) * | 2017-09-22 | 2018-01-23 | 广州视源电子科技股份有限公司 | Test report generation method and device, readable storage medium and computer equipment |
-
2018
- 2018-05-31 CN CN201810548247.5A patent/CN109032919A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107622014A (en) * | 2017-09-22 | 2018-01-23 | 广州视源电子科技股份有限公司 | Test report generation method and device, readable storage medium and computer equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110874324A (en) * | 2019-10-14 | 2020-03-10 | 平安普惠企业管理有限公司 | Test result data storage method and device, terminal equipment and storage medium |
CN110851544A (en) * | 2019-11-12 | 2020-02-28 | 芜湖盟博科技有限公司 | Method for controlling remote vehicle by using remote service |
CN110955603A (en) * | 2019-12-03 | 2020-04-03 | 望海康信(北京)科技股份公司 | Automatic testing method and device, electronic equipment and computer readable storage medium |
CN111314183A (en) * | 2020-04-09 | 2020-06-19 | 网易(杭州)网络有限公司 | Flow information detection method and device, electronic equipment and storage medium |
CN113556260A (en) * | 2020-04-24 | 2021-10-26 | 北京三快在线科技有限公司 | Flow monitoring method and device, storage medium and electronic equipment |
CN113556260B (en) * | 2020-04-24 | 2022-12-09 | 北京三快在线科技有限公司 | Flow monitoring method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109032919A (en) | APP flux monitoring method, system, computer equipment and storage medium | |
US11822919B2 (en) | Auto-generation of API documentation via implementation-neutral analysis of API traffic | |
US8413044B2 (en) | Method and system of retrieving Ajax web page content | |
CN107295050B (en) | Front-end user behavior statistical method and device | |
US10713437B2 (en) | Method and apparatus for identifying questionable line break characters in an application | |
CN109936621B (en) | Information security multi-page message pushing method, device, equipment and storage medium | |
CN108292257B (en) | System and method for annotating client-server transactions | |
CN110069413B (en) | Test data communication, test method, device, equipment and storage medium | |
US11568133B2 (en) | Method and apparatus for detecting anomalies in mission critical environments | |
US10169037B2 (en) | Identifying equivalent JavaScript events | |
CN105205144A (en) | Method and system used for data diagnosis and optimization | |
US11550990B2 (en) | Machine first approach for identifying accessibility, non-compliances, remediation techniques and fixing at run-time | |
CN110442519A (en) | A kind of crash file processing method, device, electronic equipment and storage medium | |
CN112506778A (en) | WEB user interface automatic test method, device, equipment and storage medium | |
CN107797917B (en) | Performance test script generation method and device | |
CN104298671B (en) | data statistical analysis method and device | |
CN113836014A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN110855675B (en) | Mail safety consciousness testing method, device, equipment and storage medium | |
US11544179B2 (en) | Source traceability-based impact analysis | |
CN110390067B (en) | Webpage labeling method and device, storage medium and electronic equipment | |
CN114003567A (en) | Data acquisition method and related device | |
US20230124408A1 (en) | An approach for analysis of logs from a complex physical equipment | |
CN114970486B (en) | Method, apparatus and medium for generating PDF reports for software test results | |
US20230196009A1 (en) | Systems and methods for browser rendering | |
CN117009701A (en) | Front-end page detection method and device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20231208 |