CN103902441A - Method and device for carrying out testing processing on mobile web application - Google Patents

Method and device for carrying out testing processing on mobile web application Download PDF

Info

Publication number
CN103902441A
CN103902441A CN201210573055.2A CN201210573055A CN103902441A CN 103902441 A CN103902441 A CN 103902441A CN 201210573055 A CN201210573055 A CN 201210573055A CN 103902441 A CN103902441 A CN 103902441A
Authority
CN
China
Prior art keywords
page
information
mobile web
web application
described mobile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210573055.2A
Other languages
Chinese (zh)
Other versions
CN103902441B (en
Inventor
郭鹏程
沈达泱
孙铁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210573055.2A priority Critical patent/CN103902441B/en
Publication of CN103902441A publication Critical patent/CN103902441A/en
Application granted granted Critical
Publication of CN103902441B publication Critical patent/CN103902441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention aims at providing a method and device for carrying out testing processing on mobile web application. The method includes the steps that the testing device obtains page executive record information of the mobile web application in the page execution process; page performance information of the mobile web application is generated according to the page executive record information; page improvement indicating information corresponding to the mobile web application is determined according to the page performance information. Compared with the prior art, the page performance information of the mobile web application is generated by obtaining the page executive record information of the mobile web application in the page execution process, the page improvement indicating information corresponding to the mobile web application is determined according to the page performance information, the one-sidedness of current web testing is accordingly improved, the targeted page performance information is obtained, the pertinence and the accuracy of the obtained improvement indication information are improved, the efficiency and the quality for testing the mobile web application are improved, and the use experience of a user is improved.

Description

A kind of for mobile web application being carried out to the method and apparatus of test processes
Technical field
The present invention relates to mobile Internet field, relate in particular to a kind of for mobile web application being carried out to the technology of test processes.
Background technology
As a kind of trend of mobile client application development, for the local application of tradition, Web application closely relies on internet, has better portability and cross-platform ability, and is combined more tight with emerging cloud.Therefore, in recent years, the quality and quantity of Web application has had obvious lifting.
Because the Web application moving on mobile platform is limited by the restriction of mobile platform network condition and local resource, compared with traditional this locality application, Web is applied in and in performance, exists a certain distance.Compared with traditional webpage development, Web application realizes more function to be placed in front end (being HTML/JavaScript/CSS module), thereby its performance bottleneck has also possessed new feature.Performance performance is to affect the important indicator that user experiences, but the performance test of applying for Web does not still have effectively solution directly perceived so far.
Summary of the invention
The object of this invention is to provide a kind of for mobile web application being carried out to the method and apparatus of test processes.
According to an aspect of the present invention, provide a kind of for mobile web application being carried out to the method for test processes, wherein, the method comprises the following steps:
A obtains mobile web and is applied in the page executive logging information in page implementation;
B, according to described page executive logging information, generates the page performance information of described mobile web application;
C, according to described page performance information, determines corresponding to the page of described mobile web application and improves indication information.
According to a further aspect in the invention, also provide a kind of for mobile web application being carried out to the testing apparatus of test processes, wherein, this equipment comprises:
Acquisition device, is applied in the page executive logging information of page implementation for obtaining mobile web;
Generating apparatus, for according to described page executive logging information, generates the page performance information of described mobile web application;
Determining device, for according to described page performance information, determines corresponding to the page of described mobile web application and improves indication information.
Compared with prior art, the present invention is applied in the page executive logging information in page implementation by obtaining mobile web, generate the page performance information of described mobile web application, and according to described page performance information, determine corresponding to the page of described mobile web application and improve indication information; Thereby improve the one-sidedness of current web test, obtain and had more page performance information targetedly, improve specific aim and the accuracy of improving indication information obtained, improved testing efficiency and test mass to described mobile web application, improved user's experience.And, the present invention can also obtain described page executive logging by described browser kernel interface, thereby improve the accuracy of institute's obtaining information and comprehensive, and then improve the one-sidedness of current web test, obtain and had more page performance information targetedly, improve specific aim and the accuracy of improving indication information obtained, improved testing efficiency and test mass to described mobile web application, improved user's experience.And the present invention can also detect described page performance information and whether meet the corresponding threshold information that described mobile web applies; When described page performance information meets described corresponding threshold information, according to described page performance information, determine corresponding to the page of described mobile web application and improve indication information; Further, described page performance information comprises the interaction response time of described mobile web application, or the network request time of described mobile web application, or the network traffic information of described mobile web application; Thereby respectively different page performance informations is processed, improved specific aim and the accuracy of improving indication information obtained, improved testing efficiency and test mass to described mobile web application, improved user's experience.And the present invention can also apply corresponding network access environment according to described mobile web, determines the threshold information of described correspondence; Thereby further improve specific aim and the accuracy of improving indication information obtained, improved testing efficiency and test mass to described mobile web application, improved user's experience.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 illustrates according to one aspect of the invention a kind of for mobile web application being carried out to the testing apparatus schematic diagram of test processes;
Fig. 2 illustrate in accordance with a preferred embodiment of the present invention a kind of for to mobile web application carry out the testing apparatus schematic diagram of test processes;
Fig. 3 illustrate according to a further aspect of the present invention a kind of for to mobile web application carry out the method flow diagram of test processes;
Fig. 4 illustrate in accordance with a preferred embodiment of the present invention a kind of for to mobile web application carry out the method flow diagram of test processes.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 illustrates according to one aspect of the invention a kind of for mobile web application being carried out to the testing apparatus schematic diagram of test processes; Wherein, this testing apparatus comprises acquisition device 11, generating apparatus 12, determining device 13.Particularly, acquisition device 11 obtains mobile web and is applied in the page executive logging information in page implementation; Generating apparatus 12, according to described page executive logging information, generates the page performance information of described mobile web application; Determining device 13, according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.At this, described testing apparatus include but not limited to the network equipment, subscriber equipment or the network equipment with subscriber equipment by the mutually integrated equipment forming of network.Wherein, the described network equipment its include but not limited to the cloud that computing machine, network host, single network server, multiple webserver collection or multiple server form; At this, cloud is made up of a large amount of computing machines based on cloud computing (CloudComputing) or the webserver, and wherein, cloud computing is the one of Distributed Calculation, the virtual supercomputer being made up of the loosely-coupled computing machine collection of a group.It includes but not limited to any electronic product that can carry out with user man-machine interaction by keyboard, telepilot, touch pad or voice-operated device, such as computing machine, smart mobile phone, PDA, game machine or IPTV etc. described subscriber equipment.Described network includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN (Local Area Network), VPN network, wireless self-organization network (Ad Hoc network) etc.Those skilled in the art will be understood that other testing apparatus is equally applicable to the present invention, also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
Between above-mentioned each device, be constant work, at this, it will be understood by those skilled in the art that " continuing " refers to above-mentioned each device respectively in real time, or according to the mode of operation requirement of setting or adjust in real time, the generation, the page that carry out the obtaining of page executive logging information, page performance information improve determining of indication information etc., are applied in the page executive logging information in page implementation until testing apparatus stops obtaining mobile web.
Acquisition device 11 obtains mobile web and is applied in the page executive logging information in page implementation.Particularly, acquisition device 11 passes through based on various communication protocol (CommunicationsProtocol), by various data transmission interfaces, can provide described mobile web to be applied in the equipment of the page executive logging information in page implementation with other, as log information or the page executive logging information database etc. of mobile web application carry out alternately, obtaining mobile web and being applied in the page executive logging information in page implementation; Or, described acquisition device 11 is by directly loading described mobile web application, based on various communication protocol (CommunicationsProtocol), by various data transmission interfaces, Real-time Obtaining move that web is applied in page executive logging information in page loading procedure or according to user the interbehavior in described mobile web application, obtain the page executive logging information in the page implementation corresponding with described interbehavior.Wherein, described mobile web application includes but not limited to the mobile web app developing based on all kinds of Mobile operating systems or mobile browser kernel; Described page executive logging information includes but not limited to that described mobile web is applied in page loading procedure or the temporal information of carrying out producing in reciprocal process with user, flow information, system occupancy rate information, drawing frame number information etc.For example, in the time of the interactive operations such as user and described mobile web application are clicked, refreshed, input, acquisition device 11 passes through based on various communication protocol, be connected with the corresponding interface of described mobile web application, obtain the page executive logging information producing when the page is carried out in user interaction process.At this, " communication protocol " comprises the transportation protocol of compunication, as TCP/IP, UDP, FTP, ICMP, NetBEUI etc., or be present in other form communications in computing machine, the message transmission protocol for example, in the communication between the object of object based programming the inside or operating system between distinct program or computing machine disparate modules.
Preferably, described acquisition device 11 can also utilize browser kernel to carry out the page of described mobile web application, and obtains described mobile web by the interface of described browser kernel and be applied in the page executive logging information in this implementation.Particularly, described acquisition device 11 can also utilize described browser kernel, on mobile platform or test platform, start described mobile web application, according to the setting of described mobile web application, carry out one or more pages of described mobile web application, by the interface of described browser kernel, obtain described mobile web and be applied in the page executive logging information in this implementation.Wherein, described browser kernel includes but not limited to webkit (as safari, chrome), presto (as opera), trident (as IE, TT, roam etc.), gecko (as firefox) etc.
Generating apparatus 12, according to described page executive logging information, generates the page performance information of described mobile web application.Particularly, the page executive logging information that generating apparatus 12 obtains according to described acquisition device 11, by described page executive logging information is carried out as processing such as extraction, classification, calculating, by the page performance information of mobile web application described in described page executive logging Information generation.
Wherein, described page performance information comprises following at least any one:
The interaction response time of-described mobile web application, as by as described in process corresponding to the mutual initiation of same interactive operation and two temporal informations of interaction response in page executive logging information, obtain the interaction response time for this interactive operation; Or, the described interaction response time as described in mobile web be applied in user interaction process in, each function (as JavaScript function) is carried out the shared time, to be used for weighing the speed for the response of user interactive;
The drawing frequency information of-described mobile web application, as according to the drawing frame number per second of mobile web application, generates described drawing frequency information FPS, to be used for the weighing speed that game class application is drawn, judges the smooth degree of described mobile web application;
The network request time of-described mobile web application, as according to as described in each webpage of mobile web application or being written into initial time and being written into the deadline of application space, obtain the network request time of described mobile web application, to be used for weighing the speed that is written into of described mobile web application;
The network traffic information of-described mobile web application, as according to as described in mobile web application to as described in the use information of Internet resources, obtain the network traffic information of described mobile web application, to weigh size, the resources occupation rate etc. of described mobile web application.
Determining device 13, according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.Particularly, the page performance information that determining device 13 generates according to described generating apparatus 12, by described page performance information being passed through to the modes such as coupling, the database that improves indication information with the described page mates, to determine that the corresponding page improves indication information; Or according to described page performance information, determine that described page performance information and the page improve the relation between threshold value, improve threshold value if exceed the page, illustrate that described page performance need improves, thereby according to the value of described page performance information, select the page corresponding with described page performance information to improve indication information.For example, when described page performance information comprises the drawing frequency information that described mobile web applies, described determining device 13 can be according to the numerical values recited of described drawing frequency, improve indication information by mating this numerical value with the corresponding page, determine corresponding to the page of described mobile web application and improve indication information; When the numerical value of described drawing frequency is during lower than certain threshold value, judge that described mobile web is applied as not smooth, and the CPU of described mobile web application is taken with EMS memory occupation function and obtains and analyze, take the function that resource is high and call described, return code position, by described code position, take resource situation etc. and determine corresponding to the page of described mobile web application and improve indication information; Further, can also be according to predetermined improvement indication information database, determine with described in take corresponding the improving one's methods etc. of function that resource is high, and will described in improve one's methods also as described page improvement indication information.
Fig. 2 illustrate in accordance with a preferred embodiment of the present invention a kind of for to mobile web application carry out the testing apparatus schematic diagram of test processes; Wherein, described testing apparatus comprises acquisition device 11 ', generating apparatus 12 ', determining device 13 ', and described determining device 13 ' comprises detecting unit 131 ' and determining unit 132 '.Particularly, acquisition device 11 ' obtains mobile web and is applied in the page executive logging information in page implementation; Generating apparatus 12 ', according to described page executive logging information, generates the page performance information of described mobile web application; Detecting unit 131 ' detects described page performance information and whether meets the corresponding threshold information that described mobile web applies; When described page performance information meets described corresponding threshold information, determining unit 132 ', according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.Wherein, described acquisition device 11 ', generating apparatus 12 ' are identical with corresponding intrument shown in Fig. 1 or basic identical respectively, so locate to repeat no more, and mode is by reference contained in this.
Between above-mentioned each device, be constant work, at this, it will be understood by those skilled in the art that " continuing " refers to above-mentioned each device respectively in real time, or according to the mode of operation requirement of setting or adjust in real time, the detection, the page that carry out the obtaining of page executive logging information, the generation of page performance information, corresponding threshold information improve determining of indication information etc., are applied in the page executive logging information in page implementation until testing apparatus stops obtaining mobile web.
Detecting unit 131 ' detects described page performance information and whether meets the corresponding threshold information that described mobile web applies.Particularly, described detecting unit 131 ' is by detecting described page performance information, for example the numerical value of described page performance information is compared with the corresponding threshold information of described mobile web application, whether meet thereby detect described page performance information the corresponding threshold information that described mobile web applies.Wherein, described threshold information can obtain according to system intialization or User Defined; Also can utilize the modes such as machine learning to learn to obtain based on historical data; At this, different threshold information corresponding to page performance information.
When described page performance information meets described corresponding threshold information, determining unit 132 ', according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.Particularly, in the time that described page performance information meets described corresponding threshold information, as as described in interaction response time of mobile web application exceed corresponding threshold value set the interaction response time time, or the network traffic information of described mobile web application be greater than corresponding threshold value set network traffics time, determining unit 132 ' is according to described page performance information, by described page performance information being passed through to the modes such as coupling, the database that improves indication information with the described page mates, to determine that the corresponding page improves indication information; Further, can also be according to the difference of described page performance information and described threshold information, determine that the corresponding page improves indication information.
Preferably, described page performance information comprises the interaction response time of described mobile web application, exceed described corresponding threshold information when the described interaction response time, described determining unit 132 ' can also determine that the described page improves indication information, wherein, described page improvement indication information comprises the corresponding time consumption information of described page implementation.Particularly, when described page performance information comprises the interaction response time that described mobile web applies, wherein, the described interaction response time as described in process corresponding to the mutual initiation of same interactive operation and two temporal informations of interaction response in page executive logging information, obtain the interaction response time for this interactive operation; Or, the described interaction response time as described in mobile web be applied in user interaction process in, each function (as JavaScript function) is carried out the shared time, to be used for weighing the speed for the response of user interactive.Exceed the threshold information of described correspondence when the described interaction response time, described determining unit 132 ' judges that described corresponding interactive operation of interaction response time is not smooth, time consumption information in each reciprocal process being associated with described interactive operation is included in to the described page and improves in indication information, thereby determine that the described page improves indication information; Further, if inclusion function calls in described reciprocal process, described determining unit 132 ' can also be included in corresponding described function call code position information the described page and improve in indication information.
Preferably, described page performance information comprises the network request time of described mobile web application, exceed described corresponding threshold information when the described network request time, described determining unit 132 ' can also determine that the described page improves indication information, wherein, the described page improves the execution time information that indication information comprises page elements in described page implementation.Particularly, when described page performance information comprises the network request time that described mobile web applies, wherein, the described network request time as according to as described in each webpage of mobile web application or being written into initial time and being written into the deadline of application space, obtain the network request time of described mobile web application, to be used for weighing the speed that is written into of described mobile web application; Exceed described corresponding threshold information when the described network request time, described determining unit 132 ' judges that the page elements execution of described corresponding interactive operation of network request time or mobile web application is not smooth, by the execution time of page elements or the execution time information of described interactive operation of described mobile web application are carried out to statistical study, the execution time information of page elements in described page implementation is included in to the described page and improves in indication information, thereby determine that the described page improves indication information.Further, described execution time information can be arranged in order according to the length of execution time; Further, arrange after the described execution time can also being multiplied by corresponding weight, as for ajax request, described execution time information can be multiplied by after corresponding weight (this weight is greater than 1), be arranged in order according to the length of execution time.
More preferably, described testing apparatus also comprises threshold value determining device (not shown), and wherein, described threshold value determining device is applied corresponding network access environment according to described mobile web, determines described corresponding threshold information.Particularly, described threshold value determining device can also by directly by with corresponding network access environment database or provider's direct interaction, obtain described mobile web and apply corresponding network access environment information, or according to the page executive logging information of described mobile web application, analysis is obtained described mobile web and is applied corresponding network access environment information; By according to described network access environment, the information such as the numerical value to described threshold information are determined.For example, according to predetermined network access environment, as environment such as 2G/3G/Wifi, according to the theoretical velocity of the existing 2G/3G/Wifi standard of China, the in the situation that of known network flow, calculate the theoretical execution time in this environment in theoretical situation, and using this theoretical execution time as described corresponding threshold information; Exceed the described theory of correspondences execution time when the network request time of the described mobile web application to should mobile environment, think that described mobile web application operation is not smooth, under this mobile environment, may cause user to experience not good.
Preferably, described page performance information comprises the network traffic information of described mobile web application, when described network traffic information exceedes described corresponding threshold information, described determining unit 132 ' can also determine that the described page improves indication information, wherein, described page improvement indication information comprises page elements sequencing information by size in described mobile web page.Particularly, when described page performance information comprises the network traffic information that described mobile web applies, wherein, described network traffic information as according to as described in mobile web application to as described in the use information of Internet resources, obtain the network traffic information of described mobile web application, to weigh size, the resources occupation rate etc. of described mobile web application, when described network traffic information exceedes described corresponding threshold information, described determining unit 132 ' judges that the shared Internet resources of the corresponding mobile web application of described network traffic information are larger, shared network traffic information by the page elements to described mobile web application carries out statistical study, according to described network traffic information, determine the size information of the page elements of applying with the corresponding described mobile web of described network traffic information, page elements sequencing information by size in described mobile web page is included in to the described page to be improved in indication information, thereby determine that the described page improves indication information.
Fig. 3 illustrate according to a further aspect of the present invention a kind of for to mobile web application carry out the method flow diagram of test processes.Particularly, in step s 1, testing apparatus is obtained mobile web and is applied in the page executive logging information in page implementation; In step s2, testing apparatus, according to described page executive logging information, generates the page performance information of described mobile web application; In step s3, testing apparatus, according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.
Between above steps, be constant work, at this, it will be understood by those skilled in the art that " continuing " refers to that above steps respectively in real time, or according to the mode of operation requirement of setting or adjust in real time, the generation, the page that carry out the obtaining of page executive logging information, page performance information improve determining of indication information etc., are applied in the page executive logging information in page implementation until testing apparatus stops obtaining mobile web.
In step s 1, testing apparatus is obtained mobile web and is applied in the page executive logging information in page implementation.Particularly, in step s1, testing apparatus is passed through based on various communication protocol (Communications Protocol), by various data transmission interfaces, can provide described mobile web to be applied in the equipment of the page executive logging information in page implementation with other, as log information or the page executive logging information database etc. of mobile web application carry out alternately, obtaining mobile web and being applied in the page executive logging information in page implementation; Or, in step s1, testing apparatus is by directly loading described mobile web application, based on various communication protocol (Communications Protocol), by various data transmission interfaces, Real-time Obtaining move that web is applied in page executive logging information in page loading procedure or according to user the interbehavior in described mobile web application, obtain the page executive logging information in the page implementation corresponding with described interbehavior.Wherein, described mobile web application includes but not limited to the mobile web app developing based on all kinds of Mobile operating systems or mobile browser kernel; Described page executive logging information includes but not limited to that described mobile web is applied in page loading procedure or the temporal information of carrying out producing in reciprocal process with user, flow information, system occupancy rate information, drawing frame number information etc.For example, in the time of the interactive operations such as user and described mobile web application are clicked, refreshed, input, in step s1, testing apparatus is passed through based on various communication protocol, be connected with the corresponding interface of described mobile web application, obtain the page executive logging information producing when the page is carried out in user interaction process.At this, " communication protocol " comprises the transportation protocol of compunication, as TCP/IP, UDP, FTP, ICMP, NetBEUI etc., or be present in other form communications in computing machine, the message transmission protocol for example, in the communication between the object of object based programming the inside or operating system between distinct program or computing machine disparate modules.
Preferably, in step s1, testing apparatus can also utilize browser kernel to carry out the page of described mobile web application, and obtains described mobile web by the interface of described browser kernel and be applied in the page executive logging information in this implementation.Particularly, in step s1, testing apparatus can also be utilized described browser kernel, on mobile platform or test platform, start described mobile web application, according to the setting of described mobile web application, one or more pages of carrying out described mobile web application, by the interface of described browser kernel, obtain described mobile web and are applied in the page executive logging information in this implementation.Wherein, described browser kernel includes but not limited to webkit (as safari, chrome), presto (as opera), trident (as IE, TT, roam etc.), gecko (as firefox) etc.
In step s2, testing apparatus, according to described page executive logging information, generates the page performance information of described mobile web application.Particularly, in step s2, the page executive logging information that testing apparatus is obtained according to described step s1, by described page executive logging information is carried out as processing such as extraction, classification, calculating, by the page performance information of mobile web application described in described page executive logging Information generation.
Wherein, described page performance information comprises following at least any one:
The interaction response time of-described mobile web application, as by as described in process corresponding to the mutual initiation of same interactive operation and two temporal informations of interaction response in page executive logging information, obtain the interaction response time for this interactive operation; Or, the described interaction response time as described in mobile web be applied in user interaction process in, each function (as JavaScript function) is carried out the shared time, to be used for weighing the speed for the response of user interactive;
The drawing frequency information of-described mobile web application, as according to the drawing frame number per second of mobile web application, generates described drawing frequency information FPS, to be used for the weighing speed that game class application is drawn, judges the smooth degree of described mobile web application;
The network request time of-described mobile web application, as according to as described in each webpage of mobile web application or being written into initial time and being written into the deadline of application space, obtain the network request time of described mobile web application, to be used for weighing the speed that is written into of described mobile web application;
The network traffic information of-described mobile web application, as according to as described in mobile web application to as described in the use information of Internet resources, obtain the network traffic information of described mobile web application, to weigh size, the resources occupation rate etc. of described mobile web application.
In step s3, testing apparatus, according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.Particularly, in step s3, the page performance information that testing apparatus generates according to described step s2, by passing through the described page performance information modes such as coupling, the database that improves indication information with the described page mates, to determine that the corresponding page improves indication information; Or according to described page performance information, determine that described page performance information and the page improve the relation between threshold value, improve threshold value if exceed the page, illustrate that described page performance need improves, thereby according to the value of described page performance information, select the page corresponding with described page performance information to improve indication information.For example, when described page performance information comprises the drawing frequency information that described mobile web applies, in step s3, testing apparatus can be according to the numerical values recited of described drawing frequency, improve indication information by mating this numerical value with the corresponding page, determine corresponding to the page of described mobile web application and improve indication information; When the numerical value of described drawing frequency is during lower than certain threshold value, judge that described mobile web is applied as not smooth, and the CPU of described mobile web application is taken with EMS memory occupation function and obtains and analyze, take the function that resource is high and call described, return code position, by described code position, take resource situation etc. and determine corresponding to the page of described mobile web application and improve indication information; Further, can also be according to predetermined improvement indication information database, determine with described in take corresponding the improving one's methods etc. of function that resource is high, and will described in improve one's methods also as described page improvement indication information.
Fig. 4 illustrate in accordance with a preferred embodiment of the present invention a kind of for to mobile web application carry out the method flow diagram of test processes.Particularly, in step s1 ', testing apparatus is obtained mobile web and is applied in the page executive logging information in page implementation; In step s2 ', testing apparatus, according to described page executive logging information, generates the page performance information of described mobile web application; In step s31 ', testing apparatus detects described page performance information and whether meets the corresponding threshold information that described mobile web applies; When described page performance information meets described corresponding threshold information, in step s32 ', testing apparatus, according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.Wherein, described step s1 ', step s2 ' are identical or basic identical with corresponding step shown in Fig. 3 respectively, so locate to repeat no more, and mode is by reference contained in this.
Between above steps, be constant work, at this, it will be understood by those skilled in the art that " continuing " refers to that above steps respectively in real time, or according to the mode of operation requirement of setting or adjust in real time, the detection, the page that carry out the obtaining of page executive logging information, the generation of page performance information, corresponding threshold information improve determining of indication information etc., are applied in the page executive logging information in page implementation until testing apparatus stops obtaining mobile web.
In step s31 ', testing apparatus detects described page performance information and whether meets the corresponding threshold information that described mobile web applies.Particularly, in step s31 ', testing apparatus is by detecting described page performance information, for example the numerical value of described page performance information is compared with the corresponding threshold information of described mobile web application, whether meet thereby detect described page performance information the corresponding threshold information that described mobile web applies.Wherein, described threshold information can obtain according to system intialization or User Defined; Also can utilize the modes such as machine learning to learn to obtain based on historical data; At this, different threshold information corresponding to page performance information.
When described page performance information meets described corresponding threshold information, in step s32 ', testing apparatus, according to described page performance information, is determined corresponding to the page of described mobile web application and is improved indication information.Particularly, in the time that described page performance information meets described corresponding threshold information, as as described in interaction response time of mobile web application exceed corresponding threshold value set the interaction response time time, or the network traffic information of described mobile web application be greater than corresponding threshold value set network traffics time, in step s32 ', testing apparatus is according to described page performance information, by described page performance information being passed through to the modes such as coupling, the database that improves indication information with the described page mates, to determine that the corresponding page improves indication information; Further, can also be according to the difference of described page performance information and described threshold information, determine that the corresponding page improves indication information.
Preferably, described page performance information comprises the interaction response time of described mobile web application, exceed described corresponding threshold information when the described interaction response time, in step s32 ', testing apparatus can also determine that the described page improves indication information, wherein, described page improvement indication information comprises the corresponding time consumption information of described page implementation.Particularly, when described page performance information comprises the interaction response time that described mobile web applies, wherein, the described interaction response time as described in process corresponding to the mutual initiation of same interactive operation and two temporal informations of interaction response in page executive logging information, obtain the interaction response time for this interactive operation; Or, the described interaction response time as described in mobile web be applied in user interaction process in, each function (as JavaScript function) is carried out the shared time, to be used for weighing the speed for the response of user interactive.Exceed the threshold information of described correspondence when the described interaction response time, in step s32 ', testing apparatus judges that described corresponding interactive operation of interaction response time is not smooth, time consumption information in each reciprocal process being associated with described interactive operation is included in to the described page and improves in indication information, thereby determine that the described page improves indication information; Further, if inclusion function calls in described reciprocal process, in step s32 ', testing apparatus can also be included in corresponding described function call code position information the described page and improve in indication information.
Preferably, described page performance information comprises the network request time of described mobile web application, exceed described corresponding threshold information when the described network request time, in step s32 ', testing apparatus can also determine that the described page improves indication information, wherein, the described page improves the execution time information that indication information comprises page elements in described page implementation.Particularly, when described page performance information comprises the network request time that described mobile web applies, wherein, the described network request time as according to as described in each webpage of mobile web application or being written into initial time and being written into the deadline of application space, obtain the network request time of described mobile web application, to be used for weighing the speed that is written into of described mobile web application; Exceed described corresponding threshold information when the described network request time, in step s32 ', testing apparatus judges that the page elements execution of described corresponding interactive operation of network request time or mobile web application is not smooth, by the execution time of page elements or the execution time information of described interactive operation of described mobile web application are carried out to statistical study, the execution time information of page elements in described page implementation is included in to the described page and improves in indication information, thereby determine that the described page improves indication information.Further, described execution time information can be arranged in order according to the length of execution time; Further, arrange after the described execution time can also being multiplied by corresponding weight, as for ajax request, described execution time information can be multiplied by after corresponding weight (this weight is greater than 1), be arranged in order according to the length of execution time.
More preferably, described testing apparatus also comprises step s4 ' (not shown), and wherein, in step s4 ', testing apparatus is applied corresponding network access environment according to described mobile web, determines described corresponding threshold information.Particularly, in step s4 ', testing apparatus can also by directly by with corresponding network access environment database or provider's direct interaction, obtain described mobile web and apply corresponding network access environment information, or according to the page executive logging information of described mobile web application, analysis is obtained described mobile web and is applied corresponding network access environment information; By according to described network access environment, the information such as the numerical value to described threshold information are determined.For example, according to predetermined network access environment, as environment such as 2G/3G/Wifi, according to the theoretical velocity of the existing 2G/3G/Wifi standard of China, the in the situation that of known network flow, calculate the theoretical execution time in this environment in theoretical situation, and using this theoretical execution time as described corresponding threshold information; Exceed the described theory of correspondences execution time when the network request time of the described mobile web application to should mobile environment, think that described mobile web application operation is not smooth, under this mobile environment, may cause user to experience not good.
Preferably, described page performance information comprises the network traffic information of described mobile web application, when described network traffic information exceedes described corresponding threshold information, in step s32 ', testing apparatus can also determine that the described page improves indication information, wherein, described page improvement indication information comprises page elements sequencing information by size in described mobile web page.Particularly, when described page performance information comprises the network traffic information that described mobile web applies, wherein, described network traffic information as according to as described in mobile web application to as described in the use information of Internet resources, obtain the network traffic information of described mobile web application, to weigh size, the resources occupation rate etc. of described mobile web application, when described network traffic information exceedes described corresponding threshold information, in step s32 ', testing apparatus judges that the shared Internet resources of the corresponding mobile web application of described network traffic information are larger, shared network traffic information by the page elements to described mobile web application carries out statistical study, according to described network traffic information, determine the size information of the page elements of applying with the corresponding described mobile web of described network traffic information, page elements sequencing information by size in described mobile web page is included in to the described page to be improved in indication information, thereby determine that the described page improves indication information.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and in the situation that not deviating from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, is therefore intended to all changes that drop in the implication and the scope that are equal to important document of claim to be included in the present invention.Any Reference numeral in claim should be considered as limiting related claim.In addition, obviously other unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.Multiple unit of stating in device claim or device also can be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.

Claims (16)

1. for mobile web application being carried out to a method for test processes, wherein, the method comprises the following steps:
A obtains mobile web and is applied in the page executive logging information in page implementation;
B, according to described page executive logging information, generates the page performance information of described mobile web application;
C, according to described page performance information, determines corresponding to the page of described mobile web application and improves indication information.
2. method according to claim 1, wherein, described step a comprises:
-utilize browser kernel to carry out the page of described mobile web application, and obtain described mobile web by the interface of described browser kernel and be applied in the page executive logging information in this implementation.
3. method according to claim 1 and 2, wherein, described page performance information comprises following at least any one:
The interaction response time of-described mobile web application;
The drawing frequency information of-described mobile web application;
The network request time of-described mobile web application;
The network traffic information of-described mobile web application.
4. according to the method in any one of claims 1 to 3, wherein, described step c comprises:
-detect described page performance information and whether meet the corresponding threshold information of described mobile web application;
C1, when described page performance information meets described corresponding threshold information, according to described page performance information, determines corresponding to the page of described mobile web application and improves indication information.
5. method according to claim 4, wherein, described page performance information comprises the interaction response time of described mobile web application;
Wherein, described step c1 comprises:
-exceed described corresponding threshold information when the described interaction response time, determine that the described page improves indication information, wherein, the described page improves indication information and comprises the corresponding time consumption information of described page implementation.
6. method according to claim 4, wherein, described page performance information comprises the network request time of described mobile web application;
Wherein, described step c1 comprises:
-exceed described corresponding threshold information when the described network request time, determine that the described page improves indication information, wherein, the described page improves the execution time information that indication information comprises page elements in described page implementation.
7. method according to claim 6, wherein, the method also comprises:
-apply corresponding network access environment according to described mobile web, determine described corresponding threshold information.
8. method according to claim 4, wherein, described page performance information comprises the network traffic information of described mobile web application;
Wherein, described step c1 comprises:
-when described network traffic information exceedes described corresponding threshold information, determine that the described page improves indication information, wherein, the described page improves indication information and comprises page elements sequencing information by size in described mobile web page.
9. for mobile web application being carried out to a testing apparatus for test processes, wherein, this equipment comprises:
Acquisition device, is applied in the page executive logging information of page implementation for obtaining mobile web;
Generating apparatus, for according to described page executive logging information, generates the page performance information of described mobile web application;
Determining device, for according to described page performance information, determines corresponding to the page of described mobile web application and improves indication information.
10. testing apparatus according to claim 9, wherein, described acquisition device is used for:
-utilize browser kernel to carry out the page of described mobile web application, and obtain described mobile web by the interface of described browser kernel and be applied in the page executive logging information in this implementation.
11. according to the testing apparatus described in claim 9 or 10, and wherein, described page performance information comprises following at least any one:
The interaction response time of-described mobile web application;
The drawing frequency information of-described mobile web application;
The network request time of-described mobile web application;
The network traffic information of-described mobile web application.
12. according to the testing apparatus described in any one in claim 9 to 11, and wherein, described determining device comprises:
Whether detecting unit, meet for detection of described page performance information the corresponding threshold information that described mobile web applies;
Determining unit, for meeting described corresponding threshold information when described page performance information, according to described page performance information, determines corresponding to the page of described mobile web application and improves indication information.
13. testing apparatuss according to claim 12, wherein, described page performance information comprises the interaction response time of described mobile web application;
Wherein, described determining unit is used for:
-exceed described corresponding threshold information when the described interaction response time, determine that the described page improves indication information, wherein, the described page improves indication information and comprises the corresponding time consumption information of described page implementation.
14. testing apparatuss according to claim 12, wherein, described page performance information comprises the network request time of described mobile web application;
Wherein, described determining unit is used for:
-exceed described corresponding threshold information when the described network request time, determine that the described page improves indication information, wherein, the described page improves the execution time information that indication information comprises page elements in described page implementation.
15. testing apparatuss according to claim 14, wherein, this equipment also comprises:
Threshold value determining unit, for applying corresponding network access environment according to described mobile web, determines described corresponding threshold information.
16. testing apparatuss according to claim 12, wherein, described page performance information comprises the network traffic information of described mobile web application;
Wherein, described determining unit is used for:
-when described network traffic information exceedes described corresponding threshold information, determine that the described page improves indication information, wherein, the described page improves indication information and comprises page elements sequencing information by size in described mobile web page.
CN201210573055.2A 2012-12-25 2012-12-25 A kind of method and apparatus for carrying out test processes to mobile web applications Active CN103902441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210573055.2A CN103902441B (en) 2012-12-25 2012-12-25 A kind of method and apparatus for carrying out test processes to mobile web applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210573055.2A CN103902441B (en) 2012-12-25 2012-12-25 A kind of method and apparatus for carrying out test processes to mobile web applications

Publications (2)

Publication Number Publication Date
CN103902441A true CN103902441A (en) 2014-07-02
CN103902441B CN103902441B (en) 2018-09-07

Family

ID=50993776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210573055.2A Active CN103902441B (en) 2012-12-25 2012-12-25 A kind of method and apparatus for carrying out test processes to mobile web applications

Country Status (1)

Country Link
CN (1) CN103902441B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630566A (en) * 2016-02-26 2016-06-01 北京奇虎科技有限公司 Application page loading duration determining method and application page loading duration determining device
US9788219B1 (en) 2015-08-25 2017-10-10 Amdocs Development Limited System, method, and computer program for remotely driving mobile web application testing on mobile devices
CN108399129A (en) * 2018-02-28 2018-08-14 车智互联(北京)科技有限公司 H5 page method for testing performance
CN108614762A (en) * 2016-12-09 2018-10-02 武汉斗鱼网络科技有限公司 A kind of browser testing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080229287A1 (en) * 2005-08-11 2008-09-18 International Business Machines Corporation Method and Process to Automatically Perform Test Builds of Translated Files for a Software Product
CN101882105A (en) * 2010-06-01 2010-11-10 华南理工大学 Method for testing response time of Web page under concurrent environment
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080229287A1 (en) * 2005-08-11 2008-09-18 International Business Machines Corporation Method and Process to Automatically Perform Test Builds of Translated Files for a Software Product
CN101882105A (en) * 2010-06-01 2010-11-10 华南理工大学 Method for testing response time of Web page under concurrent environment
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9788219B1 (en) 2015-08-25 2017-10-10 Amdocs Development Limited System, method, and computer program for remotely driving mobile web application testing on mobile devices
CN105630566A (en) * 2016-02-26 2016-06-01 北京奇虎科技有限公司 Application page loading duration determining method and application page loading duration determining device
CN108614762A (en) * 2016-12-09 2018-10-02 武汉斗鱼网络科技有限公司 A kind of browser testing method and device
CN108399129A (en) * 2018-02-28 2018-08-14 车智互联(北京)科技有限公司 H5 page method for testing performance
CN108399129B (en) * 2018-02-28 2021-03-23 车智互联(北京)科技有限公司 H5 page performance detection method

Also Published As

Publication number Publication date
CN103902441B (en) 2018-09-07

Similar Documents

Publication Publication Date Title
US10063645B2 (en) Method and system for monitoring and tracking browsing activity on handled devices
CN102737019A (en) Machine behavior determining method, webpage browser and webpage server
CN105045620B (en) Measure the method and detection device of webpage head screen load time
CN106021079A (en) A Web application performance testing method based on a user frequent access sequence model
CN105210051A (en) Estimating visibility of content items
CN104881273B (en) A kind of analysis method and terminal device of webpage rendering
CN103455403B (en) Method of testing and device
CN104052809A (en) Distribution control method and device for web testing
CN103902441A (en) Method and device for carrying out testing processing on mobile web application
US20190268249A1 (en) Systems and methods for measuring media performance on end-user devices
CN103744941A (en) Method and device for determining website evaluation result based on website attribute information
CN103581987B (en) The test method and device of the page download speed of mobile terminal device
CN109739712B (en) FPGA accelerator card transmission performance test method, device, equipment and medium
CN103577447A (en) Method and equipment used for determining page type information of target pages
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN103902913B (en) A kind of method and apparatus for carrying out safe handling to web applications
CN104158697B (en) A kind of dead chain detection method and device
CN103139004B (en) Network speed limit instrument is utilized to simulate the method and system of the network bandwidth
CN107784107A (en) Dark chain detection method and device based on flight behavior analysis
CN109710329A (en) Web page rendering method, apparatus and terminal device
CN106470129B (en) Realize method, system, server and the terminal of webpage head screen latency measurement
CN102866945A (en) Method and device for providing first application test information corresponding to users
CN103902304A (en) Method and device for evaluating Web application and system
CN104808913A (en) Event responding method and device
CN103744950A (en) Evaluation method for IPv6 (Internet Protocol Version 6) support degree of website

Legal Events

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