CN109117379A - A kind of WEB terminal performance test data auto-collection system and method - Google Patents
A kind of WEB terminal performance test data auto-collection system and method Download PDFInfo
- Publication number
- CN109117379A CN109117379A CN201811110270.2A CN201811110270A CN109117379A CN 109117379 A CN109117379 A CN 109117379A CN 201811110270 A CN201811110270 A CN 201811110270A CN 109117379 A CN109117379 A CN 109117379A
- Authority
- CN
- China
- Prior art keywords
- test
- web terminal
- data
- performance test
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- 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/3684—Test management for test design, e.g. generating new test cases
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)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses WEB terminal performance test data auto-collection system and methods, the main scene configuration file by designing the WEB terminal page to be measured, the WEB terminal performance test being able to satisfy under different scenes, and WEB terminal performance test task can be automatically initiated by parsing scene configuration file generated test command and complete the automatic collection of correlated performance test data index, it ensure that the comprehensive and adequacy of performance issue investigation, the technical capability requirement of investigation officer can be reduced simultaneously, to greatly improve efficiency, the performance test problem that the present invention preferably resolves the WEB terminal page is difficult to quickly position and position the problems such as insufficient, the various performance issues positioning of the WEB terminal page can be successfully managed through the invention, so that software quality is guaranteed by automatic test means and effectively save human cost and contracting The short development cycle.
Description
Technical field
The present invention relates to WEB terminal technical field of performance test, in particular to a kind of WEB terminal performance test data is collected automatically
System and method.
Background technique
Currently, website load is frequently encountered slow problem, in order to navigate to performance bottleneck, need to lay in a large amount of WEB
The further orientation problem of performance knowledge frequently is held, however different Personnel Skill Levels' levels is different, this undoubtedly increases performance
The difficulty of bottleneck positioning.
Meanwhile in current existing WEB terminal performance testing tool, need manually to go to grab step by step mostly relevant
Performance data could check problem, lead to the comprehensive and efficiency it is difficult to ensure that performance investigation.
Therefore, collecting WEB terminal performance test data automatically is particularly important, and automatic collect can guarantee that performance issue is checked
Comprehensive and adequacy, while can reduce investigation officer technical capability requirement, to greatly improve efficiency.
Summary of the invention
It is insufficient the purpose of the present invention is overcoming in above-mentioned background technique, a kind of WEB terminal performance test data is provided and is received automatically
Collecting system and method, the main scene configuration file by designing the WEB terminal page to be measured, the WEB terminal being able to satisfy under different scenes
Performance test, and WEB terminal performance test task can be automatically initiated by parsing scene configuration file generated test command and completed
The automatic collection of correlated performance test data index, ensure that the comprehensive and adequacy of performance issue investigation, while can reduce
The technical capability requirement of investigation officer, to greatly improve efficiency.
In order to reach above-mentioned technical effect, the present invention takes following technical scheme:
A kind of WEB terminal performance test data auto-collection system, based on WebPageTest as WEB terminal performance test work
Tool, comprising: scene configuration file module, test script generation module, dispatching control module and data acquisition module, scene configuration
File module is connected with test script generation module, dispatching control module respectively with test script generation module and data acquisition module
Block is connected;The scene configuration file module is used to determine the configurations information of WEB page to be measured, test script generation module
For generating corresponding test command by parsing the configurations information, to be passed through by testing tool WebPageTest
Order line executes the test command generated and initiates test, and the API that dispatching control module is used to dispatch WebPageTest is at least completed
The available browser in the end WebPageTest and locating resource are inquired, data acquisition module be used for by define collection rule from
Complete the automatic collection to performance indicator data in the end WebPageTest;
WEB terminal performance test data auto-collection system of the invention designs WEB to be measured by scene configuration file module
The scene configuration file in end page face is able to satisfy the WEB terminal performance test under different scenes, automatic by parsing scene configuration file
Test command is generated, thus initiate WEB terminal performance test task and complete the automatic collection of correlated performance test data index, into
And guarantee the comprehensive and adequacy of performance issue investigation, while reducing the technical capability requirement of investigation officer, greatly improve
Efficiency.
Further, the configurations information includes browser information, the network information, resolution ratio, executes number and right
The js script information for answering WEB page to operate.
Further, the API that the dispatching control module also passes through scheduling WebPageTest carries out the end WebPageTest
The operation that test request is initiated, test mode is inquired, test result obtains.
Further, the performance indicator data include blocking time, long connection have been turned on, transmit compression, compressed picture,
Caching static content and using CDN, page rendering time, for the first time and non-load time for the first time, page request number, connection figure,
In, be for checking the non-html content of all static state such as using CDN index: whether trustship is known for css, js and image
On CDN.
Meanwhile the invention also discloses a kind of automatic collection methods of WEB terminal performance test data, including above-mentioned WEB terminal
Performance test data auto-collection system, and specifically includes the following steps:
A. the privately owned example of deployment installation WebPageTest, wherein need to wrap in the privately owned example of the WebPageTest of deployment
Containing available locating resource and browser resource and service can operate normally;
B. the configurations information of WEB page to be measured is determined by scene configuration file module;
C. detect whether the end WebPageTest has available browser and positioning money by scene configuration file module
Source, enters step D if having, and otherwise terminates this test;
D. test script generation module parses the configurations information and generates test command;
E. dispatching control module initiates test assignment by order line according to the test command that step D is generated, and appoints if returning
Business ID then initiate otherwise to terminate this test successfully and into step 4 by task;
F. dispatching control module is according to the task ID periodic queries task status of return until terminating and entering step G;
G. dispatching control module obtains test result according to the task ID of return;
H. data acquisition module carries out the acquisition of performance achievement data according to the test result that step G is obtained.
Further, the step H specifically includes the following steps:
H1. data acquisition module parses basic property data according to the test result that step G is obtained;
H2. data acquisition module obtains corresponding performance reviews page address according to the test result that step G is obtained;
H3. data acquisition module crawls the performance reviews page by the collection rule defined and obtains relevant performance indicator number
According to;
H4. data acquisition module is based on order line by the task ID that step E is returned and obtains corresponding performance connection figure.
Further, the basic property data in the step H1 include at least the load time for the first time and non-when loading for the first time
Between, the average load time.
Further, the performance indicator data in the step H3 include at least blocking time, long connection has been turned on, transmits
Compression, compressed picture, caching static content and CDN is used, the use of CDN index is for checking that the non-html content of all static state is
No trustship is on known CDN.
Further, the configurations letter of multiple WEB pages can be determined in the step B by scene configuration file module
Breath.
Further, the configurations information in the step B includes browser information, the network information, resolution ratio, execution
Number and the js script information of corresponding WEB page operation.
Compared with prior art, the present invention have it is below the utility model has the advantages that
WEB terminal performance test data auto-collection system of the invention and method, it is main by designing the WEB terminal page to be measured
Scene configuration file, the WEB terminal performance test being able to satisfy under different scenes, and can pass through parsing scene configuration file generated survey
Examination order automatically initiates WEB terminal performance test task and completes the automatic collection of correlated performance test data index, the property of ensure that
The comprehensive and adequacy of energy problem investigation, while the technical capability requirement of investigation officer can be reduced, to greatly improve effect
Rate, the performance test problem that the present invention preferably resolves the WEB terminal page are difficult to quickly position and position the problems such as insufficient, lead to
The various performance issues positioning of the WEB terminal page can be successfully managed by crossing the present invention, obtain software quality by automatic test means
To guarantee and effectively saves human cost and shorten the development cycle.
Detailed description of the invention
Fig. 1 is the flow diagram of the automatic collection method of WEB terminal performance test data of the invention.
Specific embodiment
Below with reference to the embodiment of the present invention, the invention will be further elaborated.
Embodiment:
Embodiment one:
A kind of WEB terminal performance test data auto-collection system, based on WebPageTest as WEB terminal performance test work
Tool, comprising: scene configuration file module, test script generation module, dispatching control module and data acquisition module.
Wherein, scene configuration file module is connected with test script generation module, dispatching control module respectively with test foot
This generation module and data acquisition module are connected.
Specifically, the scene configuration file module is used to determine the configurations information of WEB page to be measured, wherein institute
Stating configurations information includes browser information, the network information, resolution ratio, the js foot for executing number and corresponding WEB page operation
This information.And preferably, scene configuration file module can determine the configurations information of multiple WEB pages to be measured simultaneously.
Test script generation module is used to generate corresponding test command by parsing the configurations information, thus by
Testing tool WebPageTest is executed the test command generated by order line and initiates test,
The API that dispatching control module is used to dispatch WebPageTest completes Browser available to the end WebPageTest
Browser and the inquiry of Location locating resource, test request are initiated, test mode is inquired, test result obtains etc..
Data acquisition module be used for by define collection rule from the end WebPageTest complete to performance indicator data from
Dynamic acquisition;Wherein, the performance indicator data have been turned on comprising blocking time, long connection, transmit compression, compressed picture, caching
Static content and use CDN, page rendering time, for the first time and non-load time for the first time, page request number, connection figure, wherein make
It is that whether trustship is in known CDN for checking the non-html content of all static state with CDN index.
WEB terminal performance test data auto-collection system of the invention designs WEB to be measured by scene configuration file module
The scene configuration file in end page face is able to satisfy the WEB terminal performance test under different scenes, automatic by parsing scene configuration file
Test command is generated, thus initiate WEB terminal performance test task and complete the automatic collection of correlated performance test data index, from
And directly collected data are carried out with the investigation of analysis carry out problem convenient for investigation officer, and then guarantee performance issue investigation
Comprehensive and adequacy, while the technical capability requirement of investigation officer is reduced, greatly improve efficiency.
Embodiment two
As shown in Figure 1, a kind of automatic collection method of WEB terminal performance test data, based on WEB terminal described in embodiment one kind
Performance test data auto-collection system, and specifically includes the following steps:
It is preparation process first:
A. the privately owned example of deployment installation WebPageTest, wherein need to wrap in the privately owned example of the WebPageTest of deployment
Containing available locating resource and browser resource and service can operate normally.
B. it gets out the scene configuration file of the WEB terminal page to be measured by scene configuration file module, determines WEB pages to be measured
The configurations information in face, such as: browser, resolution ratio, network, the js script for executing number and corresponding WEB page relevant operation
Information etc., and a scene configuration file can be made of the configurations information of multiple WEB terminal pages to be measured.
Following step can be entered after completing above-mentioned preparation:
Step 1: according to scene configuration file detect the end WebPageTest whether have available Location and
Browser resource enters step two if having, and otherwise, terminates this test;
Step 2: test script generation module parses scene configuration file generated test command;
Step 3: the test command that dispatching control module is generated according to step 2 initiates test assignment, hair by order line
Play the order of test such as:
webpagetest-s wpt_server test<url_or_script>--location agent200:
FireFox
(note: wpt_server is the address of service WebPageTest of deployment installation,<url_or_script>it can be finger
The address url of fixed script path or test page);
Task is initiated successfully, to enter step four if WebPageTest server-side returns to task ID, otherwise, terminates this
Test;
Step 4: the task ID periodic queries task status that dispatching control module is returned according to step 3 is after
Enter step five;
Step 5: dispatching control module obtains test result according to the task ID that step 3 returns;
Step 6: data acquisition module carries out the acquisition of performance achievement data according to the test result that step 5 obtains;Specifically
Including following operation:
S1, data acquisition module parse basic property data according to the test result that step 5 obtains, specifically such as: for the first time
The information such as load time and non-load time for the first time, average load time;
S2, data acquisition module obtain corresponding performance reviews page address according to the test result that step 5 obtains;
S3, data acquisition module crawl the performance reviews page by the collection rule defined and obtain relevant performance indicator number
According to specifically such as: blocking time, long connection have been turned on, transmit compression, compressed picture, caching static content;Wherein, above-mentioned data
Collection rule be based on regular expression, in the present embodiment, related regular expression rule is as follows:
The first byte response time: "<b>"+" .* "+" ms</b>first Byte Time<br>"
Long connection: " Use persistent connections (keep alive): "+" .* "+"</h3>"
Compressed picture: "<h3id='image_compression_step1'>compress Images: "+" .* "+"</
h3>"
Transmission compression: " Use gzip compression for transferring compressable
responses"+".*"+"</h3>"
Caching: " Leverage browser caching of static assets: "+" .* "+"</h3>"
S4, data acquisition module are based on order line by the task ID that step 3 returns and obtain corresponding performance connection figure,
Order line in the present embodiment is such as:
webpagetest waterfall-u--type connection-r 1-c-s+wpt_server;
In summary, WEB terminal performance test data auto-collection system of the invention and method, it is main to be measured by designing
The scene configuration file of the WEB terminal page, the WEB terminal performance test being able to satisfy under different scenes, and can be by parsing scene configuration
File generated test command automatically initiates WEB terminal performance test task and completes adopting automatically for correlated performance test data index
Collection, ensure that the comprehensive and adequacy of performance issue investigation, while can reduce the technical capability requirement of investigation officer, thus pole
Big improves efficiency, and the performance test problem that the present invention preferably resolves the WEB terminal page is difficult to quickly position and positioning is not filled
The various performance issues positioning of the WEB terminal page can be successfully managed through the invention, is made by automatic test means the problems such as dividing
Software quality is guaranteed and effectively saves human cost and shorten the development cycle.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses
Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from
In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.
Claims (10)
1. a kind of WEB terminal performance test data auto-collection system, based on WebPageTest as WEB terminal performance testing tool,
It is characterised by comprising: scene configuration file module, test script generation module, dispatching control module and data acquisition module,
Scene configuration file module is connected with test script generation module, dispatching control module respectively with test script generation module and number
It is connected according to acquisition module;
The scene configuration file module is used to determine the configurations information of WEB page to be measured, and test script generation module is used
In generating corresponding test command by parsing the configurations information, to pass through life by testing tool WebPageTest
It enables row execute the test command generated and initiates test, the API that dispatching control module is used to dispatch WebPageTest is at least completed pair
The available browser in the end WebPageTest and locating resource inquiry, data acquisition module be used for by define collection rule from
Complete the automatic collection to performance indicator data in the end WebPageTest.
2. a kind of WEB terminal performance test data auto-collection system according to claim 1, which is characterized in that the base
Plinth configuration information includes browser information, the network information, resolution ratio, the js script letter for executing number and corresponding WEB page operation
Breath.
3. a kind of WEB terminal performance test data auto-collection system according to claim 1, which is characterized in that the tune
The API that degree control module also passes through scheduling WebPageTest carries out the initiation of the end WebPageTest test request, test mode is looked into
It askes, the operation that test result obtains.
4. a kind of WEB terminal performance test data auto-collection system according to claim 1, which is characterized in that the property
Can achievement data include blocking time, long connection have been turned on, transmit compression, compressed picture, caching static content and use CDN,
Page rendering time, for the first time and non-load time for the first time, page request number, connection figure.
5. a kind of automatic collection method of WEB terminal performance test data, which is characterized in that including WEB terminal as described in claim 1
Performance test data auto-collection system, and specifically includes the following steps:
A. the privately owned example of deployment installation WebPageTest, wherein needed in the privately owned example of the WebPageTest of deployment comprising can
Locating resource and browser resource and service can operate normally;
B. the configurations information of WEB page to be measured is determined by scene configuration file module;
C. detect whether the end WebPageTest has available browser and locating resource by scene configuration file module, if
Have, enter step D, otherwise terminates this test;
D. test script generation module parses the configurations information and generates test command;
E. dispatching control module initiates test assignment by order line according to the test command that step D is generated, if returning to task ID
Then task is initiated otherwise to terminate this test successfully and into step 4;
F. dispatching control module is according to the task ID periodic queries task status of return until terminating and entering step G;
G. dispatching control module obtains test result according to the task ID of return;
H. data acquisition module carries out the acquisition of performance achievement data according to the test result that step G is obtained.
6. a kind of automatic collection method of WEB terminal performance test data according to claim 5, which is characterized in that the step
Rapid H specifically includes the following steps:
H1. data acquisition module parses basic property data according to the test result that step G is obtained;
H2. data acquisition module obtains corresponding performance reviews page address according to the test result that step G is obtained;
H3. data acquisition module crawls the relevant performance indicator data of performance reviews page acquisition by defining collection rule;
H4. data acquisition module is based on order line by the task ID that step E is returned and obtains corresponding performance connection figure.
7. a kind of automatic collection method of WEB terminal performance test data according to claim 6, which is characterized in that the step
Basic property data in rapid H1 include at least load time for the first time and non-load time for the first time, average load time.
8. a kind of automatic collection method of WEB terminal performance test data according to claim 6, which is characterized in that the step
Performance indicator data in rapid H3 include at least blocking time, long connection has been turned on, transmits compression, compressed picture, caching static
Content and use CDN.
9. a kind of automatic collection method of WEB terminal performance test data according to claim 5, which is characterized in that the step
The configurations information of multiple WEB pages can be determined in rapid B by scene configuration file module.
10. a kind of automatic collection method of WEB terminal performance test data according to claim 5, which is characterized in that the step
Configurations information in rapid B includes browser information, the network information, resolution ratio, executes number and corresponding WEB page operation
Js script information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811110270.2A CN109117379A (en) | 2018-09-21 | 2018-09-21 | A kind of WEB terminal performance test data auto-collection system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811110270.2A CN109117379A (en) | 2018-09-21 | 2018-09-21 | A kind of WEB terminal performance test data auto-collection system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109117379A true CN109117379A (en) | 2019-01-01 |
Family
ID=64856214
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811110270.2A Pending CN109117379A (en) | 2018-09-21 | 2018-09-21 | A kind of WEB terminal performance test data auto-collection system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109117379A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134609A (en) * | 2019-05-20 | 2019-08-16 | 广东电网有限责任公司 | Enterprise-level web application system page method for testing performance, device and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080015819A1 (en) * | 2006-06-13 | 2008-01-17 | Matt Sayre | Athletic Performance Data System and Method |
CN106897215A (en) * | 2017-01-20 | 2017-06-27 | 华南理工大学 | A kind of method gathered based on WebView webpages loading performance and user behavior flow data |
CN107783899A (en) * | 2017-08-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | The method of testing of the H5 pages, device and computer equipment in application program |
-
2018
- 2018-09-21 CN CN201811110270.2A patent/CN109117379A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080015819A1 (en) * | 2006-06-13 | 2008-01-17 | Matt Sayre | Athletic Performance Data System and Method |
CN106897215A (en) * | 2017-01-20 | 2017-06-27 | 华南理工大学 | A kind of method gathered based on WebView webpages loading performance and user behavior flow data |
CN107783899A (en) * | 2017-08-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | The method of testing of the H5 pages, device and computer equipment in application program |
Non-Patent Citations (3)
Title |
---|
咖啡机(K.F.J): "Web性能优化工具WebPageTest(一)——总览与配置", 《HTTPS:https://WWW.CNBLOGS.COM/STRICK/P/6677836.HTML》 * |
咖啡机(K.F.J): "Web性能优化工具WebPageTest(二)——性能数据", 《HTTPS:https://WWW.CNBLOGS.COM/STRICK/P/6681692.HTML》 * |
每天1990: "使用命令行执行webpagetest进行测试", 《HTTPS:https://WWW.CNBLOGS.COM/MEITIAN/P/6002374.HTML》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134609A (en) * | 2019-05-20 | 2019-08-16 | 广东电网有限责任公司 | Enterprise-level web application system page method for testing performance, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256195B (en) | Webpage front-end test method and device | |
US9075914B2 (en) | Analytics driven development | |
CN105760286B (en) | Application database dynamic property detection method and detection device | |
CN108521353B (en) | Processing method and device for positioning performance bottleneck and readable storage medium | |
CN112241360B (en) | Test case generation method, device, equipment and storage medium | |
CN111045911B (en) | Performance test method, performance test device, storage medium and electronic equipment | |
CN111221729B (en) | Automatic testing method and system for separating platform service from testing service | |
CN112187558B (en) | Data verification method and device and electronic equipment | |
CN106886494A (en) | A kind of automatic interface testing method and its system | |
CN103581133B (en) | Web server sends the method and system of response to access request | |
CN103246606B (en) | The performance test methods of ESB platform and system | |
CN104102578B (en) | Test method and system and operation terminal | |
CN109977027A (en) | A kind of method, apparatus of performance test, system, equipment and storage medium | |
CN109753432A (en) | A kind of interface performance test method, apparatus, server and system | |
CN110363427A (en) | Model quality evaluation method and apparatus | |
CN108694120B (en) | Method and device for testing service component | |
CN110263070A (en) | Event report method and device | |
CN104301175A (en) | WEB service system simulation monitoring method based on browser | |
CN106059860A (en) | Method and device for testing network cards | |
CN109460365B (en) | A kind of system performance testing method, apparatus, equipment and storage medium | |
CN107766224B (en) | Test method and test device | |
CN109117379A (en) | A kind of WEB terminal performance test data auto-collection system and method | |
CN110740081A (en) | Data visualization method for page performance of standard multiple companies | |
CN110389886B (en) | Additional function testing method and device of main application program and storage medium | |
CN108287781A (en) | A kind of EMS memory occupation monitoring method and device, system |
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: 20190101 |
|
RJ01 | Rejection of invention patent application after publication |