CN103902441B - A kind of method and apparatus for carrying out test processes to mobile web applications - Google Patents

A kind of method and apparatus for carrying out test processes to mobile web applications Download PDF

Info

Publication number
CN103902441B
CN103902441B CN201210573055.2A CN201210573055A CN103902441B CN 103902441 B CN103902441 B CN 103902441B CN 201210573055 A CN201210573055 A CN 201210573055A CN 103902441 B CN103902441 B CN 103902441B
Authority
CN
China
Prior art keywords
page
information
mobile web
web applications
performance information
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.)
Active
Application number
CN201210573055.2A
Other languages
Chinese (zh)
Other versions
CN103902441A (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

Abstract

The object of the present invention is to provide a kind of method and apparatus for carrying out test processes to mobile web applications.Test equipment obtains mobile web and the page in page implementation procedure is applied to execute record information;Record information is executed according to the page, generates the page performance information of the mobile web applications;According to the page performance information, determine that the page for corresponding to the mobile web applications improves instruction information.Compared with prior art, the present invention applies the page in page implementation procedure to execute record information by the mobile web of acquisition, the page performance information of the mobile web applications is generated, and according to the page performance information, determines that the page for corresponding to the mobile web applications improves instruction information;To improve the one-sidedness of current web tests, obtain more targetedly page performance information, the acquired specific aim and accuracy for improving instruction information is improved, testing efficiency and test quality to the mobile web applications is improved, improves the usage experience of user.

Description

A kind of method and apparatus for carrying out test processes to mobile web applications
Technical field
The present invention relates to mobile Internet fields more particularly to a kind of for carrying out test processes to mobile web applications Technology.
Background technology
As a kind of trend of mobile client application development, for tradition is locally applied, Web applications closely according to It holds in the palm in internet, there is preferably portable and cross-platform ability, and combined more closely with emerging cloud.Therefore, In recent years, the quality and quantity of Web applications, which has, is obviously improved.
Since the Web applications run on a mobile platform are limited by the limitation of mobile platform Network status and local resource, With it is traditional it is locally applied compared with, Web applies in performance that there is a certain distance.Compared with traditional webpage development, Web It has been placed in front end (i.e. HTML/JavaScript/CSS modules) using by the realization of more functions, thus its performance bottleneck Has new feature.Performance is to influence an important indicator of user experience, however survey for the performance of Web applications Examination, so far still without intuitive effective solution scheme.
Invention content
The object of the present invention is to provide a kind of method and apparatus for carrying out test processes to mobile web applications.
According to an aspect of the invention, there is provided a kind of method for carrying out test processes to mobile web applications, In, this approach includes the following steps:
A obtains mobile web and the page in page implementation procedure is applied to execute record information;
B executes record information according to the page, generates the page performance information of the mobile web applications;
C determines that the page for corresponding to the mobile web applications improves instruction information according to the page performance information.
According to another aspect of the present invention, a kind of test for carrying out test processes to mobile web applications is additionally provided Equipment, wherein the equipment includes:
Acquisition device applies the page in page implementation procedure to execute record information for obtaining mobile web;
Generating means generate the page performance letter of the mobile web applications for executing record information according to the page Breath;
Determining device, for according to the page performance information, determining that the page for corresponding to the mobile web applications improves Indicate information.
Compared with prior art, the present invention applies the page in page implementation procedure to execute note by the mobile web of acquisition Information is recorded, the page performance information of the mobile web applications is generated, and according to the page performance information, determines and corresponds to institute The page for stating mobile web applications improves instruction information;To improve the one-sidedness of current web tests, obtains and be more directed to Property page performance information, improve the acquired specific aim and accuracy for improving instruction information, improve to the mobile web The testing efficiency and test quality of application, improve the usage experience of user.Moreover, the present invention can also pass through the browser Kernel interface obtains the page and executes record, to information acquired in improving accuracy with it is comprehensive, and then improve The one-sidedness of current web tests obtains more targetedly page performance information, improves acquired instruction information of improving Specific aim and accuracy improve testing efficiency and test quality to the mobile web applications, and improve user uses body It tests.Moreover, the present invention can also detect the correspondence threshold value the letter whether page performance information meets the mobile web applications Breath;When the page performance information meets the corresponding threshold information, according to the page performance information, determination corresponds to described The page of mobile web applications improves instruction information;Further, the page performance information includes the mobile web applications The interaction response time or the network request time of mobile web applications or the network flow letter of the mobile web applications Breath;To handle respectively different page performance informations, the acquired specific aim for improving instruction information and standard are improved True property improves testing efficiency and test quality to the mobile web applications, improves the usage experience of user.Moreover, this Invention can also apply corresponding network access environment according to the mobile web, determine the corresponding threshold information;To The acquired specific aim and accuracy for improving instruction information is further improved, the test to the mobile web applications is improved Efficiency and test quality improve the usage experience of user.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is shown according to a kind of test equipment for carrying out test processes to mobile web applications of one aspect of the invention Schematic diagram;
It is a kind of for carrying out test processes to mobile web applications Fig. 2 shows in accordance with a preferred embodiment of the present invention Test equipment schematic diagram;
Fig. 3 shows a kind of method for carrying out test processes to mobile web applications according to a further aspect of the present invention Flow chart;
Fig. 4 shows in accordance with a preferred embodiment of the present invention a kind of for carrying out test processes to mobile web applications Method flow diagram.
Same or analogous reference numeral represents same or analogous component in attached drawing.
Specific implementation mode
Present invention is further described in detail below in conjunction with the accompanying drawings.
Fig. 1 is shown according to a kind of test equipment for carrying out test processes to mobile web applications of one aspect of the invention Schematic diagram;Wherein, which includes acquisition device 11, generating means 12, determining device 13.Specifically, acquisition device 11 Obtaining mobile web applies the page in page implementation procedure to execute record information;Generating means 12 are executed according to the page Information is recorded, the page performance information of the mobile web applications is generated;Determining device 13 is according to the page performance information, really Surely the page for corresponding to the mobile web applications improves instruction information.It is set here, the test equipment includes but not limited to network Standby, user equipment or the network equipment are integrated constituted equipment by network with user equipment.Wherein, the network equipment It includes but not limited to that computer, network host, single network server, multiple network server collection or multiple servers are constituted Cloud;Here, cloud is made of a large amount of computers or network server for being based on cloud computing (CloudComputing), wherein cloud Calculating is one kind of Distributed Calculation, a virtual supercomputer being made of the computer collection of a group loose couplings.It is described User equipment its include but not limited to any type can with user by keyboard, remote controler, touch tablet or voice-operated device into pedestrian The electronic product, such as computer, smart mobile phone, PDA, game machine or IPTV etc. of machine interaction.The network includes but not limited to Internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network, wireless self-organization network (Ad Hoc networks) etc..People in the art Member will be understood that other test equipments are equally applicable to the present invention, should also be included within the scope of the present invention, and herein It is incorporated herein by reference.
It constantly works between above-mentioned each device, here, it will be understood by those skilled in the art that on " lasting " refer to It states each device difference in real time, or according to the operating mode requirement of setting or real-time adjustment, carries out page execution record and believe The acquisition of breath, the generation of page performance information, the page improve the determination etc. for indicating information, until test equipment stops obtaining movement Web applies the page in page implementation procedure to execute record information.
Acquisition device 11 obtains mobile web and the page in page implementation procedure is applied to execute record information.Specifically, it obtains Take device 11 by being based on various communication protocols (CommunicationsProtocol), by various data transmission interfaces, with Other are capable of providing the equipment that the mobile web applies the page in page implementation procedure to execute record information, such as mobile web The log information or the page of application execute recording information data library etc. and interact, and the mobile web of acquisition is applied to be executed in the page The page in journey executes record information;Alternatively, the acquisition device 11 is applied by being loaded directly into the mobile web, based on each Kind communication protocol (CommunicationsProtocol) is obtained mobile web and is applied in real time by various data transmission interfaces The page in page loading procedure executes record information or applies upper interbehavior in the mobile web according to user, obtains The page in page implementation procedure corresponding with the interbehavior executes record information.Wherein, the mobile web applications packet It includes but is not limited to the mobile web app developed based on all kinds of Mobile operating systems or mobile browser kernel;The page is held Row record information includes but not limited to that the mobile web applies in page loading procedure or interacted with user during institute Temporal information, flow information, system occupancy rate information, drawing frame number information of generation etc..For example, as user and the movement When web applications such as are clicked, refreshed, inputted at the interactive operations, acquisition device 11 is by being based on various communication protocols, with the shifting The corresponding interface of dynamic web applications is connected, and obtains the generated page when page executes in user interaction process and executes note Record information.Here, " communication protocol " includes the transportation protocol of computer communication, such as TCP/IP, UDP, FTP, ICMP, NetBEUI Deng, or the other forms communication that is present in computer, such as communication or operation inside Object-Oriented Programming between object Message transmission protocol in system between distinct program or computer disparate modules.
Preferably, the acquisition device 11 can also utilize browser kernel to execute the page that the mobile web is applied, and Obtaining the mobile web by the interface of the browser kernel applies the page in the implementation procedure to execute record information. Specifically, the acquisition device 11 can also utilize the browser kernel, on mobile platform or test platform described in startup Mobile web applications execute one or more pages of the mobile web applications, lead to according to the setting of the mobile web applications The interface of the browser kernel is crossed, the mobile web is obtained and the page in the implementation procedure is applied to execute record information.Its In, the browser kernel includes but not limited to webkit (such as safari, chrome), presto (such as opera), trident (such as IE, TT, roaming), gecko (such as firefox).
Generating means 12 execute record information according to the page, generate the page performance information of the mobile web applications. Specifically, the page of the generating means 12 acquired in the acquisition device 11 executes record information, by being held to the page Row record information carries out such as extraction, classifies, calculates processing, and the page, which is executed the record information generation mobile web, answers Page performance information.
Wherein, the page performance information includes following at least any one:
The interaction response time of the mobile web applications, the page, which executes, as will be described records in information corresponding to same The interaction of interactive operation is initiated to be handled with two temporal informations of interaction response, obtains and the interaction of the interactive operation is rung Between seasonable;Alternatively, the interaction response time such as the mobile web are applied with user interaction process, each function is (such as JavaScript function) occupied time is executed, with for weighing the speed responded for a user interactive operation;
The drawing frequency information of the mobile web applications generates institute such as according to the drawing frame number per second of mobile web applications Drawing frequency information FPS is stated, for weighing the speed that game class application is drawn, to judge the smooth journey of the mobile web applications Degree;
The network request time of the mobile web application such as according to the mobile web each webpage applied or answers Loading initial time with space and loading deadline obtain the network request time of the mobile web applications, to be used for weighing Measure the loading speed of the mobile web applications;
The network traffic information of the mobile web applications, as applied to the Internet resources according to the mobile web Use information obtains the network traffic information of the mobile web applications, and size, the resource to weigh the mobile web applications account for With rate etc..
Determining device 13 determines that the page improvement for corresponding to the mobile web applications refers to according to the page performance information Show information.Specifically, it is determined that the page performance information that device 13 is generated according to the generating means 12, by by the page By modes such as matchings, the database that instruction information is improved with the page is matched performance information, corresponding with determination The page improve instruction information;Or according to the page performance information, determine that the page performance information improves threshold with the page Relationship between value illustrates that the page performance needs to improve if improving threshold value more than the page, to according to the page The value of energy information selects the page corresponding with the page performance information to improve instruction information.For example, working as the page performance Information includes the drawing frequency information of the mobile web applications, and the determining device 13 can be according to the number of the drawing frequency It is worth size, improves instruction information by matching the numerical value and the corresponding page, determine the page for corresponding to the mobile web applications Improve instruction information;When the numerical value of the drawing frequency is less than certain threshold value, then judge that the mobile web applies not flow Freely, and the CPU of the mobile web applications is occupied and EMS memory occupation function is obtained and analyzed, by occupancy resource height Function be called, return code position by the code position, occupies resource situation etc. and determines and correspond to the movement The page of web applications improves instruction information;Further, it can also indicate information database etc. according to scheduled improvement, determine Improved method corresponding with the function that the occupancy resource is high etc., and the improved method is also improved into instruction as the page Information.
It is a kind of for carrying out test processes to mobile web applications Fig. 2 shows in accordance with a preferred embodiment of the present invention Test equipment schematic diagram;Wherein, the test equipment includes acquisition device 11 ', generating means 12 ', determining device 13 ', described Determining device 13 ' includes detection unit 131 ' and determination unit 132 '.Specifically, acquisition device 11 ' obtains mobile web and applies The page in page implementation procedure executes record information;Generating means 12 ' are executed according to the page records information, described in generation The page performance information of mobile web applications;Detection unit 131 ' detects whether the page performance information meets the mobile web The correspondence threshold information of application;When the page performance information meets the corresponding threshold information, determination unit 132 ' is according to institute Page performance information is stated, determines that the page for corresponding to the mobile web applications improves instruction information.Wherein, the acquisition device 11 ', generating means 12 ' are identical or essentially identical with corresponding intrument shown in Fig. 1 respectively, therefore details are not described herein again, and pass through reference Mode be incorporated herein.
It constantly works between above-mentioned each device, here, it will be understood by those skilled in the art that on " lasting " refer to It states each device difference in real time, or according to the operating mode requirement of setting or real-time adjustment, carries out page execution record and believe The acquisition of breath, the generation of page performance information, the detection of corresponding threshold information, the page improve the determination etc. for indicating information, until Test equipment stops the mobile web of acquisition and the page in page implementation procedure is applied to execute record information.
Detection unit 131 ' detects the correspondence threshold value the letter whether page performance information meets the mobile web applications Breath.Specifically, the detection unit 131 ' is believed by being detected to the page performance information, such as by the page performance The numerical value of breath is compared with the corresponding threshold information of the mobile web applications, to whether detect the page performance information Meet the correspondence threshold information of the mobile web applications.Wherein, the threshold information can be according to system intialization or User Defined It obtains;It can also be obtained based on historical data study in the way of machine learning etc.;Here, different page performance informations corresponds to Different threshold informations.
When the page performance information meets the corresponding threshold information, determination unit 132 ' is believed according to the page performance Breath determines that the page for corresponding to the mobile web applications improves instruction information.Specifically, when the page performance information meets When the corresponding threshold information, if the mobile web interaction response times applied are more than the interaction set by corresponding threshold value When the response time or when the network traffic information of the mobile web applications is more than the network flow set by corresponding threshold value, Determination unit 132 ' according to the page performance information, by by the page performance information by the modes such as matching, and it is described The database that the page improves instruction information is matched, and instruction information is improved with the corresponding page of determination;Further, also It can determine that the corresponding page improves instruction information according to the difference of the page performance information and the threshold information.
Preferably, the page performance information includes the interaction response time of the mobile web applications, when the interaction is rung It is more than the corresponding threshold information between seasonable, the determination unit 132 ' can also determine that the page improves instruction information, In, it includes the time consumption information corresponding to the page implementation procedure that the page, which improves instruction information,.Specifically, when described Page performance information includes the interaction response time of the mobile web applications, wherein the interaction response time such as the page It executes the interaction initiation for corresponding to the same interactive operation in record information and two temporal informations of interaction response is handled, Obtain the interaction response time for the interactive operation;Alternatively, the interaction response time such as the mobile web apply with In the interactive process of family, each function (such as JavaScript function) executes the occupied time, to be used for weighing for once using The speed of family interactive operation response.It is more than the corresponding threshold information, the then determination unit when the interaction response time Interactive operation corresponding to 132 ' the judgement interaction response times is not smooth, will each friendship associated with the interactive operation Time consumption information during mutually is included in the page and improves in instruction information, so that it is determined that the page improves instruction letter Breath;Further, if including function call in the interactive process, the determination unit 132 ' can also be by the function call Corresponding coded positional information is included in the page and improves in instruction information.
Preferably, the page performance information includes the network request time of the mobile web applications, when the network is asked Seeking time is more than the corresponding threshold information, and the determination unit 132 ' can also determine that the page improves instruction information, In, the page improves the execution temporal information that instruction information includes page elements in the page implementation procedure.Specifically, when The page performance information includes the network request time of the mobile web applications, wherein the network request time such as basis Each webpage of the mobile web applications or loading initial time and the loading deadline of application space, obtain the shifting The network request time of dynamic web applications, with for weighing the loading speed of the mobile web applications;When the network request Between be more than the corresponding threshold information, then the determination unit 132 ' judges the interactive operation corresponding to the network request time Or the page elements of mobile web applications execute it is not smooth, by execution time of the page elements to the mobile web applications or The execution temporal information of the interactive operation is for statistical analysis, by the execution of page elements in the page implementation procedure Temporal information is included in the page and improves in instruction information, so that it is determined that the page improves instruction information.Further, may be used The execution temporal information is arranged in order according to the length for executing the time;It further, can also be by the execution time It is arranged after being multiplied by corresponding weight, such as ajax is asked, the execution temporal information can be multiplied by corresponding weight (weight After 1), it is arranged in order according to the length for executing the time.
It is highly preferred that the test equipment further includes threshold determining apparatus (not shown), wherein the threshold determining apparatus Corresponding network access environment is applied according to the mobile web, determines the corresponding threshold information.Specifically, the threshold value Determining device can also by directly by with corresponding network access environment database or provider's direct interaction, obtain institute It states mobile web and applies corresponding network access environment information, or record letter is executed according to the page of the mobile web applications Breath, analysis obtain the mobile web and apply corresponding network access environment information;By according to the network access environment, The information such as the numerical value to the threshold information are determined.For example, according to scheduled network access environment, such as 2G/3G/Wifi Environment in the case of known network flow, calculates theoretical situation according to the theoretical velocity of the existing 2G/3G/Wifi standards in China Under in this context theoretical execute the time, and this theory is executed into time as the corresponding threshold information;When the corresponding shifting The network request time of the mobile web applications in rotating ring border is more than that the theory of correspondences executes the time, then it is assumed that the movement Web application operations are not smooth, then user experience may be caused bad under the mobile environment.
Preferably, the page performance information includes the network traffic information of the mobile web applications, when the network flow It is more than the corresponding threshold information to measure information, and the determination unit 132 ' can also determine that the page improves instruction information, In, it includes the sequencing information of page elements by size in the mobile web page that the page, which improves instruction information,.Specifically, When the page performance information includes the network traffic information of the mobile web applications, wherein the network traffic information such as root The use information to the Internet resources is applied according to the mobile web, obtains the network traffic information of the mobile web applications, To weigh size, the resources occupation rate etc. of the mobile web applications;When the network traffic information is more than the corresponding threshold value letter Breath, the then occupied network money that the mobile web corresponding to the judgement of the determination unit 132 ' network traffic information is applied Source is larger, and the occupied network traffic information by the page elements to the mobile web applications is for statistical analysis, according to The network traffic information is determined big with the page elements of the mobile web applications corresponding to the network traffic information The sequencing information of page elements by size in the mobile web page is included in the page and improves instruction information by small information In, so that it is determined that the page improves instruction information.
Fig. 3 shows a kind of method for carrying out test processes to mobile web applications according to a further aspect of the present invention Flow chart.Specifically, in step s 1, test equipment obtains mobile web and the page in page implementation procedure is applied to execute note Record information;In step s2, test equipment executes record information according to the page, generates the page of the mobile web applications Performance information;In step s3, test equipment determines according to the page performance information and corresponds to the mobile web applications The page improves instruction information.
It constantly works between above steps, here, it will be understood by those skilled in the art that on " lasting " refer to It states each step difference in real time, or according to the operating mode requirement of setting or real-time adjustment, carries out page execution record and believe The acquisition of breath, the generation of page performance information, the page improve the determination etc. for indicating information, until test equipment stops obtaining movement Web applies the page in page implementation procedure to execute record information.
In step s 1, test equipment obtains mobile web and the page in page implementation procedure is applied to execute record letter Breath.Specifically, in step s1, test equipment is led to by being based on various communication protocols (Communications Protocol) Various data transmission interfaces are crossed, being capable of providing the mobile web with other applies the page in page implementation procedure to execute note The equipment for recording information, such as the log information of mobile web applications or the page execute recording information data library and interact, and obtain and move Dynamic web applies the page in page implementation procedure to execute record information;Alternatively, in step s1, test equipment passes through direct The mobile web applications are loaded, various communication protocols (Communications Protocol) is based on, is passed by various data Defeated interface obtains mobile web and the page in page loading procedure is applied to execute record information or according to user described in real time Mobile web applies upper interbehavior, and the page obtained in page implementation procedure corresponding with the interbehavior executes note Record information.Wherein, the mobile web applications include but not limited to be based on all kinds of Mobile operating systems or mobile browser kernel institute The mobile web app of exploitation;It includes but not limited to that the mobile web is applied and loaded in the page that the page, which executes record information, Temporal information, flow information, system occupancy rate information, drawing frame number caused by during being interacted in journey or with user are believed Breath etc..For example, when user and the mobile web are applied and the interactive operations such as clicked, refresh, input, in step s1, survey Equipment is tried by being based on various communication protocols, is connected with the corresponding interface of the mobile web applications, is obtained and interacted in user The generated page executes record information when the page executes in the process.Here, " communication protocol " includes the transmission of computer communication Agreement, such as TCP/IP, UDP, FTP, ICMP, NetBEUI, or the other forms being present in computer communicate, such as face The message programmed in communication or operating system between the object of the inside between distinct program or computer disparate modules to object passes Send agreement.
Preferably, in step s1, test equipment can also utilize browser kernel to execute the page that the mobile web is applied Face, and the mobile web is obtained by the interface of the browser kernel, the page in the implementation procedure is applied to execute record Information.Specifically, in step s1, test equipment can also utilize the browser kernel, in mobile platform or test platform It is upper to start the mobile web applications, according to the setting of the mobile web applications, execute one or more of the mobile web applications A page obtains the mobile web and the page in the implementation procedure is applied to execute note by the interface of the browser kernel Record information.Wherein, the browser kernel include but not limited to webkit (such as safari, chrome), presto (such as Opera), trident (such as IE, TT, roaming), gecko (such as firefox).
In step s2, test equipment executes record information according to the page, generates the page of the mobile web applications Performance information.Specifically, in step s2, the page of the test equipment acquired in the step s1 executes record information, leads to It crosses and record information progress such as extraction is executed to the page, classification, calculates processing, the page is executed and records information generation The page performance information of the mobile web applications.
Wherein, the page performance information includes following at least any one:
The interaction response time of the mobile web applications, the page, which executes, as will be described records in information corresponding to same The interaction of interactive operation is initiated to be handled with two temporal informations of interaction response, obtains and the interaction of the interactive operation is rung Between seasonable;Alternatively, the interaction response time such as the mobile web are applied with user interaction process, each function is (such as JavaScript function) occupied time is executed, with for weighing the speed responded for a user interactive operation;
The drawing frequency information of the mobile web applications generates institute such as according to the drawing frame number per second of mobile web applications Drawing frequency information FPS is stated, for weighing the speed that game class application is drawn, to judge the smooth journey of the mobile web applications Degree;
The network request time of the mobile web application such as according to the mobile web each webpage applied or answers Loading initial time with space and loading deadline obtain the network request time of the mobile web applications, to be used for weighing Measure the loading speed of the mobile web applications;
The network traffic information of the mobile web applications, as applied to the Internet resources according to the mobile web Use information obtains the network traffic information of the mobile web applications, and size, the resource to weigh the mobile web applications account for With rate etc..
In step s3, test equipment determines the page for corresponding to the mobile web applications according to the page performance information Improve instruction information in face.Specifically, in step s3, the page performance information that test equipment is generated according to the step s2, By the way that by modes such as matchings, the database progress of instruction information is improved with the page for the page performance information Match, instruction information is improved with the corresponding page of determination;Or according to the page performance information, determine the page performance letter Breath and the page improve the relationship between threshold value and illustrate that the page performance needs to improve if improving threshold value more than the page, to According to the value of the page performance information, the page corresponding with the page performance information is selected to improve instruction information.For example, When the page performance information includes the drawing frequency information of the mobile web applications, in step s3, test equipment can root According to the numerical values recited of the drawing frequency, instruction information is improved by matching the numerical value and the corresponding page, determines and corresponds to institute The page for stating mobile web applications improves instruction information;When the numerical value of the drawing frequency is less than certain threshold value, then described in judgement It is not smooth that mobile web, which is applied, and the CPU occupancy and EMS memory occupation function of the mobile web applications are obtained and analyzed, The high function of the occupancy resource is called, return code position determines the code position, occupancy resource situation etc. Instruction information is improved corresponding to the page of the mobile web applications;Further, information can also be indicated according to scheduled improvement Database determines improved method corresponding with the function that the occupancy resource is high etc., and also regard the improved method as institute It states the page and improves instruction information.
Fig. 4 shows in accordance with a preferred embodiment of the present invention a kind of for carrying out test processes to mobile web applications Method flow diagram.Specifically, in step s1 ', test equipment obtains mobile web and the page in page implementation procedure is applied to hold Row record information;In step s2 ', test equipment executes record information according to the page, generates the mobile web applications Page performance information;In step s31 ', test equipment detects whether the page performance information meets the mobile web applications Correspondence threshold information;When the page performance information meets the corresponding threshold information, in step s32 ', test equipment root According to the page performance information, determine that the page for corresponding to the mobile web applications improves instruction information.Wherein, the step It is identical or essentially identical that s1 ', step s2 ' correspond to step as shown in figure 3 respectively, therefore details are not described herein again, and the side for passing through reference Formula is incorporated herein.
It constantly works between above steps, here, it will be understood by those skilled in the art that on " lasting " refer to It states each step difference in real time, or according to the operating mode requirement of setting or real-time adjustment, carries out page execution record and believe The acquisition of breath, the generation of page performance information, the detection of corresponding threshold information, the page improve the determination etc. for indicating information, until Test equipment stops the mobile web of acquisition and the page in page implementation procedure is applied to execute record information.
In step s31 ', test equipment detects pair whether page performance information meets the mobile web applications Answer threshold information.Specifically, in step s31 ', test equipment, such as will by being detected to the page performance information The numerical value of the page performance information is compared with the corresponding threshold information of the mobile web applications, to detect the page Whether face performance information meets the correspondence threshold information of the mobile web applications.Wherein, the threshold information can be pre- according to system It sets or User Defined obtains;It can also be obtained based on historical data study in the way of machine learning etc.;Here, different pages Face performance information corresponds to different threshold informations.
When the page performance information meets the corresponding threshold information, in step s32 ', test equipment is according to Page performance information determines that the page for corresponding to the mobile web applications improves instruction information.Specifically, when the page When energy information meets the corresponding threshold information, if the mobile web interaction response times applied are more than corresponding threshold value institute When the interaction response time of setting or the network traffic information of the mobile web applications is more than set by corresponding threshold value When network flow, in step s32 ', test equipment is according to the page performance information, by leading to the page performance information The modes such as overmatching, the database that instruction information is improved with the page are matched, and are improved with the corresponding page of determination Indicate information;Further, it can also be determined corresponding according to the difference of the page performance information and the threshold information The page improves instruction information.
Preferably, the page performance information includes the interaction response time of the mobile web applications, when the interaction is rung It is more than the corresponding threshold information between seasonable, in step s32 ', test equipment can also determine that the page improves instruction letter Breath, wherein it includes the time consumption information corresponding to the page implementation procedure that the page, which improves instruction information,.Specifically, When the page performance information includes the interaction response time of the mobile web applications, wherein the interaction response time such as institute State the page execute correspond in record information the same interactive operation interaction initiate with two temporal informations of interaction response into Row processing, obtains the interaction response time for the interactive operation;Alternatively, the interaction response time such as the mobile web are answered Used in user interaction process, each function (such as JavaScript function) executes the occupied time, to be used for weighing pair In the speed of user interactive operation response.It is more than the corresponding threshold information when the interaction response time, then in step In rapid s32 ', test equipment judges that the interactive operation corresponding to the interaction response time is not smooth, will be with the interactive operation Time consumption information in associated each interactive process is included in the page and improves in instruction information, so that it is determined that described The page improves instruction information;Further, if including function call in the interactive process, in step s32 ', test equipment Coded positional information corresponding to the function call can also be included in the page to improve in instruction information.
Preferably, the page performance information includes the network request time of the mobile web applications, when the network is asked Seeking time is more than the corresponding threshold information, and in step s32 ', test equipment can also determine that the page improves instruction letter Breath, wherein the page improves the execution temporal information that instruction information includes page elements in the page implementation procedure.Specifically Ground, when the page performance information includes the network request time of the mobile web applications, wherein the network request time Such as according to each webpage of the mobile web applications or loading initial time and the loading deadline of application space, obtain The network request time of the mobile web application, with for weighing the loading speed of the mobile web applications;When the network Request time is more than the corresponding threshold information, then in step s32 ', test equipment judges that the network request time institute is right The page elements execution of the interactive operation or mobile web applications answered is not smooth, passes through the page elements to the mobile web applications The execution temporal information for executing time or the interactive operation it is for statistical analysis, by page in the page implementation procedure The execution temporal information of surface element is included in the page and improves in instruction information, so that it is determined that the page improves instruction letter Breath.Further, the execution temporal information can be arranged in order according to the length for executing the time;It further, can be with It is arranged after the execution time is multiplied by corresponding weight, such as ajax is asked, the execution temporal information can be multiplied by phase After the weight (weight is more than 1) answered, it is arranged in order according to the length for executing the time.
It is highly preferred that the test equipment further includes step s4 ' (not shown), wherein in step s4 ', test equipment Corresponding network access environment is applied according to the mobile web, determines the corresponding threshold information.Specifically, in step s4 ' In, test equipment can also by directly by with corresponding network access environment database or provider's direct interaction, obtain It takes the mobile web to apply corresponding network access environment information, or record is executed according to the page of the mobile web applications Information, analysis obtain the mobile web and apply corresponding network access environment information;By according to the network insertion ring Border is determined the information such as the numerical value of the threshold information.For example, according to scheduled network access environment, such as 2G/3G/ The environment such as Wifi in the case of known network flow, calculate reason according to the theoretical velocity of the existing 2G/3G/Wifi standards in China The theoretical execution time in the case of in this context, and this theory is executed into time as the corresponding threshold information;When right It should network request time of the mobile web application of mobile environment be more than that the theory of correspondences executes the time, then it is assumed that institute It is not smooth to state mobile web application operations, then user experience may be caused bad under the mobile environment.
Preferably, the page performance information includes the network traffic information of the mobile web applications, when the network flow It is more than the corresponding threshold information to measure information, and in step s32 ', test equipment can also determine that the page improves instruction letter Breath, wherein it includes the sequencing information of page elements by size in the mobile web page that the page, which improves instruction information,.Tool Body, when the page performance information includes the network traffic information of the mobile web applications, wherein the network flow letter Breath such as applies the use information to the Internet resources according to the mobile web, obtains the network flow of the mobile web applications Information, to weigh size, the resources occupation rate etc. of the mobile web applications;When the network traffic information is more than the correspondence Threshold information, then in step s32 ', test equipment judges the shared of the applications of the mobile web corresponding to the network traffic information Internet resources are larger, united by the occupied network traffic information of the page elements to the mobile web applications Meter analysis determines the page with the mobile web applications corresponding to the network traffic information according to the network traffic information The size information of surface element changes the sequencing information of page elements by size in the mobile web page included in the page Into in instruction information, so that it is determined that the page improves instruction information.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims Variation includes within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second equal words are used for table Show title, and does not represent any particular order.

Claims (16)

1. a kind of method for carrying out test processes to mobile web applications, wherein this approach includes the following steps:
A obtains mobile web and the page in page implementation procedure is applied to execute record information;
B executes record information according to the page, generates the page performance information of the mobile web applications;
C determines that the page for corresponding to the mobile web applications improves instruction information according to the page performance information.
2. according to the method described in claim 1, wherein, the step a includes:
The page of the mobile web applications is executed using browser kernel, and institute is obtained by the interface of the browser kernel Stating mobile web applies the page in the implementation procedure to execute record information.
3. according to the method described in claim 1, wherein, the page performance information includes following at least any one:
The interaction response time of the mobile web applications;
The drawing frequency information of the mobile web applications;
The network request time of the mobile web applications;
The network traffic information of the mobile web applications.
4. according to the method in any one of claims 1 to 3, wherein the step c includes:
Whether the detection page performance information meets the correspondence threshold information of the mobile web applications;
C1 meets the corresponding threshold information when the page performance information, and according to the page performance information, determination corresponds to The page of the mobile web applications improves instruction information.
5. according to the method described in claim 4, wherein, the page performance information includes the interaction of the mobile web applications Response time;
Wherein, the step c1 includes:
It is more than the corresponding threshold information when the interaction response time, determines that the page improves instruction information, wherein institute It includes the time consumption information corresponding to the page implementation procedure to state the page and improve instruction information.
6. according to the method described in claim 4, wherein, the page performance information includes the network of the mobile web applications Request time;
Wherein, the step c1 includes:
It is more than the corresponding threshold information when the network request time, determines that the page improves instruction information, wherein institute It states the page and improves the execution temporal information that instruction information includes page elements in the page implementation procedure.
7. according to the method described in claim 6, wherein, this method further includes:
Corresponding network access environment is applied according to the mobile web, determines the corresponding threshold information.
8. according to the method described in claim 4, wherein, the page performance information includes the network of the mobile web applications Flow information;
Wherein, the step c1 includes:
When the network traffic information is more than the corresponding threshold information, determine that the page improves instruction information, wherein institute It includes the sequencing information of page elements by size in the mobile web page to state the page and improve instruction information.
9. a kind of test equipment for carrying out test processes to mobile web applications, wherein the equipment includes:
Acquisition device applies the page in page implementation procedure to execute record information for obtaining mobile web;
Generating means generate the page performance information of the mobile web applications for executing record information according to the page;
Determining device, for according to the page performance information, determining that the page for corresponding to the mobile web applications improves instruction Information.
10. test equipment according to claim 9, wherein the acquisition device is used for:
The page of the mobile web applications is executed using browser kernel, and institute is obtained by the interface of the browser kernel Stating mobile web applies the page in the implementation procedure to execute record information.
11. test equipment according to claim 9, wherein the page performance information includes following at least any one:
The interaction response time of the mobile web applications;
The drawing frequency information of the mobile web applications;
The network request time of the mobile web applications;
The network traffic information of the mobile web applications.
12. the test equipment according to any one of claim 9 to 11, wherein the determining device includes:
Whether detection unit meets the correspondence threshold information of the mobile web applications for detecting the page performance information;
Determination unit meets the corresponding threshold information for working as the page performance information, according to the page performance information, Determine that the page for corresponding to the mobile web applications improves instruction information.
13. test equipment according to claim 12, wherein the page performance information includes the mobile web applications The interaction response time;
Wherein, the determination unit is used for:
It is more than the corresponding threshold information when the interaction response time, determines that the page improves instruction information, wherein institute It includes the time consumption information corresponding to the page implementation procedure to state the page and improve instruction information.
14. test equipment according to claim 12, wherein the page performance information includes the mobile web applications The network request time;
Wherein, the determination unit is used for:
It is more than the corresponding threshold information when the network request time, determines that the page improves instruction information, wherein institute It states the page and improves the execution temporal information that instruction information includes page elements in the page implementation procedure.
15. test equipment according to claim 14, wherein the equipment further includes:
Threshold value determination unit determines the corresponding threshold value for applying corresponding network access environment according to the mobile web Information.
16. test equipment according to claim 12, wherein the page performance information includes the mobile web applications Network traffic information;
Wherein, the determination unit is used for:
When the network traffic information is more than the corresponding threshold information, determine that the page improves instruction information, wherein institute It includes the sequencing information of page elements by size in the mobile web page to state the page and improve instruction information.
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 CN103902441A (en) 2014-07-02
CN103902441B true 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)

Families Citing this family (4)

* 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
CN108399129B (en) * 2018-02-28 2021-03-23 车智互联(北京)科技有限公司 H5 page performance detection method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038982A1 (en) * 2005-08-11 2007-02-15 International Business Machines Corporation Method and process to automatically perform test builds or translated files for a software product

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN103902441A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
Bodnar et al. Validating models for disease detection using twitter
CN110717121B (en) Method and device for determining first screen time of page
CN103902441B (en) A kind of method and apparatus for carrying out test processes to mobile web applications
KR102291557B1 (en) Apparatus for analysing user behavier and method for the same
JP2018516421A (en) Network access operation identification method, server, and storage medium
US20190268249A1 (en) Systems and methods for measuring media performance on end-user devices
CN103177096B (en) Page elements localization method and equipment based on text attribute
US20140365380A1 (en) Method and System for Monitoring the Health Status of Electronic Appliances
CN103902913B (en) A kind of method and apparatus for carrying out safe handling to web applications
CN108052444A (en) A kind of method and apparatus of performance test for mobile application
CN112559923A (en) Website resource recommendation method and device, electronic equipment and computer storage medium
CN104182663B (en) A kind of method and device for differentiating simulator operation
Angelopoulos et al. Design and evaluation of characteristic incentive mechanisms in mobile crowdsensing systems
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN109032905A (en) A kind of statistical method and relevant device of click event
CN114564374A (en) Operator performance evaluation method and device, electronic equipment and storage medium
CN103810191B (en) A kind of method and apparatus for providing a user presentation information
Yan Design of piano teaching system based on internet of things technology
CN112288231B (en) Configuration generation method and device of artificial intelligence product, electronic equipment and storage medium
CN103365764B (en) A kind of wireless page measurement techniques & apparatuses
CN106470129B (en) Realize method, system, server and the terminal of webpage head screen latency measurement
US20150221232A1 (en) System and methods for crediting physical activity performed by a user
CN103514082B (en) The method of testing of reflection computer equipment WEB energy efficiency
CN113849758A (en) Webpage index generation method and device, electronic equipment and storage medium
CN113780548A (en) Method, apparatus, device and storage medium for training a model

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