CN104978267A - Web page testing method, terminal and server - Google Patents

Web page testing method, terminal and server Download PDF

Info

Publication number
CN104978267A
CN104978267A CN201510353336.0A CN201510353336A CN104978267A CN 104978267 A CN104978267 A CN 104978267A CN 201510353336 A CN201510353336 A CN 201510353336A CN 104978267 A CN104978267 A CN 104978267A
Authority
CN
China
Prior art keywords
version
webpage
display
tested
visited
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
CN201510353336.0A
Other languages
Chinese (zh)
Other versions
CN104978267B (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.)
Millet Communication Technology Co Ltd
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510353336.0A priority Critical patent/CN104978267B/en
Publication of CN104978267A publication Critical patent/CN104978267A/en
Application granted granted Critical
Publication of CN104978267B publication Critical patent/CN104978267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a web page testing method, terminal and server, and belongs to the technical field of web page development. The web page testing method comprises the steps of: obtaining to-be-tested versions of a to-be-visited web page, wherein the version number corresponding to the to-be-tested versions is greater than or equal to 2; determining a display version in the to-be-displayed versions; obtaining the web page content of the display version; obtaining visit information of the web page content of the display version; and sending the visit information to a server, and enabling the server to determine a test result of the to-be-visited web page according to the visit information. By obtaining the to-be-tested versions, including at least two versions, of the to-be-visited web page, determining the display version in the to-be-displayed versions and obtaining the web page content of the display version and the visit information of the web page content of the display version, when the web page is tested, the server does not need to determine the display version and obtain the visit information, so that relatively few server resources can be occupied and the server load can be reduced.

Description

Webpage method of testing, terminal and server
Technical field
The disclosure relates to web development technologies field, particularly a kind of webpage method of testing, terminal and server.
Background technology
The application of A/B test in webpage development is very general.When developer needs correcting webpage, in order to determine that in redaction webpage and legacy version webpage, the webpage of which version is more popular with users, the mode usually can tested by A/B is realized.Wherein, A represents old version webpage, and B represents new this edition webpage.Carrying out A/B test, can based on certain strategy respectively at the webpage of different user terminal displays different editions.Based on the customer flow of the webpage of each version, can determine that the webpage of which version is more popular with users.
Correlation technique, when carrying out A/B test to webpage, sends web access requests by terminal to server; When server receives web access requests, determine which version that need return webpage to be visited to terminal, and will determine that the web page contents of version is back to terminal.
Summary of the invention
The disclosure provides a kind of webpage method of testing, terminal and server.
According to the first aspect of disclosure embodiment, provide a kind of webpage method of testing, described method comprises:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
From described version to be tested, determine the version of display of described webpage to be visited;
Obtain the web page contents of described version of display;
Obtain the visit information to the web page contents of described version of display;
Described visit information is sent to described server, makes described server according to described visit information, determine the test result to described webpage to be visited.
In conjunction with first aspect, in the first possible implementation of first aspect, described from described version to be tested, determine the version of display of described webpage to be visited, comprising:
Obtain the user profile of the active user of the described webpage to be visited of access;
Corresponding relation is preset in user profile inquiry according to described active user, obtain the version identifier that the user profile of described active user is corresponding, described default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier in described default corresponding relation comprises the mark of each version in described version to be tested;
The version identifier corresponding according to the user profile of described active user, from described first version and the described second edition, determines the version of display of described webpage to be visited.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, described acquisition, to the visit information of the web page contents of described version of display, comprising:
The user profile of the version identifier obtaining described version of display and the active user accessing described webpage to be visited, determines that user profile two kinds of information of described version identifier and described active user are the first visit information; And/or,
Detect at least one event in the mouse click event and keyboard operation event that the web page contents of described version of display is carried out; According at least one event in described mouse click event and keyboard operation event, determine the second visit information.
According to the second aspect of disclosure embodiment, provide a kind of webpage method of testing, described method comprises:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
Described version to be tested is sent to described terminal, makes described terminal from described version to be tested, determine the version of display of described webpage to be visited, and obtain the visit information of the web page contents of described version of display and the web page contents to described version of display;
Receive the visit information that described terminal sends;
According to described visit information, determine the test result to described webpage to be visited.
In conjunction with second aspect, in the first possible implementation of second aspect, described described version to be tested is sent to described terminal before, also comprise:
Obtain the user profile of the active user of the described webpage to be visited of access;
According to the user profile of described active user, default corresponding relation is sent to described terminal, described default corresponding relation is the corresponding relation between user profile and version identifier.
According to the third aspect of disclosure embodiment, provide a kind of terminal, described terminal comprises:
First acquisition module, for obtaining the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
Determination module, in the version described to be tested from described first acquisition module acquisition, determines the version of display of described webpage to be visited;
Second acquisition module, for obtaining the web page contents of the described version of display that described determination module is determined;
3rd acquisition module, for obtaining the visit information of the web page contents to the described version of display that described second acquisition module obtains;
Sending module, is sent to described server for the described visit information obtained by described 3rd acquisition module, makes visit information described in described server, determine the test result to described webpage to be visited.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described determination module comprises:
First obtains submodule, for obtaining the user profile of the active user accessing described webpage to be visited;
Inquiry submodule, corresponding relation is preset in user profile inquiry for obtaining according to described first the described active user that submodule obtains, obtain the version identifier that the user profile of described active user is corresponding, described default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier in described default corresponding relation comprises the mark of each version in described version to be tested;
Determine submodule, the version identifier that the user profile for the described active user according to described inquiry submodule inquiry is corresponding, from described version to be tested, determine the version of display of described webpage to be visited.
In conjunction with the third aspect, in the implementation that the second of the third aspect is possible, described 3rd acquisition module comprises:
Second obtains submodule, for obtaining the version identifier of described version of display and accessing the user profile of active user of described webpage to be visited, determines that user profile two kinds of information of described version identifier and described active user are the first visit information; And/or,
Detection sub-module, for detecting at least one event in the mouse click event and keyboard operation event of carrying out the web page contents of described version of display; According at least one event in described mouse click event and keyboard operation event, determine the second visit information.
According to the fourth aspect of disclosure embodiment, provide a kind of server, described server comprises:
First acquisition module, for obtaining the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
First sending module, version described to be tested for being obtained by described first acquisition module is sent to described terminal, make described terminal from described version to be tested, determine the version of display of described webpage to be visited, and obtain the visit information of the web page contents of described version of display and the web page contents to described version of display;
Receiver module, for receiving the visit information that described terminal sends;
Determination module, for the described visit information received according to described receiver module, determines the test result to described webpage to be visited.
In conjunction with fourth aspect, in the first possible implementation of fourth aspect, described server also comprises:
Second acquisition module, for obtaining the user profile of the active user accessing described webpage to be visited;
Second sending module, for the user profile of the described active user according to described second acquisition module acquisition, default corresponding relation is sent to described terminal, and described default corresponding relation is the corresponding relation between user profile and version identifier.
According to the 5th aspect of disclosure embodiment, provide a kind of terminal, described terminal comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
From described version to be tested, determine the version of display of described webpage to be visited;
Obtain the web page contents of described version of display;
Obtain the visit information to the web page contents of described version of display;
Described visit information is sent to described server, makes described server according to described visit information, determine the test result to described webpage to be visited.
According to the 6th aspect of disclosure embodiment, provide a kind of server, described server comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
Described version to be tested is sent to described terminal, makes described terminal from described version to be tested, determine the version of display of described webpage to be visited, and obtain the visit information of the web page contents of described version of display and the web page contents to described version of display;
Receive the visit information that described terminal sends;
According to described visit information, determine the test result to described webpage to be visited.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By obtaining the version to be tested comprising at least two versions of webpage to be visited, and from version to be tested, determine the version of display of webpage to be visited, and obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to by server determination version of display and obtain visit information, thus can take less server resource, thus can server load be reduced.
By obtaining the user profile of the active user of access webpage to be visited, and determine according to the default corresponding relation of user profile inquiry of active user the version identifier that the user profile of active user is corresponding, make when determining version of display, can directly realize according to presetting corresponding relation, simple to operate.
By determining that the first visit information and/or the second visit information are visit information, not only make the content of visit information abundanter, and due to the first visit information be the macroscopic information such as version identifier and user profile, therefore, can realize analyzing the macroscopic behavior of user's accessed web page process by the first visit information; Because the second visit information is determined according at least one event in the mouse click event of carrying out the web page contents of version of display and keyboard operation event, therefore, second visit information is relevant to the concrete operations of the web page contents to version of display, thus can realize analyzing the microscopic behavior of user's accessed web page process according to the second visit information, thus accessed web page can be treated compare and test subtly.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the implementation environment schematic diagram involved by a kind of webpage method of testing according to an exemplary embodiment;
Fig. 2 is the process flow diagram of a kind of webpage method of testing according to an exemplary embodiment;
Fig. 3 is the process flow diagram of a kind of webpage method of testing according to an exemplary embodiment;
Fig. 4 is the process flow diagram of a kind of webpage method of testing according to an exemplary embodiment;
Fig. 5 is the block diagram of a kind of terminal according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of determination module according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of 3rd acquisition module according to an exemplary embodiment;
Fig. 8 is the block diagram of a kind of server according to an exemplary embodiment;
Fig. 9 is the block diagram of a kind of server according to an exemplary embodiment;
Figure 10 is the block diagram of a kind of terminal according to an exemplary embodiment;
Figure 11 is the block diagram of a kind of server according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the implementation environment schematic diagram involved by webpage method of testing that disclosure embodiment provides.As shown in Figure 1, this implementation environment comprises server 101 and terminal 102.Wherein, server 101 is connected by network with terminal 102, and this network can be cable network, also can be wireless network.
In the disclosed embodiments, server 101 can provide web page access function, and wherein, the version number that the version to be tested of some webpage is corresponding is greater than or equal to 2.Such as, the version to be tested of some webpage comprises first version and the second edition.When the version number that the version to be tested of a certain webpage is corresponding is greater than or equal to 2, server 101 is also supported to test the different editions of this webpage, thus determines which version of this webpage is more popular with users.Terminal 102 can the webpage of various versions that provides of access services device 101.
Wherein, server 101 can be an independent server, also can be a server cluster.When server 101 is an independent server, perform separately by this server 101 the webpage method of testing that disclosure embodiment provides; When server 101 is a cluster, each server in this cluster can coordinate the webpage method of testing performing disclosure embodiment and provide.
Terminal 102 can be smart mobile phone, panel computer, E-book reader, MP3 (Moving PictureExperts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 3) player, pocket computer on knee, desk-top computer and wearable device etc.
Concrete webpage method of testing refers to each embodiment following:
Fig. 2 is the process flow diagram of a kind of webpage method of testing according to an exemplary embodiment, and the webpage method of testing that disclosure embodiment provides is in terminal.For the method that terminal execution disclosure embodiment provides, as shown in Figure 2, the webpage method of testing that disclosure embodiment provides comprises the following steps.
In step s 201, obtain the version to be tested of webpage to be visited, wherein, the version number that version to be tested is corresponding is more than or equal to 2.
In step S202, from version to be tested, determine the version of display of webpage to be visited.
In step S203, obtain the web page contents of version of display.
In step S204, obtain the visit information of the web page contents to version of display.
In step S205, visit information is sent to server, makes server according to visit information, determine the test result treating accessed web page.
The method that disclosure embodiment provides, by obtaining the version to be tested comprising at least two versions of webpage to be visited from server, the version of display of webpage to be visited is determined from version to be tested, and obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to by server determination version of display and acquisition visit information, thus can take less server resource, thus can server load be reduced.
In another embodiment, from version to be tested, determine the version of display of webpage to be visited, comprising:
Obtain the user profile of the active user of access webpage to be visited.
Corresponding relation is preset in user profile inquiry according to active user, obtain the version identifier that the user profile of active user is corresponding, wherein, default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier preset in corresponding relation comprises the mark of each version in version to be tested.
The version identifier corresponding according to the user profile of active user, from version to be tested, determines the version of display of webpage to be visited.
In another embodiment, obtain the visit information of the web page contents to version of display, comprising:
The user profile of the version identifier obtaining version of display and the active user accessing webpage to be visited, determines that user profile two kinds of information of version identifier and active user are the first visit information.
Detect at least one event in the mouse click event and keyboard operation event that the web page contents of version of display is carried out; According at least one event in mouse click event and keyboard operation event, determine the second visit information.
Wherein, visit information is at least one in the first visit information and the second visit information.
That is, visit information can be only the first visit information, may also be only the second visit information, can also comprise the first visit information and the second visit information simultaneously.
About the imbody form of the second visit information, disclosure embodiment does not do concrete restriction.Such as, the combination etc. of a kind of in URL (Uniform Resource Locator, URL(uniform resource locator)) information, the character information by input through keyboard, the instruction by input through keyboard etc. that the temporal information that the second visit information is the positional information of mouse webpage clicking, mouse clicks each position, mouse are clicked or at least two kinds.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 3 is the process flow diagram of a kind of webpage method of testing according to an exemplary embodiment, and the webpage method of testing that disclosure embodiment provides is in server.For the method that server execution disclosure embodiment provides, as shown in Figure 3, the webpage method of testing that disclosure embodiment provides comprises the following steps.
In step S301, obtain the version to be tested of webpage to be visited, wherein, the version number that version to be tested is corresponding is more than or equal to 2.
In step s 302, version to be tested is sent to terminal, makes terminal from version to be tested, determine the version of display of webpage to be visited, and obtain the visit information of the web page contents of version of display and the web page contents to version of display.
In step S303, the visit information that receiving terminal sends.
In step s 304, according to visit information, determine the test result treating accessed web page.
The method that disclosure embodiment provides, by obtaining the version to be tested comprising at least two versions of webpage to be visited, and version to be tested is sent to terminal, make terminal from version to be tested, determine the version of display of webpage to be visited, and make terminal obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to determining version of display in this locality and obtaining visit information, thus can take less system resource, thus can load be reduced.
In another embodiment, before version to be tested is sent to terminal, also comprise:
Obtain the user profile of the active user of access webpage to be visited.
According to the user profile of active user, default corresponding relation is sent to terminal, wherein, default corresponding relation is the corresponding relation between user profile and version identifier.
Fig. 4 is the process flow diagram of a kind of webpage method of testing according to an exemplary embodiment.Perform the disclosure for server and terminal interaction and execute the webpage method of testing that example provides, as shown in Figure 4, the webpage method of testing that disclosure embodiment provides comprises the following steps.
In step S401, terminal to server sends the web access requests of webpage to be visited.
Wherein, terminal, when accessing webpage to be visited, can be triggered by the web access requests sending this webpage to be visited to server.
Send the triggering mode of the web access requests of webpage to be visited about terminal to server, can have a variety of.Such as, terminal is configured with browser, the network address that terminal can obtain the webpage to be visited inputted in a browser triggers.In addition, terminal can be triggered by the clicking operation obtained in webpage network address to be visited.In addition, when webpage to be visited exists shortcut, when directly can open this webpage by this shortcut, terminal can be triggered by the clicking operation obtained in this shortcut.Clicking operation involved herein can for click, double-click or long by etc.
In addition, when server can provide the access services of multiple webpage, in order to make the clear and definite terminal of server current at which webpage of access, the banner of webpage to be visited in this web access requests, can be carried.Due to multiple terminal may be had to access this webpage to be visited, determine it is which terminal is accessing webpage to be visited to make server, can also carried terminal mark in this web access requests.Wherein, disclosure embodiment does not limit the concrete manifestation form of terminal iidentification.Such as, terminal iidentification can be MAC (the Media Access Control of terminal, media interviews control) address, or be the IMEI (InternationalMobile Equipment Identity, mobile device international identity code) etc. of terminal.
In step S402, after server receives this web access requests, according to this web access requests, obtain the version to be tested of webpage to be visited, wherein, the version number that version to be tested is corresponding is more than or equal to 2.
In the disclosed embodiments, the version number that the version to be tested of webpage to be visited is corresponding is at least two.When carrying out webpage test, each version can treating beta version is tested.Such as, when the version that version to be tested is corresponding comprises first version and the second edition, can test first version and the second edition.Wherein, in each version that version to be tested is corresponding, both can comprise a legacy version and other redaction of webpage to be visited, also can be all each redactions of webpage to be visited.
Determine to access which version for the ease of terminal, server obtains the version to be tested of webpage to be visited.Wherein, the version identifier that the different editions in version to be tested is corresponding different.
In a possible embodiment, server, when obtaining the version to be tested of webpage to be visited, can be realized by the web page contents obtaining all versions.Wherein, when the web page contents of arbitrary version is the webpage of this version of display, full content included in the webpage of display.
If server only can provide the access services of a webpage, then server is when obtaining the web page contents of all versions of webpage to be visited, and directly can obtain all data of this webpage to be visited, these all data are the web page contents of all versions.When server can provide the access services of multiple webpage, in order to determine which the webpage of terminal access is, server needs according to banner, searches the web page contents of all versions of this webpage to be visited from all webpages.
About the type of data included in web page contents, disclosure embodiment does not do concrete restriction.Such as, this web page contents only can comprise text data, also can comprise the combination etc. of at least two kinds of data in text data, image data, multi-medium data and chained address simultaneously.
In step S403, this version to be tested is sent to terminal by server.
In a possible embodiment, this version to be tested according to terminal iidentification, can be sent to terminal by server.In addition, when terminal is communicated by given link with server, version to be tested is sent to terminal by this given link by server.Communicated by given link between server with terminal, the direct transmission of data between server and terminal can be realized, avoid carried terminal mark or the content such as server identification in the data, make the data transmitted between terminal with server shorter and smaller.
Wherein, the version identifier of each version of version to be tested only can be sent to terminal by server, also the web page contents of each version of version to be tested can be sent to terminal.
In step s 404, after terminal obtains this web page contents, from version to be tested, determine the version of display of webpage to be visited.
Disclosure embodiment, when determining which version of terminal access webpage to be visited, is determined to access which version by terminal, is namely needed terminal from version to be tested, determine the version of display of webpage to be visited.When subsequent access web page contents, terminal is by the web page contents of this version of display of access, and this version of display is any one in all versions that version to be tested is corresponding.
Wherein, terminal from version to be tested, when determining the version of display of webpage to be visited, includes but not limited to that S4041 to step S4043 realizes as follows:
In step S4041, terminal obtains the user profile of the active user of access webpage to be visited.
Actual avatar disclosure embodiment about user profile does not do concrete restriction.Such as, user profile can be at least one in the cookie ID (identify label of user's accessed web page) of the account of user login services device, IP (Internet Protocol, the Internet protocol) address of user terminal, the geographic position of user and user.
In addition, terminal obtains the mode of the user profile of active user, can have different implementations in conjunction with the actual avatar of user profile.Such as, when user profile is the account of user login services device, terminal when user login services device being detected, can obtain its account.When user profile is the IP address of user terminal, terminal can obtain the IP address etc. of terminal from local configuration information.
In step S4042, terminal presets corresponding relation according to the user profile inquiry of active user, obtains the version identifier that the user profile of active user is corresponding.
Wherein, default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier preset in corresponding relation comprises the mark of each version in version to be tested.
In addition, in conjunction with the above-mentioned description to the actual avatar of user profile, adjustment can be adapted in the form of expression of the default corresponding relation embodied by this user profile.Such as, when user profile is the account of user login services device, the corresponding relation of user profile and version identifier is the corresponding relation between account and version information.When user profile is the IP address of user terminal, the corresponding relation between user profile and version identifier is the corresponding relation etc. between IP address and version identifier.
In the disclosed embodiments, for the ease of terminal determination version of display, in the corresponding relation of user profile and version identifier, the corresponding relation between the attribute of meeting pre-set user information and version identifier.Wherein, the attribute of user profile may be used for the feature showing user profile.The user profile that feature is identical has same alike result, the attribute that the user profile that feature is different is corresponding different.When the attribute of user profile is different, version identifier is also different.
Such as, when user profile be cookie ID or account time, the attribute of user profile can be the parity of cookie ID or last bit digital of account, and the parity of last bit digital is the feature of cookie ID or account.Last bit digital is that the cookie ID of odd number or account have same attribute, and last bit digital is that the cookie ID of even number or account have same attribute.
Again such as, when user profile is IP address, the attribute of user profile can IP section belonging to IP address, and namely belonging to IP address, IP section is the feature of IP address.The IP address belonging to same IP section has identical attribute, and the IP address belonging to different IP section has different attributes.
Further, when user profile is IP address, in the corresponding relation between user profile and version identifier, the corresponding relation between each IP section and version identifier can be preset, the version identifier that different IP section is corresponding different.When user profile is cookie ID, in the corresponding relation between user profile and version identifier, the corresponding different identification of different cookie ID can be preset.As, when the version number that version to be tested is corresponding is 2, and when being respectively first version and the second edition, can arrange when last bit digital of cookie ID is odd number, arranging version identifier corresponding to this cookie ID is the version identifier of first version; When last bit digital of cookie ID is even number, arranging version identifier corresponding to this cookie ID is the version identifier of the second edition.When user profile is the account of user login services device, setting user information can be consistent with the set-up mode when user profile is cookie ID with the mode of the corresponding relation between version identifier.When user profile is geographic position, in the corresponding relation between user profile and version identifier, the version identifier that the user of different regions is corresponding different can be set.As, the version identifier of the corresponding first version in Beijing area is set, the version identifier etc. of the corresponding second edition in District of Shanghai.
Due to the corresponding relation that default corresponding relation is between user profile and version identifier, and version identifier comprises the mark of each version in version to be tested, therefore, according to the user profile of active user, corresponding relation is preset in inquiry, can obtain the mark which version version identifier corresponding to active user is.Terminal according to the user profile of active user and default corresponding relation, when determining version of display, can first according to the user profile of active user, inquiry is preset corresponding relation and is realized.
In conjunction with in above-mentioned default corresponding relation, the form of expression between user profile and version identifier, terminal, when inquiring about default corresponding relation, first can be determined the attribute of the user profile of active user, and realize according to this default corresponding relation of this attribute query.
By the version identifier that the user profile of default different attribute is corresponding different, the terminal quantity that each version is accessed in uniform distribution can be realized.
In step S4043, the version identifier that terminal is corresponding according to the user profile of active user, from version to be tested, determines the version of display of webpage to be visited.
When the version number that version to be tested is corresponding is 2, and two versions are when being respectively first version and the second edition, if version identifier corresponding to the user profile of active user is the mark of first version, then the version of display of webpage to be visited that terminal is determined is first version; If version identifier corresponding to the user profile of active user is the mark of the second edition, then the version of display of webpage to be visited that terminal is determined is the second edition.
It should be noted that, this default corresponding relation can be pre-stored within terminal local, also can prestore on the server, and while web page contents is sent to terminal by server, or before or after web page contents is sent to terminal by server, this default corresponding relation is sent to terminal.
In addition, because user profile can have different actual avatars, and when user profile is different, terminal is when determining version of display, and the default corresponding relation of use is also different.Therefore, server might have stored the corresponding relation between the user profile of different avatar and version identifier.On this basis, for the ease of terminal determination version of display, server can obtain the user profile of active user, and the actual avatar of user profile according to active user, the default corresponding relation corresponding with this actual avatar is sent to terminal.
When coming to send default corresponding relation to terminal by this kind of mode, can guarantee that server only returns the data of mating with the type of user information of its acquisition to terminal, thus terminal can be avoided because of the data of storing excess to affect its travelling speed.
In another embodiment, whether terminal, in the process receiving web page contents, can also receive whole web page contents by real-time listening, and when guaranteeing to receive whole web page contents, then determine the version of display of webpage to be visited.In this process, server can record the duration that terminal receives this web page contents, and analyzes the performance of terminal and network speed situation according to this duration.
In addition, by this monitoring step, if when the visit information that terminal gets comprises terminal system model or browser type mark, server can test webpage to be visited under this terminal system model or browser type, whether can be opened fast, thus be convenient to the loading velocity of server optimization webpage to be visited under this terminal system model or browser type.
In step S405, terminal obtains the web page contents of version of display, and obtains the visit information to the web page contents of version of display.
In a possible embodiment, if server is when sending version to be tested to terminal, have sent the web page contents of each version, then terminal directly can obtain the web page contents of version of display from terminal local simultaneously.If server is when sending version to be tested to terminal, do not send the web page contents of each version, then terminal is when obtaining the web page contents of version of display, the banner of version of display can be sent to server, after making whois lookup arrive the web page contents of mark correspondence of this version of display, the web page contents found is sent to terminal.
In addition, visit information be terminal from access the web page contents of version of display, in access terminal procedure, the relevant information of acquisition.About the particular content of visit information, disclosure embodiment does not do concrete restriction.Due in the process of the web page contents of access version of display, both the visit information more intuitively such as version identifier, user profile, browser mark can have been recorded, also can record and the tool of the web page contents of version of display is operated, therefore, terminal is when obtaining the visit information to the web page contents of version of display, the user profile of the version identifier that first can obtain version of display and the active user accessing webpage to be visited, using the user profile of version identifier and active user as the first visit information.
In conjunction with the content of the first visit information, first visit information is being determined version of display and can obtained after the web page contents of reception server transmission, namely can get when the web page contents of accessing version of display starts, realize without the need to the concrete operations according to terminal access version of display, therefore, the first visit information belongs to macroscopic information.
Certainly, the first visit information can also comprise other content, as comprised browser mark, terminal system model etc.
Terminal is by obtaining this first visit information, make subsequent server when determining the test result treating accessed web page, first visit information that can send according to multiple terminal, distinguish the flow of each version more intuitively, thus can realize analyzing the macroscopic behavior of each end-user access webpage process.
Further, terminal is in the process of the web page contents of access version of display, the at least one event in the mouse click event and keyboard operation event that the web page contents of version of display is carried out can also be detected, and according at least one event in mouse click event and keyboard operation event, determine the second visit information.In a possible embodiment, terminal can detect mouse click event or keyboard operation event by javascript.Can obtain thus, be different from the first visit information, the second visit information is that terminal obtains in the process of the web page contents of access version of display.
Wherein, the time that mouse click event comprises the position of mouse webpage clicking, mouse clicks each position and the URL etc. that mouse is clicked.Keyboard operation event comprises the character by input through keyboard, the instruction etc. by input through keyboard.Disclosure embodiment does not limit the particular content of mouse click event and keyboard operation event.On this basis, the combination of a kind of in the URL information that the second visit information is the positional information of mouse webpage clicking, mouse clicks the temporal information of each position, mouse is clicked, the character information by input through keyboard and the instruction by input through keyboard or at least two kinds.To sum up, the second visit information is that obtain in the process of the web page contents of terminal access version of display, relevant to the concrete operations of the web page contents to version of display information.
In conjunction with foregoing, the visit information that terminal obtains can be at least one in the first visit information and the second visit information.What the visit information that concrete terminal obtains is, can determine in conjunction with the test purpose treating test webpage.
Such as, when each version that version to be tested is corresponding is first version and the second edition, when the content included by the relative first version of the second edition does not change, only in the typesetting of web page contents, there occurs change, namely test purpose is the fancy grade that test subscriber changes webpage layout, and this test process belongs to and carries out macro-test to this webpage to be visited.In that case, can determine which version is more popular with users by the customer flow of each version, and customer flow can be realized by the cookie ID quantity, IP number of addresses etc. of statistics access different editions, therefore, the visit information that now terminal obtains can be only above-mentioned first visit information.
Again such as, when the second edition need by user input content to jump to the next page relative to the second edition that is changed to of first version, and the second edition is without the need to user input content, and the next page can be jumped to after user selects in webpage option detecting.Realization due to this test purpose needs to realize, therefore, when testing in conjunction with the operation of user, need combined mouse click event or keyboard operation event, determine whether user operates, therefore, the visit information that now terminal obtains should comprise above-mentioned second visit information.
Because the second visit information is relevant with the concrete operations of the web page contents of terminal access version of display, therefore, relative first visit information of the second visit information is microscopic information.By the second visit information, be convenient to difference second visit information that subsequent server obtains according to multiple terminal, the microscopic behavior of each end-user access webpage process is analyzed, thus accessed web page can be treated compare and test subtly.
In step S404 and step S405, by terminal determination version of display and obtain visit information, achieve in webpage test process, the work that calculated amount is larger is completed by terminal, the calculated performance of terminal can not only be made full use of, and the calculating pressure of server can be alleviated.
In step S406, this visit information is sent to server by terminal.
Wherein, terminal can pass through the mode of AJAX (Asynchronous JavaScript, a kind of web development technologies), and this visit information is sent to server.In addition, terminal can also create new object by javascript, as new Image () object, realizes this visit information to be sent to server etc.
It should be noted that, visit information is only directly committed to server for terminal and is illustrated by disclosure embodiment, but, when described server is a server cluster, obtains and return the server of web page contents to terminal and determine that the server of test result is different server.Wherein, determine that the server of test result is data server.In such cases, visit information, when getting visit information, can be committed to data server by terminal, and follow-up by data server according to visit information, determine the test result treating accessed web page.
In step S 407, server according to visit information, determines the test result treating accessed web page after receiving the visit information of this terminal transmission.
In another embodiment, server, according to visit information, when determining the test result treating accessed web page, is realize the visit information of the web page contents of different editions according to multiple terminal.Wherein, server is configured with the data warehouse storing the visit information that multiple terminal sends, after each terminal sends visit information, the visit information obtained from each terminal is stored in this data warehouse by server.Disclosure embodiment does not limit the concrete storage medium of data warehouse, such as, can be hard disk, disk etc.
In another embodiment, server is according to the visit information of multiple terminal to the web page contents of different editions, when determining the test result treating accessed web page, for some test purposes, according to the visit information of multiple terminal to the web page contents of each version, the number of users of each version can be determined.Further, server, according to the number of users of each version, determines the test result treating accessed web page.
Such as, when version to be tested comprises first version and the second edition, when terminal quantity is 10000, if select the second edition to have 5000 as the terminal of version of display, select first version to have 2000 as the terminal of version of display, then determine that the second edition is more popular with users.
When arbitrary version user quantity is greater than other version user quantity, can determine that this edition comparison is popular with users, therefore, server can promote this version.
The method that disclosure embodiment provides, the version to be tested comprising at least two versions of webpage to be visited is obtained by terminal, the version of display of webpage to be visited is determined from version to be tested, and obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to by server determination version of display and acquisition visit information, thus can take less server resource, thus can server load be reduced.
Fig. 5 is the block diagram of a kind of terminal according to an exemplary embodiment.With reference to Fig. 5, this terminal comprises the first acquisition module 501, determination module 502, second acquisition module 503, the 3rd acquisition module 504 and sending module 505.Wherein:
This first acquisition module 501 is configured to the version to be tested obtaining webpage to be visited, and wherein, the version number that version to be tested is corresponding is more than or equal to 2.
This determination module 502 is configured to, the version to be tested obtained from the first acquisition module 501, determine the version of display of webpage to be visited.
This second acquisition module 503 is configured to the web page contents obtaining the version of display that determination module 502 is determined.
3rd acquisition module 504 is configured to the visit information of the web page contents obtained the version of display that the second acquisition module 503 obtains.
The visit information that this sending module 505 is configured to the 3rd acquisition module 504 obtains is sent to server, makes server according to visit information, determines the test result treating accessed web page.
The terminal that disclosure embodiment provides, by obtaining the version to be tested comprising at least two versions of webpage to be visited, the version of display of webpage to be visited is determined from version to be tested, and obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to by server determination version of display and acquisition visit information, thus can take less server resource, thus can server load be reduced.
In another embodiment, see Fig. 6, determination module 502 comprises the first acquisition submodule 5021, inquiry submodule 5022 and determines submodule 5023.Wherein:
This first acquisition submodule 5021 is configured to the user profile of the active user obtaining access webpage to be visited.
Corresponding relation is preset in the user profile inquiry that this inquiry submodule 5022 is configured to obtain according to first active user that submodule 5021 obtains, obtain the version identifier that the user profile of active user is corresponding, wherein, default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier preset in corresponding relation comprises the mark of each version in version to be tested.
This determines that submodule 5023 is configured to the version identifier corresponding according to the user profile of the active user of inquiry submodule 5022 inquiry, from version to be tested, determines the version of display of webpage to be visited.
In another embodiment, see Fig. 7, the 3rd acquisition module 504 comprises the second acquisition submodule 5041 and detection sub-module 5042.Wherein:
This second obtains submodule 5041 and is configured to obtain the version identifier of version of display and access the user profile of active user of webpage to be visited, determines that user profile two kinds of information of version identifier and active user are the first visit information.And/or,
This detection sub-module 5042 is configured to detect at least one event in the mouse click event and keyboard operation event of carrying out the web page contents of version of display; According at least one event in mouse click event and keyboard operation event, determine the second visit information.
Wherein, visit information is at least one in the first visit information and the second visit information.
Terminal in above-mentioned Fig. 5 to Fig. 7, may be used for performing the function performed by terminal in the webpage method of testing that in the corresponding embodiment of above-mentioned Fig. 2 to Fig. 4, any embodiment provides.About the terminal in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 8 is the block diagram of a kind of server according to an exemplary embodiment.With reference to Fig. 8, this server comprises the first acquisition module 801, first sending module 802, receiver module 803 and determination module 804.Wherein:
This first acquisition module 801 is configured to the version to be tested obtaining webpage to be visited, and wherein, the version number that version to be tested is corresponding is more than or equal to 2.
The version to be tested that this first sending module 802 is configured to the first acquisition module 801 obtains is sent to terminal, make terminal from version to be tested, determine the version of display of webpage to be visited, and obtain the visit information of the web page contents of version of display and the web page contents to version of display.
This receiver module 803 is configured to the visit information that receiving terminal sends.
This determination module 804 is configured to the visit information received according to receiver module 803, determines the test result treating accessed web page.
The server that disclosure embodiment provides, by obtaining the version to be tested comprising at least two versions of webpage to be visited, and version to be tested is sent to terminal, make terminal from version to be tested, determine the version of display of webpage to be visited, and make terminal obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to determining version of display in this locality and obtaining visit information, thus can take less system resource, thus can load be reduced.
In another embodiment, see Fig. 9, server also comprises: the second acquisition module 805 and the second sending module 806.Wherein:
This second acquisition module 805 is configured to the user profile of the active user obtaining access webpage to be visited.
This second sending module 806 is configured to the user profile of the active user obtained according to the second acquisition module 805, and default corresponding relation is sent to terminal, and wherein, default corresponding relation is the corresponding relation between user profile and version identifier.
Server in above-mentioned Fig. 8 and Fig. 9, may be used for performing the function performed by server in the webpage method of testing that in the corresponding embodiment of above-mentioned Fig. 2 to Fig. 4, any embodiment provides.About the server in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 10 is the block diagram of a kind of terminal 1000 according to an exemplary embodiment, and this terminal may be used for performing the function in the webpage method of testing that in embodiment corresponding to above-mentioned Fig. 2 to Fig. 4, any embodiment provides performed by terminal.Such as, terminal 1000 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 10, terminal 1000 can comprise following one or more assembly: processing components 1002, storer 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, I/O (Input/Output, I/O) interface 1012, sensor module 1014, and communications component 1016.
The integrated operation of the usual control terminal 1000 of processing components 1002, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1002 can comprise one or more processor 1020 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1002 can comprise one or more module, and what be convenient between processing components 1002 and other assembly is mutual.Such as, processing components 1002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1008 and processing components 1002.
Storer 1004 is configured to store various types of data to be supported in the operation of terminal 1000.The example of these data comprises for any application program of operation in terminal 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM (Static Random AccessMemory, static RAM), EEPROM (Electrically-Erasable ProgrammableRead-Only Memory, Electrically Erasable Read Only Memory), EPROM (ErasableProgrammable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), ROM (Read-OnlyMemory, ROM (read-only memory)), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 1006 is terminal 1000 provide electric power.Power supply module 1006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 1000 and be associated.
Multimedia groupware 1008 is included in the screen providing an output interface between described terminal 1000 and user.In certain embodiments, screen can comprise LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When terminal 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1010 comprises a MIC (Microphone, microphone), and when terminal 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1004 further or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loudspeaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1014 comprises one or more sensor, for providing the state estimation of various aspects for terminal 1000.Such as, sensor module 1014 can detect the opening/closing state of terminal 1000, the relative positioning of assembly, such as assembly is display and the keypad of terminal 1000, the position of all right sense terminals 1000 of sensor module 1014 or terminal 1000 assemblies changes, the presence or absence that user contacts with terminal 1000, the temperature variation of terminal 1000 orientation or acceleration/deceleration and terminal 1000.Sensor module 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1014 can also comprise optical sensor, as CMOS (ComplementaryMetal Oxide Semiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupled Device, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor module 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1016 is configured to the communication being convenient to wired or wireless mode between terminal 1000 and other equipment.Terminal 1000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1016 also comprises NFC (Near Field Communication, near-field communication) module, to promote junction service.Such as, can based on RFID (Radio Frequency Identification in NFC module, radio-frequency (RF) identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (UltraWideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technology realize.
In the exemplary embodiment, terminal 1000 can by one or more ASIC (Application SpecificIntegrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, digital signal processor), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device (PLD)), FPGA (Field ProgrammableGate Array, field programmable gate array), controller, microcontroller, microprocessor or other electron component realize, for performing the function in webpage method of testing that any embodiment in embodiment corresponding to above-mentioned Fig. 2 to Fig. 4 provides performed by terminal.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1004 of instruction, above-mentioned instruction can perform said method by the processor 1020 of terminal 1000.Such as, described non-transitory computer-readable recording medium can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-OnlyMemory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make terminal can perform a kind of webpage method of testing, described method comprises:
Obtain the version to be tested of webpage to be visited, wherein, the version number that version to be tested is corresponding is more than or equal to 2.
From version to be tested, determine the version of display of webpage to be visited;
Obtain the web page contents of version of display.
Obtain the visit information to the web page contents of version of display.
Visit information is sent to server, makes server according to visit information, determine the test result treating accessed web page.
Suppose that above-mentioned is the first possible embodiment, in the embodiment that the second then provided based on the embodiment that the first is possible is possible, in the storer of terminal, also comprise the instruction for performing following operation: from version to be tested, determine the version of display of webpage to be visited, comprising:
Obtain the user profile of the active user of access webpage to be visited.
Corresponding relation is preset in user profile inquiry according to described active user, obtain the version identifier that the user profile of active user is corresponding, wherein, default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier preset in corresponding relation comprises the mark of each version in version to be tested.
The version identifier corresponding according to the user profile of described active user, from version to be tested, determines the version of display of described webpage to be visited.
In the third the possible embodiment provided based on the embodiment that the first is possible, in the storer of terminal, also comprising the instruction for performing following operation: the visit information obtaining the web page contents to version of display, comprising:
The user profile of the version identifier obtaining version of display and the active user accessing webpage to be visited, determines that user profile two kinds of information of version identifier and active user are the first visit information.And/or,
Detect at least one event in the mouse click event and keyboard operation event that the web page contents of version of display is carried out; According at least one event in mouse click event and keyboard operation event, determine the second visit information.
Wherein, visit information is at least one in the first visit information and the second visit information.
The non-transitory computer-readable recording medium that disclosure embodiment provides, by obtaining the version to be tested comprising at least two versions of webpage to be visited, and from version to be tested, determine the version of display of webpage to be visited, obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to by server determination version of display and obtain visit information, thus can take less server resource, thus can server load be reduced.
Figure 11 is the block diagram of a kind of server 1100 according to an exemplary embodiment, and this server may be used for performing the function in the webpage method of testing that in embodiment corresponding to above-mentioned Fig. 2 to Fig. 4, any embodiment provides performed by server.With reference to Figure 11, server 1100 comprises processing components 1122, and it comprises one or more processor further, and the memory resource representated by storer 1132, can such as, by the instruction of the execution of processing components 1122, application program for storing.The application program stored in storer 1132 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1122 is configured to perform instruction, the function in the webpage method of testing that in embodiment corresponding to Fig. 2 to Fig. 4, any embodiment provides to perform the above method performed by server.
Server 1100 can also comprise the power management that a power supply module 1126 is configured to perform server 1100, a wired or wireless network interface 1150 is configured to server 1100 to be connected to network, and input and output (I/O) interface 1158.Server 1100 can operate the operating system based on being stored in storer 1132, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
When one or more instruction is performed by the processing components of server, make processing components can perform a kind of webpage method of testing, method comprises:
Obtain the version to be tested of webpage to be visited, wherein, the version number that version to be tested is corresponding is more than or equal to 2.
Version to be tested is sent to terminal, makes terminal from version to be tested, determine the version of display of webpage to be visited, and obtain the visit information of the web page contents of version of display and the web page contents to version of display.
The visit information that receiving terminal sends.
According to visit information, determine the test result treating accessed web page.
Suppose that above-mentioned is the first possible embodiment, in the embodiment that the second then provided based on the embodiment that the first is possible is possible, in the storer of server, also comprise the instruction for performing following operation: before version to be tested is sent to terminal, also comprise:
Obtain the user profile of the active user of access webpage to be visited.
According to the user profile of active user, default corresponding relation is sent to terminal, wherein, default corresponding relation is the corresponding relation between user profile and version identifier.
The server that disclosure embodiment provides, by obtaining the version to be tested comprising at least two versions of webpage to be visited, and version to be tested is sent to terminal, make terminal from version to be tested, determine the version of display of webpage to be visited, and make terminal obtain the visit information of the web page contents of version of display and the web page contents to version of display, make when testing webpage, without the need to determining version of display in this locality and obtaining visit information, thus can take less system resource, thus can load be reduced.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (12)

1. a webpage method of testing, is characterized in that, described method comprises:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
From described version to be tested, determine the version of display of described webpage to be visited;
Obtain the web page contents of described version of display;
Obtain the visit information to the web page contents of described version of display;
Described visit information is sent to described server, makes described server according to described visit information, determine the test result to described webpage to be visited.
2. method according to claim 1, is characterized in that, described from described version to be tested, determines the version of display of described webpage to be visited, comprising:
Obtain the user profile of the active user of the described webpage to be visited of access;
Corresponding relation is preset in user profile inquiry according to described active user, obtain the version identifier that the user profile of described active user is corresponding, described default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier in described default corresponding relation comprises the mark of each version in described version to be tested;
The version identifier corresponding according to the user profile of described active user, from described version to be tested, determines the version of display of described webpage to be visited.
3. method according to claim 1, is characterized in that, described acquisition, to the visit information of the web page contents of described version of display, comprising:
The user profile of the version identifier obtaining described version of display and the active user accessing described webpage to be visited, determines that user profile two kinds of information of described version identifier and described active user are the first visit information; And/or,
Detect at least one event in the mouse click event and keyboard operation event that the web page contents of described version of display is carried out; According at least one event in described mouse click event and keyboard operation event, determine the second visit information.
4. a webpage method of testing, is characterized in that, described method comprises:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
Described version to be tested is sent to described terminal, makes described terminal from described version to be tested, determine the version of display of described webpage to be visited, and obtain the visit information of the web page contents of described version of display and the web page contents to described version of display;
Receive the visit information that described terminal sends;
According to described visit information, determine the test result to described webpage to be visited.
5. method according to claim 4, is characterized in that, described described version to be tested is sent to described terminal before, also comprise:
Obtain the user profile of the active user of the described webpage to be visited of access;
According to the user profile of described active user, default corresponding relation is sent to described terminal, described default corresponding relation is the corresponding relation between user profile and version identifier.
6. a terminal, is characterized in that, described terminal comprises:
First acquisition module, for obtaining the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
Determination module, for from described version to be tested, determines the version of display of described webpage to be visited;
Second acquisition module, for obtaining the web page contents of the described version of display that described determination module is determined;
3rd acquisition module, for obtaining the visit information of the web page contents to the described version of display that described second acquisition module obtains;
Sending module, is sent to described server for the described visit information obtained by described 3rd acquisition module, makes described server according to described visit information, determine the test result to described webpage to be visited.
7. terminal according to claim 6, is characterized in that, described determination module comprises:
First obtains submodule, for obtaining the user profile of the active user accessing described webpage to be visited;
Inquiry submodule, corresponding relation is preset in user profile inquiry for obtaining according to described first the described active user that submodule obtains, obtain the version identifier that the user profile of described active user is corresponding, described default corresponding relation is the corresponding relation between user profile and version identifier, and the version identifier in described default corresponding relation comprises the mark of each version in described version to be tested;
Determine submodule, the version identifier that the user profile for the described active user according to described inquiry submodule inquiry is corresponding, from described version to be tested, determine the version of display of described webpage to be visited.
8. terminal according to claim 6, is characterized in that, described 3rd acquisition module comprises:
Second obtains submodule, for obtaining the version identifier of described version of display and accessing the user profile of active user of described webpage to be visited, determines that user profile two kinds of information of described version identifier and described active user are the first visit information; And/or,
Detection sub-module, for detecting at least one event in the mouse click event and keyboard operation event of carrying out the web page contents of described version of display; According at least one event in described mouse click event and keyboard operation event, determine the second visit information.
9. a server, is characterized in that, described server comprises:
First acquisition module, for obtaining the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
First sending module, version described to be tested for being obtained by described first acquisition module is sent to described terminal, make described terminal from described version to be tested, determine the version of display of described webpage to be visited, and obtain the visit information of the web page contents of described version of display and the web page contents to described version of display;
Receiver module, for receiving the visit information that described terminal sends;
Determination module, for the described visit information received according to described receiver module, determines the test result to described webpage to be visited.
10. server according to claim 9, is characterized in that, described server also comprises:
Second acquisition module, for obtaining the user profile of the active user accessing described webpage to be visited;
Second sending module, for the user profile of the described active user according to described second acquisition module acquisition, default corresponding relation is sent to described terminal, and described default corresponding relation is the corresponding relation between user profile and version identifier.
11. 1 kinds of terminals, is characterized in that, described terminal comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
From described version to be tested, determine the version of display of described webpage to be visited;
Obtain the web page contents of described version of display;
Obtain the visit information to the web page contents of described version of display;
Described visit information is sent to described server, makes described server according to described visit information, determine the test result to described webpage to be visited.
12. 1 kinds of servers, is characterized in that, described server comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the version to be tested of webpage to be visited, the version number that described version to be tested is corresponding is more than or equal to 2;
Described version to be tested is sent to described terminal, makes described terminal from described version to be tested, determine the version of display of described webpage to be visited, and obtain the visit information of the web page contents of described version of display and the web page contents to described version of display;
Receive the visit information that described terminal sends;
According to described visit information, determine the test result to described webpage to be visited.
CN201510353336.0A 2015-06-24 2015-06-24 webpage test method, terminal and server Active CN104978267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510353336.0A CN104978267B (en) 2015-06-24 2015-06-24 webpage test method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510353336.0A CN104978267B (en) 2015-06-24 2015-06-24 webpage test method, terminal and server

Publications (2)

Publication Number Publication Date
CN104978267A true CN104978267A (en) 2015-10-14
CN104978267B CN104978267B (en) 2018-07-27

Family

ID=54274796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510353336.0A Active CN104978267B (en) 2015-06-24 2015-06-24 webpage test method, terminal and server

Country Status (1)

Country Link
CN (1) CN104978267B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096021A (en) * 2016-06-24 2016-11-09 合信息技术(北京)有限公司 A kind of static page gray scale dissemination method and system
CN106611010A (en) * 2015-10-26 2017-05-03 北京国双科技有限公司 Method and device for determining webpage loading speed
CN107451047A (en) * 2016-05-31 2017-12-08 广州市动景计算机科技有限公司 Browser function method of testing, system and electronic equipment
CN107798071A (en) * 2017-09-27 2018-03-13 风变科技(深圳)有限公司 A kind of reading content method of adjustment, device, terminal device and storage medium
CN107818046A (en) * 2017-10-11 2018-03-20 五八有限公司 The A/B method of testings and device of the application program page
CN108536608A (en) * 2018-04-25 2018-09-14 万惠投资管理有限公司 Page versions test method and device
CN109446081A (en) * 2018-10-22 2019-03-08 江苏满运软件科技有限公司 For the test method of HTML5 webpage, system, equipment and medium
CN110245069A (en) * 2019-04-28 2019-09-17 阿里巴巴集团控股有限公司 The methods of exhibiting and device of the test method and device of page versions, the page
CN110347578A (en) * 2018-04-08 2019-10-18 腾讯科技(深圳)有限公司 A kind of test method of application, device and storage medium
CN110471843A (en) * 2019-07-16 2019-11-19 北京三快在线科技有限公司 Method, apparatus, storage medium and the electronic equipment of version test
CN111190816A (en) * 2019-12-20 2020-05-22 上海淇玥信息技术有限公司 Method and device for collecting user behavior data and electronic equipment
CN112162918A (en) * 2020-09-07 2021-01-01 北京达佳互联信息技术有限公司 Application program testing method and device and electronic equipment
CN112597423A (en) * 2021-01-04 2021-04-02 聚好看科技股份有限公司 Webpage content display method, terminal and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100136774A (en) * 2009-06-19 2010-12-29 강원대학교산학협력단 Web-based hierarchical test system and method for robot software component test
CN102932197A (en) * 2011-08-11 2013-02-13 阿里巴巴集团控股有限公司 Testing method and system
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server
US8904346B1 (en) * 2013-03-11 2014-12-02 “Intermind” société à responsabilité limitée Method and system for automated load testing of web applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100136774A (en) * 2009-06-19 2010-12-29 강원대학교산학협력단 Web-based hierarchical test system and method for robot software component test
CN102932197A (en) * 2011-08-11 2013-02-13 阿里巴巴集团控股有限公司 Testing method and system
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server
US8904346B1 (en) * 2013-03-11 2014-12-02 “Intermind” société à responsabilité limitée Method and system for automated load testing of web applications

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OLDJ: ""A/B测试:实现方法"", 《HTTP://WWW.ALIUED.CN/2010/09/27/AB-TESTING-REALIZATION-METHOD.HTML》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106611010A (en) * 2015-10-26 2017-05-03 北京国双科技有限公司 Method and device for determining webpage loading speed
CN106611010B (en) * 2015-10-26 2020-02-07 北京国双科技有限公司 Method and device for determining webpage loading speed
CN107451047A (en) * 2016-05-31 2017-12-08 广州市动景计算机科技有限公司 Browser function method of testing, system and electronic equipment
CN106096021A (en) * 2016-06-24 2016-11-09 合信息技术(北京)有限公司 A kind of static page gray scale dissemination method and system
CN107798071A (en) * 2017-09-27 2018-03-13 风变科技(深圳)有限公司 A kind of reading content method of adjustment, device, terminal device and storage medium
CN107818046A (en) * 2017-10-11 2018-03-20 五八有限公司 The A/B method of testings and device of the application program page
CN107818046B (en) * 2017-10-11 2022-03-22 五八有限公司 A/B test method and device for application program page
CN110347578A (en) * 2018-04-08 2019-10-18 腾讯科技(深圳)有限公司 A kind of test method of application, device and storage medium
CN110347578B (en) * 2018-04-08 2022-05-17 腾讯科技(深圳)有限公司 Application testing method and device and storage medium
CN108536608A (en) * 2018-04-25 2018-09-14 万惠投资管理有限公司 Page versions test method and device
CN109446081A (en) * 2018-10-22 2019-03-08 江苏满运软件科技有限公司 For the test method of HTML5 webpage, system, equipment and medium
CN110245069A (en) * 2019-04-28 2019-09-17 阿里巴巴集团控股有限公司 The methods of exhibiting and device of the test method and device of page versions, the page
CN110471843A (en) * 2019-07-16 2019-11-19 北京三快在线科技有限公司 Method, apparatus, storage medium and the electronic equipment of version test
CN110471843B (en) * 2019-07-16 2021-03-26 北京三快在线科技有限公司 Version test method and device, storage medium and electronic equipment
CN111190816A (en) * 2019-12-20 2020-05-22 上海淇玥信息技术有限公司 Method and device for collecting user behavior data and electronic equipment
CN112162918A (en) * 2020-09-07 2021-01-01 北京达佳互联信息技术有限公司 Application program testing method and device and electronic equipment
CN112597423A (en) * 2021-01-04 2021-04-02 聚好看科技股份有限公司 Webpage content display method, terminal and server
CN112597423B (en) * 2021-01-04 2023-11-03 聚好看科技股份有限公司 Webpage content display method, terminal and server

Also Published As

Publication number Publication date
CN104978267B (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN104978267A (en) Web page testing method, terminal and server
CN108763579B (en) Search content recommendation method and device, terminal device and storage medium
CN104066009B (en) program identification method, device, terminal, server and system
CN105183513A (en) Application recommendation method and apparatus
CN105208015A (en) Application multi-account login processing method and device and terminal device
CN104615655A (en) Information recommendation method and device
CN105095427A (en) Search recommendation method and device
CN104899083A (en) Application share method and device
CN105159524A (en) Interface display method and apparatus
CN105930536A (en) Method and device for creating indexes and method and device for jumping pages
CN104967683A (en) Message pushing method, terminal and server
CN105488109A (en) Content item configuration method, device and system
CN105095227A (en) Method and apparatus for preloading webpage
CN104580019A (en) Network service supplying method and device
US11652763B2 (en) Information display method and apparatus, and electronic device
CN105468238A (en) File icon display method and device and equipment
CN105095081A (en) Application program function testing method and device
CN104331503A (en) Information push method and device
CN104111979A (en) Search recommendation method and device
US11809690B2 (en) Human-computer interaction method and apparatus, and electronic device
CN104539812A (en) Recommendation information acquisition method, terminal and server
CN104639609A (en) Method and device for sharing network
CN104536787A (en) Resource preloading method and device
CN112749074B (en) Test case recommending method and device
CN104298430A (en) Telephone ordering method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160704

Address after: 100085, Haidian District, Beijing Qinghe Street No. 68, Huarun colorful city shopping center two, 9 layers

Applicant after: Millet Communication Technology Co Ltd

Address before: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant before: Xiaomi Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant