CN109873735A - Performance test methods, device and the computer equipment of the H5 page - Google Patents
Performance test methods, device and the computer equipment of the H5 page Download PDFInfo
- Publication number
- CN109873735A CN109873735A CN201811536863.5A CN201811536863A CN109873735A CN 109873735 A CN109873735 A CN 109873735A CN 201811536863 A CN201811536863 A CN 201811536863A CN 109873735 A CN109873735 A CN 109873735A
- Authority
- CN
- China
- Prior art keywords
- request message
- parameter
- page
- application
- mentioned
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Present applicant proposes performance test methods, device and the computer equipments of a kind of H5 page, wherein the performance test methods of the above-mentioned H5 page include: the request message for obtaining the application in electronic equipment and issuing;The request message is parsed, the parameter that the request message carries is obtained;At least one in the parameter carried to the request message is modified;Request message after modification parameter is sent to server;Receive the response message that the server is sent for the request message after the modification parameter;According to the reception condition of the transmission situation of the request message after the modification parameter and the response message, the performance data of the H5 page is determined.In the application, since the transmission of request message and the reception of response message are completed using prototype, therefore the actual performance data of prototype can be collected, improve the accuracy rate of the performance test of the H5 page, and then it can be quickly found out the performance bottleneck of the H5 page, Performance tuning direction is pointed out for exploitation.
Description
[technical field]
This application involves technical field of internet application more particularly to a kind of performance test methods of the H5 page, device and
Computer equipment.
[background technique]
With the 5th version of hypertext markup language (HyperText Markup Language 5;Hereinafter referred to as: H5)
It finalizes a text, mixed mode mobile application (Hybrid Application;Hereinafter referred to as: Hybrid App) one kind is also become to become
H5 technology is all widely applied in the front end scene of gesture, more and more applications.Test before App publication, to the H5 page in App
As an important process.
It is existing in the related technology, there are no it is a can the tool tested of the commonly used performance to the H5 page,
Its difficult point essentially consists in the application scenarios of H5 in mobile terminal, can not collect the actual performance data of prototype, can not thus protect
The accuracy rate of the performance test of the H5 page is demonstrate,proved, therefore the performance test of the H5 page is always the pain spot of head end test.
[summary of the invention]
The embodiment of the present application provides performance test methods, device and the computer equipment of a kind of H5 page, is adopted with realizing
Collect the actual performance data of prototype, improves the accuracy rate of the performance test of the H5 page.
In a first aspect, the embodiment of the present application provides a kind of performance test methods of H5 page, comprising: obtain electronic equipment
In the request message that issues of application, the request message is that the H5 page in the application is issued after operation;Parsing
The request message obtains the parameter that the request message carries;At least one of in the parameter carried to the request message
It modifies;Request message after modification parameter is sent to server;The server is received for after the modification parameter
Request message send response message;According to the transmission situation of the request message after the modification parameter and the response message
Reception condition, determine the performance data of the H5 page.
Wherein in one possible implementation, the request message packet that the application obtained in electronic equipment issues
Include: based on the Internet transport protocol, the request message issued to the application in the electronic equipment is intercepted;The reception institute
State server for it is described modification parameter after request message send response message include: based on the Internet transport protocol, it is right
The response message that the server is sent for the request message after the modification parameter is intercepted.
Wherein in one possible implementation, the parameter that the request message carries includes application programming interfaces ginseng
Number;In the parameter carried to the request message at least one of to modify include: to carry to the request message
At least one in application programming interfaces parameter is modified.
Wherein in one possible implementation, before the request message after modification parameter being sent to server, also
It include: to modify to network transmission parameter, to simulate at least two network environments, the network transmission parameter includes: packet loss
Rate and/or bandwidth, the network transmission parameter are the net of the request message and the reception response message after sending modification parameter
The configured transmission of network.
Wherein in one possible implementation, the performance data of the H5 page includes following one or combination: institute
State the size of H5 page request resource, the load duration of the H5 page, the H5 page request interface quantity and packet loss.
Second aspect, the embodiment of the present application provide a kind of performance testing device of H5 page, comprising: obtain module, be used for
The request message that the application in electronic equipment issues is obtained, the request message is after the H5 page in the application is operated
It issues;Parsing module obtains the parameter that the request message carries for parsing the request message;Modified module is used for
At least one in the parameter carried to the request message is modified;Sending module, for modifying the modified module
Request message after parameter is sent to server;Receiving module, for receiving the server for after the modification parameter
The response message that request message is sent;Determining module, for according to the sending module to it is described modification parameter after request report
The transmission situation of text and the receiving module determine the performance data of the H5 page to the reception condition of the response message.
Wherein in one possible implementation, the acquisition module is specifically used for being based on the Internet transport protocol, right
The request message that application in the electronic equipment issues is intercepted;The receiving module is specifically used for passing based on internet
Defeated agreement, the response message sent to the server for the request message after the modification parameter intercept.
Wherein in one possible implementation, the parameter that the request message carries includes application programming interfaces ginseng
Number;The modified module, specifically in the application programming interfaces parameter that is carried to the request message at least one of carry out
Modification.
Wherein in one possible implementation, the modified module is also used to join modification in the sending module
Request message after number is sent to before server, is modified to network transmission parameter, to simulate at least two network environments,
The network transmission parameter includes: packet loss and/or bandwidth, and the network transmission parameter is the request report sent after modification parameter
The configured transmission of the network of text and the reception response message.
Wherein in one possible implementation, the performance data of the H5 page includes following one or combination: institute
State the size of H5 page request resource, the load duration of the H5 page, the H5 page request interface quantity and packet loss.
The third aspect, the embodiment of the present application provide a kind of computer equipment, including memory, processor and are stored in described
It is real when the processor executes the computer program on memory and the computer program that can run on the processor
Now method as described above.
Fourth aspect, the embodiment of the present application provide a kind of non-transitorycomputer readable storage medium, are stored thereon with meter
Calculation machine program, the computer program realize method as described above when being executed by processor.
In above technical scheme, after obtaining the request message that the application in electronic equipment issues, above-mentioned request report is parsed
Text, obtains the parameter that above-mentioned request message carries, at least one in the parameter then carried to above-mentioned request message is repaired
Change, the request message after modification parameter is sent to server, receives above-mentioned server for the request after above-mentioned modification parameter
The response message that message is sent, finally, according to the transmission situation of the request message after above-mentioned modification parameter and above-mentioned response message
Reception condition, the performance data of the above-mentioned H5 page is determined, since the transmission of request message and the reception of response message all make
It is completed with prototype, therefore the actual performance data of prototype can be collected, improve the accuracy rate of the performance test of the H5 page,
And then it can be quickly found out the performance bottleneck of the H5 page, Performance tuning direction is pointed out for exploitation, improves productivity.
[Detailed description of the invention]
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow chart of performance test methods one embodiment of the application H5 page;
Fig. 2 is the flow chart of another embodiment of the performance test methods of the application H5 page;
Fig. 3 is the flow chart of the performance test methods further embodiment of the application H5 page;
Fig. 4 is the structural schematic diagram of performance testing device one embodiment of the application H5 page;
Fig. 5 is the structural schematic diagram of the application computer equipment one embodiment.
[specific embodiment]
In order to better understand the technical solution of the application, the embodiment of the present application is retouched in detail with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Base
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall in the protection scope of this application.
The term used in the embodiment of the present application is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The application.In the embodiment of the present application and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
To solve the problem of that the actual performance data of prototype, this Shen can not be collected when being tested for the property the H5 page
Please embodiment a kind of performance test methods of H5 page are provided, comprising: obtain electronic equipment in application issue request message,
Above-mentioned request message is that the H5 page in above-mentioned application is issued after operation;Above-mentioned request message is parsed, above-mentioned ask is obtained
The parameter for asking message to carry;At least one in the parameter carried to above-mentioned request message is modified;After modification parameter
Request message is sent to server;Receive the response message that above-mentioned server is sent;According to the request report after above-mentioned modification parameter
The transmission situation of text and the reception condition of above-mentioned response message, determine the performance data of the above-mentioned H5 page.
Application involved in the embodiment of the present application (App) can apply (Hybrid App) for mixing, but the application is not
As limit.To better illustrate the embodiment in the application, carry out following explanation to application: application may include native applications
(Hybrid App) is applied in (Native App), web application (Web App) and mixing.Wherein, native applications are for difference
Operation system of smart phone is individually developed locally applied, is needed first to download to terminal and be installed if you need to use, and Native is downloaded
The most common process of App is access application shop, such as the application shop (App Store) of apple, Android market, Google quotient
Shop (Google Play) etc..Web application is the website of a touch screen version, and Html, JavaScript and layer are used in Web application completely
Stacking style table (Cascading Style Sheets;The Web technological development such as hereinafter referred to as: CSS), passes through the browsing of electronic equipment
Device accesses, the disadvantage is that these applications based on browser can not calling system application programming interface (Application
Programming Interface;It hereinafter referred to as: API) realizes some Premium Features, is also not suitable for the field of high performance requirements
It closes.Mixing application is a kind of App between Native App and Web App, although mixing application appears to be one
Native App, but an only user interface web page view (User Interface WebView;Hereinafter referred to as: UI
WebView), that the inside access is a Web App.The essence of mixing application is that the apk/ipa of one browser of forgery is primary
Program, and run a Web App.Hybrid App has both the advantage and Web of the good user-interaction experience of Native App
The advantage of App Cross-border congestion management can allow the transition of web developer's almost zero cost at mobile application developer, and
And identical code need to only be compiled for different platform and can be achieved in multi-platform distribution, and compared to Web App, it opens
Originator can call most of common system API by packaged interface.
Fig. 1 is the flow chart of performance test methods one embodiment of the application H5 page, as shown in Figure 1, above-mentioned H5 pages
The performance test methods in face may include:
Step 101, the request message that the application in electronic equipment issues is obtained, above-mentioned request message is in above-mentioned application
What the H5 page was issued after operation.
Specifically, it may include: to connect shown in the above-mentioned H5 page that the H5 page in the application in electronic equipment, which is operated,
It connects or functional module is clicked, the concrete operations mode that the present embodiment operates the H5 page in above-mentioned application is not construed as limiting.
After the H5 page in above-mentioned application is operated, above-mentioned application issues request message, and at this moment network agent can be with
Intercept above-mentioned request message.Above-mentioned network agent can do one layer of interception between server and two side of electronic equipment communication, can
The request message issued with the application obtained in electronic equipment.
Wherein, above-mentioned electronic equipment can set for smart electronics such as smart phone, tablet computer or wearable smart machines
Standby, the present embodiment is not construed as limiting the form of above-mentioned electronic equipment.
Step 102, above-mentioned request message is parsed, the parameter that above-mentioned request message carries is obtained.
Step 103, at least one in the parameter carried to above-mentioned request message is modified.
In the present embodiment, after the request message that the application obtained in electronic equipment issues, network agent can be to upper
It states request message to be parsed, obtains the parameter that above-mentioned request message carries, the ginseng that then above-mentioned request message can be carried
At least one in number is modified.Such as: when above-mentioned request message is logging request message, available above-mentioned login is asked
Seek username and password this two parameters carried in message, then can in this two parameters at least one of repair
Change, the request message that can thus will acquire is modified as another request message.
Step 104, the request message after modification parameter is sent to server.
Step 105, the response message that above-mentioned server is sent for the request message after above-mentioned modification parameter is received.
Specifically, network agent can do one layer of interception between server and two side of electronic equipment communication, therefore can be with
Receive the response message that above-mentioned server is sent for the request message after above-mentioned modification parameter.
Step 106, according to the reception feelings of the transmission situation of the request message after above-mentioned modification parameter and above-mentioned response message
Condition determines the performance data of the above-mentioned H5 page.
Specifically, after network agent issues the request message after above-mentioned modification parameter, available above-mentioned modification parameter
The transmission situation of request message afterwards, after receiving the response message that server is sent, available above-mentioned response message is connect
Situation is received, network agent determines the performance number of the H5 page according to the transmission situation of request message and the reception condition of response message
According to.
Wherein, the performance data of the above-mentioned H5 page includes following one or combination: the size of above-mentioned H5 page request resource,
The load duration of the above-mentioned H5 page, above-mentioned H5 page request interface quantity and packet loss.
In the performance test methods of the above-mentioned H5 page, after obtaining the request message that the application in electronic equipment issues, solution
Above-mentioned request message is analysed, obtains the parameter that above-mentioned request message carries, in the parameter then carried to above-mentioned request message extremely
One item missing is modified, and the request message after modification parameter is sent to server, receives above-mentioned server for above-mentioned modification
The response message that request message after parameter is sent, finally, according to the transmission situation of the request message after above-mentioned modification parameter and
The reception condition of above-mentioned response message determines the performance data of the above-mentioned H5 page, transmission and response message due to request message
Reception be all the actual performance data completed using prototype, therefore prototype can be collected, improve the performance of the H5 page
The accuracy rate of test, and then it can be quickly found out the performance bottleneck of the H5 page, Performance tuning direction is pointed out for exploitation, improves life
Force of labor.
Fig. 2 is the flow chart of another embodiment of the performance test methods of the application H5 page, as shown in Fig. 2, the application
In embodiment illustrated in fig. 1, step 101 can be with are as follows:
Step 201, it is based on the Internet transport protocol, the request message issued to the application in above-mentioned electronic equipment blocks
It cuts.
Step 105 can be with are as follows:
Step 202, it is based on the Internet transport protocol, above-mentioned server is sent out for the request message after above-mentioned modification parameter
The response message sent is intercepted.
That is, network agent is based on the Internet transport protocol, in two side of server and electronic equipment in the present embodiment
One layer of interception has been done between communication, can both intercept the request message that the application on electronic equipment is sent, request message is carried out
Modification can also be directed to the response message that above-mentioned request message is sent with intercept server.
Fig. 3 is the flow chart of the performance test methods further embodiment of the application H5 page, as shown in figure 3, the application
In embodiment illustrated in fig. 1 step 102, the parameter for parsing the above-mentioned request message carrying of acquisition may include application programming interfaces
(Application Programming Interface;Hereinafter referred to as: API) parameter;In this way, step 103 can be with are as follows:
Step 301, at least one in the API parameter carried to above-mentioned request message is modified.
That is, can join to the API carried in above-mentioned request message after network agent obtains above-mentioned request message
Number is modified, and the other kinds of parameter in addition to API parameter, the present embodiment can also be carried in certain above-mentioned request message
The type of the parameter carried in above-mentioned request message is not construed as limiting.In the present embodiment, network agent is by modifying above-mentioned request
The API parameter that message carries, may be implemented to simulate different test scenes, to may be implemented on network agent pair
The test of a variety of test scenes simplifies the analog form of test scene, improves testing efficiency.
Further, in the performance test methods of the H5 page provided by the embodiments of the present application, can also step 104 it
Before, it modifies to network transmission parameter, to simulate at least two network environments, above-mentioned network transmission parameter may include: to lose
Packet rate and/or bandwidth, above-mentioned network transmission parameter are the request message and the above-mentioned response message of reception after sending modification parameter
The configured transmission of network.That is, network agent can be come by modifying the network transmission parameters such as packet loss and/or bandwidth
Simulate multiple network environment, comprising: 2G, 3G, 4G or wireless network (Wireless Fidelity;Hereinafter referred to as: WiFi) etc..
In specific implementation, the step of modifying to network transmission parameter can successively execute with step 101~step 103, or simultaneously
Row executes, and the present embodiment is not construed as limiting this, as long as executing before step 104.
Fig. 4 is the structural schematic diagram of performance testing device one embodiment of the application H5 page, the H5 in the present embodiment
The performance testing device of the page can be used as network agent, realize the performance test side of the H5 page provided by the embodiments of the present application
Method.As shown in figure 4, the performance testing device of the above-mentioned H5 page may include: to obtain module 41, parsing module 42, modified module
43, sending module 44, receiving module 45 and determining module 46;
Wherein, module 41 is obtained, for obtaining the request message of the application sending in electronic equipment, above-mentioned request message is
What the H5 page in above-mentioned application was issued after operation;
Specifically, it may include: to connect shown in the above-mentioned H5 page that the H5 page in the application in electronic equipment, which is operated,
It connects or functional module is clicked, the concrete operations mode that the present embodiment operates the H5 page in above-mentioned application is not construed as limiting.
After the H5 page in above-mentioned application is operated, above-mentioned application issues request message, and at this moment obtaining module 41 can
To intercept above-mentioned request message.One layer of interception can be done between server and two side of electronic equipment communication by obtaining module 41, can
The request message issued with the application obtained in electronic equipment.
Wherein, above-mentioned electronic equipment can set for smart electronics such as smart phone, tablet computer or wearable smart machines
Standby, the present embodiment is not construed as limiting the form of above-mentioned electronic equipment.
Parsing module 42 obtains the parameter that above-mentioned request message carries for parsing above-mentioned request message.
Modified module 43, in the parameter for being carried to above-mentioned request message at least one of modify;The present embodiment
In, after the request message that the application obtained in electronic equipment issues, parsing module 42 can be carried out above-mentioned request message
Parsing obtains the parameter that above-mentioned request message carries, in the parameter that then modified module 43 can carry above-mentioned request message
At least one of modify.Such as: when above-mentioned request message is logging request message, parsing module 42 is available above-mentioned
This two parameters of the username and password carried in logging request message, then modified module 43 can be in this two parameters
At least one is modified, and the request message that can thus will acquire is modified as another request message.
Sending module 44, for the request message after the modification parameter of modified module 43 to be sent to server;
Receiving module 45, the response report sent for receiving above-mentioned server for the request message after above-mentioned modification parameter
Text;Specifically, receiving module 45 can do one layer of interception between server and two side of electronic equipment communication, therefore can receive
The response message sent to above-mentioned server for the request message after above-mentioned modification parameter.
Determining module 46, for the transmission situation of the request message after above-mentioned modification parameter and being connect according to sending module 44
Module 45 is received to the reception condition of above-mentioned response message, determines the performance data of the above-mentioned H5 page.
Specifically, after sending module 44 issues the request message after above-mentioned modification parameter, determining module 46 is available
The transmission situation of request message after above-mentioned modification parameter, after receiving module 45 receives the response message that server is sent, really
The reception condition of the available above-mentioned response message of cover half block 46, according to the transmission situation of request message and the reception of response message
Situation, determining module 46 can determine the performance data of the H5 page.
Wherein, the performance data of the above-mentioned H5 page includes following one or combination: the size of above-mentioned H5 page request resource,
The load duration of the above-mentioned H5 page, above-mentioned H5 page request interface quantity and packet loss.
In the present embodiment, module 41 is obtained, is specifically used for being based on the Internet transport protocol, to answering in above-mentioned electronic equipment
It is intercepted with the request message of sending;Receiving module 45 is specifically used for being based on the Internet transport protocol, to above-mentioned server needle
The response message sent to the request message after above-mentioned modification parameter intercepts.
That is, the Internet transport protocol is based in the present embodiment, between server and two side of electronic equipment communication
One layer of interception is done, the request message that the application on electronic equipment is sent can be intercepted by obtaining module 41, and receiving module 45 can be with
Intercept server is directed to the response message that above-mentioned request message is sent.
In the present embodiment, the parameter that above-mentioned request message carries may include API parameter;At this moment, modified module 43, specifically
At least one in API parameter for carrying to above-mentioned request message is modified.It is obtained that is, obtaining module 41
After stating request message, modified module 43 can modify to the API parameter carried in above-mentioned request message, certainly above-mentioned to ask
Seek the other kinds of parameter that can also be carried in addition to API parameter in message, the present embodiment in above-mentioned request message to carrying
The type of parameter be not construed as limiting.In the present embodiment, the API parameter that modified module 43 is carried by modifying above-mentioned request message,
It may be implemented to simulate different test scenes, so that the survey to a variety of test scenes may be implemented on network agent
Examination, simplifies the analog form of test scene, improves testing efficiency.
Further, modified module 43 are also used to that the request message after modifying parameter is sent to clothes in sending module 44
It is engaged in front of device, modifies to network transmission parameter, to simulate at least two network environments, above-mentioned network transmission parameter be can wrap
Include: packet loss and/or bandwidth, above-mentioned network transmission parameter are the request message and the above-mentioned response report of reception after sending modification parameter
The configured transmission of the network of text.That is, network agent can pass through the modification network transmissions such as packet loss and/or bandwidth ginseng
Number, to simulate multiple network environment, comprising: 2G, 3G, 4G or WiFi etc..
In the performance testing device of the above-mentioned H5 page, obtains module 41 and obtain the request report that the application in electronic equipment issues
After text, parsing module 42 parses above-mentioned request message, obtains the parameter that above-mentioned request message carries, then modified module 43 is right
At least one in the parameter that above-mentioned request message carries is modified, and sending module 44 will modify the request message hair after parameter
Server is given, receiving module 45 receives the response report that above-mentioned server is sent for the request message after above-mentioned modification parameter
Text, finally, determining module 46 is according to the transmission situation of the request message after above-mentioned modification parameter and the reception of above-mentioned response message
Situation determines the performance data of the above-mentioned H5 page, since the transmission of request message and the reception of response message are all using prototype
It completes, therefore the actual performance data of prototype can be collected, improve the accuracy rate of the performance test of the H5 page, Jin Erke
To be quickly found out the performance bottleneck of the H5 page, Performance tuning direction is pointed out for exploitation, improves productivity.
Fig. 5 is the structural schematic diagram of the application computer equipment one embodiment, and above-mentioned computer equipment may include depositing
Reservoir, processor and it is stored in the computer program that can be run on above-mentioned memory and on above-mentioned processor, above-mentioned processor
When executing above-mentioned computer program, the performance test methods of the H5 page provided by the embodiments of the present application may be implemented.
Wherein, above-mentioned computer equipment can be electronic equipment, such as: smart phone, tablet computer or wearable intelligence
The intelligent electronic devices such as equipment, the present embodiment are not construed as limiting the specific form of above-mentioned computer equipment.
Fig. 5 shows the block diagram for being suitable for the exemplary computer device 12 for being used to realize the application embodiment.Fig. 5 is shown
Computer equipment 12 be only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in figure 5, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with
Including but not limited to: one or more processor or processing unit 16, system storage 28 connect different system components
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (Industry Standard
Architecture;Hereinafter referred to as: ISA) bus, microchannel architecture (Micro Channel Architecture;Below
Referred to as: MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards
Association;Hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component
Interconnection;Hereinafter referred to as: PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by
The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (Random Access Memory;Hereinafter referred to as: RAM) 30 and/or cache memory 32.Computer equipment 12
It may further include other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only conduct
Citing, storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 5 do not show, commonly referred to as " hard disk
Driver ").Although being not shown in Fig. 5, the magnetic for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided
Disk drive, and to removable anonvolatile optical disk (such as: compact disc read-only memory (Compact Disc Read Only
Memory;Hereinafter referred to as: CD-ROM), digital multi CD-ROM (Digital Video Disc Read Only
Memory;Hereinafter referred to as: DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces
Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28
In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs
It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould
Block 42 usually executes function and/or method in embodiments described herein.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make
The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipment
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also
To pass through network adapter 20 and one or more network (such as local area network (Local Area Network;Hereinafter referred to as:
LAN), wide area network (Wide Area Network;Hereinafter referred to as: WAN) and/or public network, for example, internet) communication.Such as figure
Shown in 5, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.Although should be understood that in Fig. 5 not
It shows, other hardware and/or software module can be used in conjunction with computer equipment 12, including but not limited to: microcode, equipment are driven
Dynamic device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize the performance test methods of the H5 page provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey
The performance test side of the H5 page provided by the embodiments of the present application may be implemented in sequence, above-mentioned computer program when being executed by processor
Method.
Above-mentioned non-transitorycomputer readable storage medium can appointing using one or more computer-readable media
Meaning combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer can
Reading storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device
Or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:
Electrical connection, portable computer diskette, hard disk, random access memory (RAM), read-only storage with one or more conducting wires
Device (Read Only Memory;Hereinafter referred to as: ROM), erasable programmable read only memory (Erasable
Programmable Read Only Memory;Hereinafter referred to as: EPROM) or flash memory, optical fiber, portable compact disc are read-only deposits
Reservoir (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer
Readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded execution system, device
Either device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (Local
Area Network;Hereinafter referred to as: LAN) or wide area network (Wide Area Network;Hereinafter referred to as: WAN) it is connected to user
Computer, or, it may be connected to outer computer (such as being connected using ISP by internet).
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
It should be noted that terminal involved in the embodiment of the present application can include but is not limited to personal computer
(PersonalComputer;Hereinafter referred to as: PC), personal digital assistant (PersonalDigital Assistant;Following letter
Claim: PDA), radio hand-held equipment, tablet computer (Tablet Computer), mobile phone, MP3 player, MP4 player etc..
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the application
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory;Hereinafter referred to as: ROM), random access memory (Random Access Memory;Hereinafter referred to as: RAM),
The various media that can store program code such as magnetic or disk.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of performance test methods of the H5 page characterized by comprising
The request message that the application in electronic equipment issues is obtained, the request message is that the H5 page in the application is operated
It issues later;
The request message is parsed, the parameter that the request message carries is obtained;
At least one in the parameter carried to the request message is modified;
Request message after modification parameter is sent to server;
Receive the response message that the server is sent for the request message after the modification parameter;
According to the reception condition of the transmission situation of the request message after the modification parameter and the response message, the H5 is determined
The performance data of the page.
2. the method according to claim 1, wherein the request report that the application obtained in electronic equipment issues
Text includes:
Based on the Internet transport protocol, the request message issued to the application in the electronic equipment is intercepted;
The reception server is directed to the response message for modifying the request message transmission after parameter
Based on the Internet transport protocol, the response message that the server is sent for the request message after the modification parameter
It is intercepted.
3. the method according to claim 1, wherein the parameter that the request message carries includes that application program connects
Mouth parameter;
In the parameter carried to the request message at least one of modify and include:
At least one in the application programming interfaces parameter carried to the request message is modified.
4. the method according to claim 1, wherein the request message after the parameter by modification is sent to service
Before device, further includes:
It modifies to network transmission parameter, to simulate at least two network environments, the network transmission parameter includes: packet loss
And/or bandwidth, the network transmission parameter are the network of the request message and the reception response message after sending modification parameter
Configured transmission.
5. method according to any of claims 1-4, which is characterized in that the performance data of the H5 page include with
One of lower or combination: the size of the H5 page request resource, the load duration of the H5 page, the H5 page request interface
Quantity and packet loss.
6. a kind of performance testing device of the H5 page characterized by comprising
Module is obtained, the request message that the application for obtaining in electronic equipment issues, the request message is in the application
The H5 page by operation after issue;
Parsing module obtains the parameter that the request message carries for parsing the request message;
Modified module, in the parameter for being carried to the request message at least one of modify;
Sending module, for the request message after modified module modification parameter to be sent to server;
Receiving module, the response message sent for receiving the server for the request message after the modification parameter;
Determining module, for the transmission situation of the request message after the modification parameter and described being connect according to the sending module
Module is received to the reception condition of the response message, determines the performance data of the H5 page.
7. device according to claim 6, which is characterized in that the parameter that the request message carries includes that application program connects
Mouth parameter;
The modified module, specifically in the application programming interfaces parameter that is carried to the request message at least one of carry out
Modification.
8. according to device described in claim 6-7 any one, which is characterized in that the performance data of the H5 page include with
One of lower or combination: the size of the H5 page request resource, the load duration of the H5 page, the H5 page request interface
Quantity and packet loss.
9. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, when the processor executes the computer program, is realized as in claim 1-5
Any method.
10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the meter
Such as method as claimed in any one of claims 1 to 5 is realized when calculation machine program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536863.5A CN109873735B (en) | 2018-12-14 | 2018-12-14 | Performance test method and device for H5 page and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536863.5A CN109873735B (en) | 2018-12-14 | 2018-12-14 | Performance test method and device for H5 page and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109873735A true CN109873735A (en) | 2019-06-11 |
CN109873735B CN109873735B (en) | 2021-09-21 |
Family
ID=66917123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811536863.5A Active CN109873735B (en) | 2018-12-14 | 2018-12-14 | Performance test method and device for H5 page and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109873735B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104323A (en) * | 2019-12-17 | 2020-05-05 | 广州品唯软件有限公司 | Function test method, system, proxy server and storage medium of application program |
CN111858381A (en) * | 2020-07-31 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Application program fault tolerance capability test method, electronic device and medium |
CN113315829A (en) * | 2021-05-26 | 2021-08-27 | 平安普惠企业管理有限公司 | Client offline H5 page loading method and device, computer equipment and medium |
CN113496749A (en) * | 2020-04-02 | 2021-10-12 | 深圳星火半导体科技有限公司 | Storage performance test analysis method and system |
CN114039760A (en) * | 2021-11-03 | 2022-02-11 | 中国工商银行股份有限公司 | Security testing method and device, computer equipment and storage medium |
CN114422563A (en) * | 2021-12-29 | 2022-04-29 | 海南同享数字科技有限公司 | Method, device, equipment and storage medium for calling background data by page |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9268670B1 (en) * | 2013-08-08 | 2016-02-23 | Google Inc. | System for module selection in software application testing including generating a test executable based on an availability of root access |
CN105354143A (en) * | 2015-12-02 | 2016-02-24 | 北京奇虎科技有限公司 | Test method and device for application programs |
CN106569942A (en) * | 2015-10-08 | 2017-04-19 | 阿里巴巴集团控股有限公司 | Test method and apparatus |
CN106802859A (en) * | 2015-11-25 | 2017-06-06 | 北京京东尚科信息技术有限公司 | A kind of method and device of client software test |
CN108345535A (en) * | 2017-12-26 | 2018-07-31 | 阿里巴巴集团控股有限公司 | Mock test methods, device and equipment |
-
2018
- 2018-12-14 CN CN201811536863.5A patent/CN109873735B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9268670B1 (en) * | 2013-08-08 | 2016-02-23 | Google Inc. | System for module selection in software application testing including generating a test executable based on an availability of root access |
CN106569942A (en) * | 2015-10-08 | 2017-04-19 | 阿里巴巴集团控股有限公司 | Test method and apparatus |
CN106802859A (en) * | 2015-11-25 | 2017-06-06 | 北京京东尚科信息技术有限公司 | A kind of method and device of client software test |
CN105354143A (en) * | 2015-12-02 | 2016-02-24 | 北京奇虎科技有限公司 | Test method and device for application programs |
CN108345535A (en) * | 2017-12-26 | 2018-07-31 | 阿里巴巴集团控股有限公司 | Mock test methods, device and equipment |
Non-Patent Citations (1)
Title |
---|
李鑫: "《移动端H5页面快速开发***的设计与实现》", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104323A (en) * | 2019-12-17 | 2020-05-05 | 广州品唯软件有限公司 | Function test method, system, proxy server and storage medium of application program |
CN113496749A (en) * | 2020-04-02 | 2021-10-12 | 深圳星火半导体科技有限公司 | Storage performance test analysis method and system |
CN111858381A (en) * | 2020-07-31 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Application program fault tolerance capability test method, electronic device and medium |
CN111858381B (en) * | 2020-07-31 | 2023-05-16 | 抖音视界有限公司 | Application fault tolerance capability test method, electronic device and medium |
CN113315829A (en) * | 2021-05-26 | 2021-08-27 | 平安普惠企业管理有限公司 | Client offline H5 page loading method and device, computer equipment and medium |
CN113315829B (en) * | 2021-05-26 | 2022-08-12 | 平安普惠企业管理有限公司 | Client offline H5 page loading method and device, computer equipment and medium |
CN114039760A (en) * | 2021-11-03 | 2022-02-11 | 中国工商银行股份有限公司 | Security testing method and device, computer equipment and storage medium |
CN114422563A (en) * | 2021-12-29 | 2022-04-29 | 海南同享数字科技有限公司 | Method, device, equipment and storage medium for calling background data by page |
Also Published As
Publication number | Publication date |
---|---|
CN109873735B (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109873735A (en) | Performance test methods, device and the computer equipment of the H5 page | |
CN107390994B (en) | Interface presentation method and device | |
CN108897691A (en) | Data processing method, device, server and medium based on interface analog service | |
CN110011978B (en) | Method, system, device and computer equipment for modifying block chain network configuration | |
CN111177617A (en) | Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment | |
CN103152392B (en) | Installation kit supplying method, acquisition methods, equipment and system | |
CN107404418B (en) | Internet product testing method, device, equipment and storage medium | |
CN104636924A (en) | Safe payment method, server and system | |
CN110166431A (en) | Multi-protocol data conversion method, device and computer equipment | |
CN107423055A (en) | Method, apparatus, equipment and the storage medium of adaptive terminal device resolution | |
CN107509051A (en) | Long-range control method, device, terminal and computer-readable recording medium | |
CN107102950A (en) | A kind of applied program testing method and device | |
CN109815947A (en) | Test method, device and the computer equipment of application | |
CN105955593A (en) | Method and device for presenting discussion information | |
CN110134869A (en) | A kind of information-pushing method, device, equipment and storage medium | |
CN108696649A (en) | Image processing method, device, equipment and computer readable storage medium | |
CN109740079A (en) | Loading method, device and the computer equipment of the H5 page | |
CN112131092A (en) | Page debugging method and device | |
CN104796929B (en) | Network debugging method and device | |
CN110879676A (en) | Debugging control method, master control device, debugging server, controlled device and system | |
CN108769059A (en) | Method of calibration, device, medium and computing device | |
CN109828899A (en) | Acquisition method, device and the computer equipment of test data | |
US8959209B1 (en) | Systems and methods to indicate compatibility | |
CN104504000B (en) | A kind of transmission method of Remote Switched Port Analyzer file, apparatus and system | |
CN115022328A (en) | Server cluster, server cluster testing method and device and electronic 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |