CN104102578A - Test method and system and operation terminal - Google Patents

Test method and system and operation terminal Download PDF

Info

Publication number
CN104102578A
CN104102578A CN201410301283.3A CN201410301283A CN104102578A CN 104102578 A CN104102578 A CN 104102578A CN 201410301283 A CN201410301283 A CN 201410301283A CN 104102578 A CN104102578 A CN 104102578A
Authority
CN
China
Prior art keywords
test
browser
test lead
candidate
page
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
CN201410301283.3A
Other languages
Chinese (zh)
Other versions
CN104102578B (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.)
Baidu Online Network Technology Beijing Co Ltd
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 CN201410301283.3A priority Critical patent/CN104102578B/en
Publication of CN104102578A publication Critical patent/CN104102578A/en
Application granted granted Critical
Publication of CN104102578B publication Critical patent/CN104102578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a test method, a test system and an operation terminal. According to the embodiment of the invention, only an operator using the operation terminal needs to execute one test operation manually on a page to be tested, which is displayed by a browser, namely a first browser, the same test operation is driven to be automatically executed on a page to be tested, which is displayed by other browser, namely a second browser by a test end in real time, and the operator does not need manually to execute the same test operation for many times on pages to be tested, which are displayed by different browsers. The operation is simple, the accuracy is high, and the efficiency and the reliability of test operation are thus improved.

Description

Method of testing and system, operating side
[technical field]
The present invention relates to measuring technology, relate in particular to a kind of method of testing and system, operating side.
[background technology]
At software test procedure for example, in user interface (User interface, UI) test, for fear of the risk of program, need to utilize the test case of design, automatically move test operation.At present, there are some pages to show the test operation mutual with the page, cannot utilize test case, automatically move test operation.But the page to be tested that needs operating personnel to represent at different browsers, manually carries out repeatedly identical test operation.
But, the complicated operation of existing test operation, and easily makeing mistakes, thus the reduction of efficiency and the reliability of test operation caused.
[summary of the invention]
Many aspects of the present invention provide a kind of method of testing and system, operating side, in order to improve efficiency and the reliability of test operation.
An aspect of of the present present invention, provides a kind of method of testing, comprising:
Operation behavior on the page to be tested that operating side Gather and input equipment represents at the first browser, described operation behavior comprises the page elements information of operation and the behavioural information of operation;
Described operating side is according to described operation behavior, generating run instruction;
Described operating side sends test instruction and described operational order to each test lead at least one test lead, so that described each test lead is indicated according to described test, on the page described to be tested representing, carries out described operational order at the second browser.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described operating side sends test instruction and described operational order to each test lead at least one test lead, comprising:
Described operating side is by Distributor, sends test instruction and described operational order to each test lead at least one test lead.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described operating side is by Distributor, before sending test instruction and described operational order, also comprises to each test lead at least one test lead:
Described operating side sends trigger message to described Distributor;
Described operating side receives the described test instruction that described Distributor sends, and to make described user determine described each test lead, described test is designated as described Distributor according to described trigger message, is this test starting Service Instance, generates;
Described operating side sends described test instruction, the identification information of the described page to be tested and the identification information of described each test lead to described Distributor, to make described Distributor according to the identification information of described each test lead, send the identification information of described test instruction and the described page to be tested to described each test lead, to make described each test lead drive described the second browser to represent the described page to be tested.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described method also comprises:
Proxy server receives the first candidate HTTP request, and described the first candidate HTTP request, for described the first browser is according to the operating result of described operation behavior, generates;
Described proxy server receives the second candidate HTTP request, and described the second candidate HTTP request is described the second browser is carried out described operational order operating result according to described test lead, generates;
Described proxy server sends described the first candidate HTTP request to Web server, and receives described Web server according to described the first candidate HTTP request, first candidate's http response of transmission; Described proxy server sends described the second candidate HTTP request to Web server, and receives described Web server according to described the second candidate HTTP request, second candidate's http response of transmission; Described proxy server sends described first candidate's http response to described the first browser, sends described second candidate's http response to described the second browser; Or
Described proxy server is according to described the first candidate HTTP request and described the second candidate HTTP request, generate target HTTP request, send described target HTTP request to Web server, and receive described Web server and ask according to described target HTTP, the target http response of transmission; Described proxy server, to described the first browser and described the second browser, sends described target http response.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described operating side and described the first browser, and independent operating is on first terminal; Described operating side, with SDK form or card format, is arranged on the inside of described the first browser.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described each test lead and corresponding described the second browser, and independent operating is in the second terminal; Described test lead, with SDK form or card format, is arranged on the inside of described the second browser.
Another aspect of the present invention, provides a kind of test macro, comprises operating side and at least one test lead; Wherein,
Described operating side, the operation behavior on the page to be tested representing at the first browser for Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation; According to described operation behavior, generating run instruction; And send test instruction and described operational order to each test lead in described at least one test lead;
Described each test lead, for according to described test instruction, carries out described operational order on the page described to be tested representing at the second browser.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described system also comprises Distributor; Described operating side, specifically for
By described Distributor, send test instruction and described operational order to described each test lead.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation,
Described operating side, also for sending trigger message to described Distributor;
Described Distributor,, for according to described trigger message, is also this test starting Service Instance, to generate the described test instruction of described this test; Send described test instruction to described operating side, to make described user determine described each test lead;
Described operating side, also for sending described test instruction, the identification information of the described page to be tested and the identification information of described each test lead to described Distributor;
Described Distributor, also, for according to the identification information of described each test lead, sends the identification information of described test instruction and the described page to be tested to described each test lead;
Described each test lead, also for driving described the second browser to represent the described page to be tested.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described system also comprises proxy server, for
Receive the first candidate HTTP request, described the first candidate HTTP request, for described the first browser is according to the operating result of described operation behavior, generates; Receive the second candidate HTTP request, described the second candidate HTTP request is described the second browser is carried out described operational order operating result according to described test lead, generates;
Send described the first candidate HTTP request to Web server, and receive described Web server according to described the first candidate HTTP request, first candidate's http response of transmission; Send described the second candidate HTTP request to Web server, and receive described Web server according to described the second candidate HTTP request, second candidate's http response of transmission; Send described first candidate's http response to described the first browser, send described second candidate's http response to described the second browser; Or
According to described the first candidate HTTP request and described the second candidate HTTP request, generate target HTTP request; Send described target HTTP request to Web server; Receive described Web server and ask according to described target HTTP, the target http response of transmission; To described the first browser and described the second browser, send described target http response.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described operating side and described the first browser, and independent operating is on first terminal; Described operating side, with SDK form or card format, is arranged on the inside of described the first browser.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described each test lead and corresponding described the second browser, and independent operating is in the second terminal; Described test lead, with SDK form or card format, is arranged on the inside of described the second browser.
Another aspect of the present invention, provides a kind of operating side, comprises
Collecting unit, the operation behavior on the page to be tested representing at the first browser for Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation;
Generation unit, for according to described operation behavior, generating run instruction;
Transmitting element, for sending test instruction and described operational order to the each test lead of at least one test lead, so that described each test lead is indicated according to described test, carries out described operational order on the page described to be tested representing at the second browser.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described transmitting element, specifically for
By Distributor, send test instruction and described operational order to each test lead at least one test lead.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described operating side also comprises receiving element; Wherein,
Described transmitting element, also for sending trigger message to described Distributor;
Described receiving element, the described test instruction sending for receiving described Distributor, to make described user determine described each test lead, described test is designated as described Distributor according to described trigger message, for this test starting Service Instance, generate;
Described transmitting element, also for send described test instruction, the identification information of the described page to be tested and the identification information of described each test lead to described Distributor, to make described Distributor according to the identification information of described each test lead, send the identification information of described test instruction and the described page to be tested to described each test lead, to make described each test lead drive described the second browser to represent the described page to be tested.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described operating side and described the first browser, and independent operating is on first terminal; Described operating side, with SDK form or card format, is arranged on the inside of described the first browser.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described each test lead and corresponding described the second browser, and independent operating is in the second terminal; Described test lead, with SDK form or card format, is arranged on the inside of described the second browser.
As shown from the above technical solution, operation behavior on the page to be tested that the embodiment of the present invention represents at the first browser by operating side Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation, and then, according to described operation behavior, generating run instruction, make described operating side to send test instruction and described operational order to each test lead at least one test lead, like this, described each test lead can be according to described test instruction, on the page described to be tested representing at the second browser, carry out described operational order, only need to use operating personnel of operating side on the browser page to be tested that the first browser represents, manually carry out a test operation, just can drive on other browsers page to be tested that the second browser represents and automatically perform identical test operation by test lead in real time, and the page to be tested representing at different browsers without operating personnel, manually carry out repeatedly identical test operation, simple to operate, and accuracy is high, thereby efficiency and the reliability of test operation are improved.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, and the kind of the second browser does not have restricted number, therefore, can effectively improve the coverage rate of browser in test process.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, therefore, can contrast in real time the operating result of each test operation, thereby realize the object of real-time monitoring.
In addition, adopt technical scheme provided by the invention, be this test starting Service Instance by Distributor, to generate the test instruction of described this test, the test that each test can be corresponding different is indicated, therefore, Distributor can, simultaneously for multiple operating sides provide testing service, can effectively improve the efficiency of test operation.
[brief description of the drawings]
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the method for testing that Fig. 1 provides for one embodiment of the invention;
The structural representation of the test macro that Fig. 2 provides for another embodiment of the present invention;
The structural representation of the test macro that Fig. 3 provides for another embodiment of the present invention;
The structural representation of the test macro that Fig. 4 provides for another embodiment of the present invention;
The structural representation of the operating side that Fig. 5 provides for another embodiment of the present invention;
The structural representation of the operating side that Fig. 6 provides for another embodiment of the present invention.
[embodiment]
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making whole other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that; operational order described in the embodiment of the present invention can include but not limited to program, the program of C Plus Plus code compilation or the program of java language codes compiling of C language codes compiling; the program language that other are any realizes compiling is all within protection domain of the present invention, and the present invention is not particularly limited this.
In addition, term "and/or" herein, is only a kind of incidence relation of describing affiliated partner, and expression can exist three kinds of relations, and for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/" herein, generally represents that forward-backward correlation is to liking a kind of relation of "or".
WWW (World Wide Web, Web) page can comprise that by one or more page-tag be HTML (Hypertext Markup Language) (HyperText Markup Language, HTML) one of label composition shows block, be called page elements, for example, text, label, hyperlink, button, input frame, combobox etc.In user interface (User interface, UI) test, need to operate specified page element, to carry out test operation etc.
The schematic flow sheet of the method for testing that Fig. 1 provides for one embodiment of the invention, is applied in test macro, and this test macro can comprise operating side and at least one test lead.As shown in Figure 1.
101, the operation behavior on the page to be tested that Gather and input equipment in operating side represents at the first browser, described operation behavior comprises the page elements information of operation and the behavioural information of operation.
102, described operating side is according to described operation behavior, generating run instruction.
103, described operating side sends test instruction and described operational order to each test lead at least one test lead, so that described each test lead is indicated according to described test, on the page described to be tested representing, carries out described operational order at the second browser.
Alternatively, in one of the present embodiment possible implementation, between operating side and each test lead, can adopt alternately the mode based on multiple socket (Socket) agreement.For example, the standard Socket agreement based on transmission control protocol (Transmission Control Protocol, TCP).Or, more for example, based on the Web Socket agreement of HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP), to reach the communication mode based on TCP at HTTP Imitating.Like this, can realize between operating side and each test lead, the continual communication connection that has state, thus ensure the reliability of sequential delivery message.
Wherein, the second browser and the first browser, be different browsers; The quantity of the second browser is identical with the quantity of test lead, and the second browser is corresponding one by one with test lead, and corresponding the second browser of described each test lead, is different browsers.
Be understandable that, so-called different browsers, it can be the different browser moving in same operation system, or can also be the identical browser moving in different operating system, or can also be the different browser moving in different operating system, the present embodiment be particularly limited this.
For example, the second browser is the Firefox browser moving in Windows7 operating system, and the first browser is the Firefox browser moving in Windows8 operating system, and the two is different browsers.
Or, more for example, the second browser is the IE browser moving in Windows7 operating system, and the first browser is the Firefox browser moving in Windows7 operating system, the two is different browsers.
Or, more for example, corresponding second browser of test lead is the IE browser moving in Windows7 operating system, and corresponding the second browser of another test lead is the IE browser moving in Windows8 operating system, the two is different browsers.
It should be noted that, described operating side and described the first browser, can independent operating on first terminal; Or described operating side can also, with SDK (Software Development Kit) (Software Development Kit, SDK) form or card format, be arranged on the inside of described the first browser; The present embodiment is not particularly limited this.
It should be noted that, described each test lead and corresponding described the second browser, can independent operating in the second terminal; Or described test lead can also, with SDK form or card format, be arranged on the inside of described the second browser; The present embodiment is not particularly limited this.
Be understandable that, the page involved in the present invention, can be the webpage (Web Page) of writing based on HTML, also can be called the Web page.
Like this, operation behavior on the page to be tested representing at the first browser by operating side Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation, and then, according to described operation behavior, generating run instruction, make described operating side to send test instruction and described operational order to each test lead at least one test lead, like this, described each test lead can be according to described test instruction, on the page described to be tested representing at the second browser, carry out described operational order, only need to use operating personnel of operating side on the browser page to be tested that the first browser represents, manually carry out a test operation, just can drive on other browsers page to be tested that the second browser represents and automatically perform identical test operation by test lead in real time, and the page to be tested representing at different browsers without operating personnel, manually carry out repeatedly identical test operation, simple to operate, and accuracy is high, thereby efficiency and the reliability of test operation are improved.
Alternatively, in one of the present embodiment possible implementation, between operating side and each test lead, can adopt alternately the mode based on multiple socket (Socket) agreement.For example, the standard Socket agreement based on transmission control protocol (Transmission Control Protocol, TCP).Or, more for example, based on the Web Socket agreement of HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP), to reach the communication mode based on TCP at HTTP Imitating.Like this, can realize between operating side and each test lead, the continual communication connection that has state, thus ensure the reliability of sequential delivery message.
Alternatively, in one of the present embodiment possible implementation, in 101, listening mode, the operation behavior on the Gather and input equipment page to be tested that such as keyboard, mouse or touch-screen etc. represent at the first browser specifically can be passed through in described operating side.Wherein, described operation behavior can include but not limited to the page elements information of operation and the behavioural information of operation, for example, and mouse rollovers, mouse click, mouse process, input information etc.Wherein, keyboard can be physical keyboard, or all right dummy keyboard, and the present embodiment is not particularly limited this.
Particularly, cursor event specifically can be monitored in described operating side, to obtain the operation behavior on the page to be tested representing at the first browser.
If described input equipment is mouse, so, described cursor event, can be called mouse event, can comprise left mouse button click event, click event or mouse rollovers event by mouse right button.
If described input equipment is keyboard, so, can be called KeyEvent, described cursor event can comprise that carriage return confirmation event or menu eject event.
If described input equipment is touch-screen, so, can be called touchscreen events, described cursor event can comprise short time touch event or long-time touch event.
For example, can in the page to be tested, inject the mode of JavaScript code, to realize the cursor event of monitoring.
Or, more for example, in the time carrying out across page operation, the page that the first browser or the second browser are current represented is not the original page to be tested, but a new page can inject the mode of JavaScript code in the new page, to realize the cursor event of monitoring.
Taking JavaScript mouse event as example.Conventionally, in operating system, all bind JavaScript mouse event, in the time there is mouse action behavior in terminal, will trigger action system generate corresponding JavaScript mouse event, therefore, described operating side can be monitored JavaScript mouse event.In the time having listened to JavaScript mouse event and be triggered, the mouse action behavior corresponding with JavaScript mouse event can, according to the corresponding relation of the JavaScript mouse event being triggered and JavaScript mouse event and mouse action behavior, be determined in operating side.For example, in the time of a mouse click, onClick event can be triggered, and operating side can determine it is mouse-click behavior; Meanwhile, MouseDown event also can be triggered, and can from the parameter type of this MouseDown event, obtain x value and y value, and this x value and y value are exactly mouse click location.Operating side can, according to mouse click location, obtain the page elements corresponding with this mouse click location on current page, can determine the page elements information of this page elements.Like this, operating side has just obtained the operation behavior of mouse on the page, i.e. the page elements information of operation and the behavioural information of operation.
Alternatively, in one of the present embodiment possible implementation, in 102, it is operational order that operating side specifically can be translated as some row machine languages by gathered operation behavior, to simulate described operation behavior.
Alternatively, in one of the present embodiment possible implementation, in the applicable test macro of method of testing that the present embodiment provides, can further include Distributor.Particularly, Distributor can be the server end that adopts node.js language, java language, C Plus Plus to realize, and by port listening mode and operating side, each test lead, communicates.Particularly, between mutual and Distributor and the each test lead between Distributor and operating side, can adopt alternately the mode based on multiple socket (Socket) agreement.For example, the standard Socket agreement based on transmission control protocol (Transmission Control Protocol, TCP).Or, more for example, based on the Web Socket agreement of HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP), to reach the communication mode based on TCP at HTTP Imitating.Like this, can realize between Distributor and operating side and Distributor and each test lead between, the continual communication connection that has state, thus ensured the reliability of sequential delivery message.
Correspondingly, in 103, Distributor specifically can be passed through in described operating side, sends test instruction and described operational order to each test lead at least one test lead.
Further, before 103, operating side can trigger action end and Distributor establish a communications link, start to test.For example, can in the page to be tested, inject the mode of JavaScript code, to realize trigger action.Described Distributor receives the trigger message that described operating side sends, and then according to described trigger message, for this test starting Service Instance, to generate the described test instruction of described this test, for example, example ID (Case ID), session id (Session ID) etc.Then, described Distributor can send to described operating side described test instruction, to make described user determine described each test lead.Then, described Distributor receives described test instruction, the identification information of the described page to be tested and the identification information of described each test lead that described operating side sends, like this, described Distributor can be according to the identification information of described each test lead, send the identification information of described test instruction and the described page to be tested to described each test lead, to make described each test lead drive described the second browser to represent the described page to be tested.
For example, same operating side, no matter carry out operation in the page, still carry out across page operation, within all belonging to the scope of this test, therefore, Distributor need to be only with Service Instance of a test starting, without starting multiple Service Instances, once the instruction of the test in test is all identical.
Like this, be this test starting Service Instance by Distributor, to generate the test instruction of described this test, the test that each test can be corresponding different is indicated, therefore, Distributor can, simultaneously for multiple operating sides provide testing service, can effectively improve the efficiency of test operation.
Alternatively, in one of the present embodiment possible implementation, in the applicable test macro of method of testing that the present embodiment provides, can further include proxy server.Particularly, agency service implement body can receive the first candidate HTTP request, and described the first candidate HTTP request, for described the first browser is according to the operating result of described operation behavior, generates; And receiving the second candidate HTTP request, described the second candidate HTTP request is described the second browser is carried out described operational order operating result according to described test lead, generates.Then, described proxy server can, according to described the first candidate HTTP request and described the second candidate HTTP request, generate target HTTP request, and then send described target HTTP request to Web server.Then, described proxy server receives described Web server and asks according to described target HTTP, the target http response of transmission, and described proxy server can, to described the first browser and described the second browser, send described target http response.
Wherein, because the first browser is according to the operating result of its corresponding operating side executable operations instruction, generate and send the first candidate HTTP request, and multiple the second browsers are carried out the operating result of identical operational order in real time according to each self-corresponding test lead, generate and send the second identical candidate HTTP request, for the HTTP request for submitting data to, for example, after a newly-built list, submit to etc., will certainly occur only having a HTTP request to submit to successfully, for example, the first candidate HTTP request or any one the second candidate HTTP request, and other HTTP requests are all submitted to unsuccessfully.Therefore, proxy server need to, according to described the first candidate HTTP request and described the second candidate HTTP request, generate a unique target HTTP request.
Particularly, agency service implement body can be asked the first candidate HTTP, and the second candidate HTTP request of corresponding the second browser transmission of each test lead, utilizes pre-configured white list to carry out consistency desired result to submitted to data.For example, white list can comprise that part field is as user agent of timestamp, browser (User Agent, UA) etc.Then, described proxy server carries out fusion treatment to the HTTP request by consistency desired result, gives Web server to generate target HTTP request Concurrency, and the HTTP request by consistency desired result is not carried out to alarming processing.
Then, proxy server, after the target http response that further reception Web server asks to return according to described target HTTP, copies some parts by target http response, sends target http response respectively to the operating side by consistency desired result and test lead.
For some simple HTTP requests, for example, do not relate to the HTTP request of the submission of data etc., in the applicable test macro of method of testing that the present embodiment provides, without comprising proxy server, operating side and each test lead respectively direct and Web server communicate.The first browser sends the first candidate HTTP request and receives Web server to Web server and asks first candidate's http response of returning according to the first candidate HTTP, and the second browser sends the second candidate HTTP request and receives Web server to Web server asks second candidate's http response of returning according to the second candidate HTTP.
Therefore, in order to process all HTTP requests, proxy server can configure two kinds of mode of operations, and one is transparent transmission mode, and another kind is fusion mode.
Definition is for some simple HTTP requests, and proxy server adopts transparent transmission mode, processes.In request stage, directly the first candidate HTTP request and several the second candidate HTTP request are sent to respectively to Web server, do not carry out any processing; At response phase, directly Web server is asked to first candidate's http response of returning according to the first candidate HTTP, sending to operating side is corresponding the first browser in operating side, directly Web server is asked to second candidate's http response of returning according to the second candidate HTTP, it is corresponding the second browser of test lead that branch sends to each test lead.
Definition adopts fusion mode for the HTTP request broker server for submitting data to, processes.In request stage, the first candidate HTTP request and several the second candidate HTTP request are carried out to fusion treatment, to generate target HTTP request, send to Web server; At response phase, Web server is asked to the target http response returned according to target HTTP, copy some parts, sending to respectively operating side is that corresponding the first browser in operating side and each test lead are corresponding the second browser of test lead.
It should be noted that, in the present embodiment, included operating side, test lead, Distributor and the proxy server of test macro can be deployed in same terminal, or also can be deployed in respectively on different terminals, or also can a part be deployed in a terminal, another part is deployed in another terminal, is deployed in another terminal in a part, and the present embodiment is not particularly limited this.Further, if test lead is all deployed in same terminal, specifically can utilize virtual machine technique to realize, each test lead can be just the example of a virtual machine.
The comparatively preferred deployment way of one is, it is upper that operative end is deployed in terminal A, and it is upper that Distributor and proxy server are deployed in terminal B, and it is terminal N that each test lead is deployed in respectively in different terminals iupper, i is for being more than or equal to 1, and is less than or equal to the integer of n, the quantity that n is test lead.
In the present embodiment, operation behavior on the page to be tested representing at the first browser by operating side Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation, and then, according to described operation behavior, generating run instruction, make described operating side to send test instruction and described operational order to each test lead at least one test lead, like this, described each test lead can be according to described test instruction, on the page described to be tested representing at the second browser, carry out described operational order, only need to use operating personnel of operating side on the browser page to be tested that the first browser represents, manually carry out a test operation, just can drive on other browsers page to be tested that the second browser represents and automatically perform identical test operation by test lead in real time, and the page to be tested representing at different browsers without operating personnel, manually carry out repeatedly identical test operation, simple to operate, and accuracy is high, thereby efficiency and the reliability of test operation are improved.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, and the kind of the second browser does not have restricted number, therefore, can effectively improve the coverage rate of browser in test process.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, therefore, can contrast in real time the operating result of each test operation, thereby realize the object of real-time monitoring.
In addition, adopt technical scheme provided by the invention, be this test starting Service Instance by Distributor, to generate the test instruction of described this test, the test that each test can be corresponding different is indicated, therefore, Distributor can, simultaneously for multiple operating sides provide testing service, can effectively improve the efficiency of test operation.
It should be noted that, for aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.
The structural representation of the test macro that Fig. 2 provides for another embodiment of the present invention, as shown in Figure 2.The test macro of the present embodiment can comprise operating side 21 and at least one test lead 22 1, 22 222 n.Wherein, n is more than or equal to 1 integer.Wherein, described operating side 21, the operation behavior on the page to be tested representing at the first browser for Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation; According to described operation behavior, generating run instruction; And to described at least one test lead 22 1, 22 222 nin each test lead 22 isend test instruction and described operational order wherein, i is for being more than or equal to 1, and is less than or equal to the integer of n; Described each test lead 22 i, for according to described test instruction, on the page described to be tested representing at the second browser, carry out described operational order.
Wherein, the second browser and the first browser, be different browsers; The quantity of the second browser is identical with the quantity of test lead, and the second browser is corresponding one by one with test lead, described each test lead 22 icorresponding the second browser is different browsers.
Be understandable that, so-called different browsers, it can be the different browser moving in same operation system, or can also be the identical browser moving in different operating system, or can also be the different browser moving in different operating system, the present embodiment be particularly limited this.
For example, the second browser is the Firefox browser moving in Windows7 operating system, and the first browser is the Firefox browser moving in Windows8 operating system, and the two is different browsers.
Or, more for example, the second browser is the IE browser moving in Windows7 operating system, and the first browser is the Firefox browser moving in Windows7 operating system, the two is different browsers.
Or, more for example, corresponding second browser of test lead is the IE browser moving in Windows7 operating system, and corresponding the second browser of another test lead is the IE browser moving in Windows8 operating system, the two is different browsers.
It should be noted that, described operating side 21 and described the first browser, can independent operating on first terminal; Or described operating side 21 can also, with SDK (Software Development Kit) (Software Development Kit, SDK) form or card format, be arranged on the inside of described the first browser; The present embodiment is not particularly limited this.
It should be noted that described each test lead 22 iwith corresponding described the second browser, can independent operating in the second terminal; Or described test lead can also, with SDK form or card format, be arranged on the inside of described the second browser; The present embodiment is not particularly limited this.
Be understandable that, the page involved in the present invention, can be the webpage (Web Page) of writing based on HTML, also can be called the Web page.
Like this, operation behavior on the page to be tested representing at the first browser by operating side Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation, and then, according to described operation behavior, generating run instruction, make described operating side to send test instruction and described operational order to each test lead at least one test lead, like this, described each test lead can be according to described test instruction, on the page described to be tested representing at the second browser, carry out described operational order, only need to use operating personnel of operating side on the browser page to be tested that the first browser represents, manually carry out a test operation, just can drive on other browsers page to be tested that the second browser represents and automatically perform identical test operation by test lead in real time, and the page to be tested representing at different browsers without operating personnel, manually carry out repeatedly identical test operation, simple to operate, and accuracy is high, thereby efficiency and the reliability of test operation are improved.
Alternatively, in one of the present embodiment possible implementation, operating side 21 and each test lead 22 ibetween can adopt alternately the mode based on multiple socket (Socket) agreement.For example, the standard Socket agreement based on transmission control protocol (Transmission Control Protocol, TCP).Or, more for example, based on the Web Socket agreement of HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP), to reach the communication mode based on TCP at HTTP Imitating.Like this, can realize between operating side and each test lead, the continual communication connection that has state, thus ensure the reliability of sequential delivery message.
Alternatively, in one of the present embodiment possible implementation, as shown in Figure 3, the test macro that the present embodiment provides can further include Distributor 31.Particularly, Distributor 31 can be the server end that adopts node.js language, java language, C Plus Plus to realize, by port listening mode and operating side 21, each test lead 22 i, communicate.Particularly, between mutual and Distributor and the each test lead between Distributor and operating side 21, can adopt alternately the mode based on multiple socket (Socket) agreement.For example, the standard Socket agreement based on transmission control protocol (Transmission Control Protocol, TCP).Or, more for example, based on the Web Socket agreement of HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP), to reach the communication mode based on TCP at HTTP Imitating.Like this, can realize between Distributor and operating side and Distributor and each test lead between, the continual communication connection that has state, thus ensured the reliability of sequential delivery message.
Correspondingly, described operating side 21, specifically can be for passing through described Distributor, to described each test lead 22 isend test instruction and described operational order.
Further, described operating side 21, can also be further used for sending trigger message to described Distributor 31.Described Distributor 31, can also be further used for according to described trigger message, is this test starting Service Instance, to generate the described test instruction of described this test; Send described test instruction to described operating side 21, to make described user determine described each test lead 22 i.Described operating side 21, can also be further used for sending to described Distributor 31 identification information and described each test lead 22 of described test instruction, the described page to be tested iidentification information.Described Distributor 31, can also be further used for according to described each test lead 22 iidentification information, to described each test lead 22 isend the identification information of described test instruction and the described page to be tested.Described each test lead 22 i, can also be further used for driving described the second browser to represent the described page to be tested.
For example, same operating side 21, no matter carry out operation in the page, still carry out across page operation, within all belonging to the scope of this test, therefore, 31 needs of Distributor are with Service Instance of a test starting, without starting multiple Service Instances, once the instruction of the test in test is all identical.
Like this, be this test starting Service Instance by Distributor, to generate the test instruction of described this test, the test that each test can be corresponding different is indicated, therefore, Distributor can, simultaneously for multiple operating sides provide testing service, can effectively improve the efficiency of test operation.
Alternatively, in one of the present embodiment possible implementation, as shown in Figure 4, the test macro that the present embodiment provides can further include proxy server 41.
Particularly, specifically can be for receiving the first candidate HTTP request, described the first candidate HTTP request, for described the first browser is according to the operating result of described operation behavior, generates; Receive the second candidate HTTP request, described the second candidate HTTP request is described the second browser is carried out described operational order operating result according to described test lead, generates; And according to described the first candidate HTTP request and described the second candidate HTTP request, generate target HTTP request; Send described target HTTP request to Web server; Receive described Web server and ask according to described target HTTP, the target http response of transmission; To described the first browser and described the second browser, send described target http response
Wherein, because the first browser is according to the operating result of its corresponding operating side 21 executable operations instructions, generate and send the first candidate HTTP request, and multiple the second browsers are carried out the operating result of identical operational order in real time according to each self-corresponding test lead, generate and send the second identical candidate HTTP request, for the HTTP request for submitting data to, for example, after a newly-built list, submit to etc., will certainly occur only having a HTTP request to submit to successfully, for example, the first candidate HTTP request or any one the second candidate HTTP request, and other HTTP requests are all submitted to unsuccessfully.Therefore, proxy server 41 need to, according to described the first candidate HTTP request and described the second candidate HTTP request, generate a unique target HTTP request.
Particularly, proxy server 41 specifically can be asked the first candidate HTTP, and each test lead 22 ithe second candidate HTTP request that corresponding the second browser sends, utilizes pre-configured white list to carry out consistency desired result to submitted to data.For example, white list can comprise that part field is as user agent of timestamp, browser (User Agent, UA) etc.Then, described proxy server 41 carries out fusion treatment to the HTTP request by consistency desired result, gives Web server to generate target HTTP request Concurrency, and the HTTP request by consistency desired result is not carried out to alarming processing.
Then, proxy server 41 is after the target http response that further reception Web server asks to return according to described target HTTP, target http response is copied to some parts, send target http response to the operating side 21 by consistency desired result and test lead respectively.
For some simple HTTP requests, for example, do not relate to the HTTP request of the submission of data etc., in the applicable test macro of method of testing that the present embodiment provides, without comprising proxy server 41, operating side 21 and each test lead 22 idirect and Web server communicates respectively.The first browser sends the first candidate HTTP request and receives Web server to Web server and asks first candidate's http response of returning according to the first candidate HTTP, and the second browser sends the second candidate HTTP request and receives Web server to Web server asks second candidate's http response of returning according to the second candidate HTTP.
Therefore, in order to process all HTTP requests, proxy server 41 can configure two kinds of mode of operations, and one is transparent transmission mode, and another kind is fusion mode.
Definition is for some simple HTTP requests, and proxy server 41 adopts transparent transmission mode, processes.In request stage, directly the first candidate HTTP request and several the second candidate HTTP request are sent to respectively to Web server, do not carry out any processing; At response phase, directly Web server is asked to first candidate's http response of returning according to the first candidate HTTP, sending to operating side is corresponding the first browser in operating side, directly Web server is asked to second candidate's http response of returning according to the second candidate HTTP, branch sends to each test lead 22 iit is corresponding the second browser of test lead.
Definition adopts fusion mode for the HTTP request broker server 41 for submitting data to, processes.In request stage, the first candidate HTTP request and several the second candidate HTTP request are carried out to fusion treatment, to generate target HTTP request, send to Web server; At response phase, Web server is asked to the target http response returned according to target HTTP, copy some parts, sending to respectively operating side is corresponding the first browser in operating side and each test lead 22 iit is corresponding the second browser of test lead.
It should be noted that, in the present embodiment, operating side 21, at least one test lead 22 that test macro is included 1, 22 222 n, Distributor 31 and proxy server 41 can be deployed in same terminal, or also can be deployed in respectively on different terminals, or also can a part be deployed in a terminal, another part is deployed in another terminal, be deployed in another terminal in a part, the present embodiment is not particularly limited this.Further, if test lead is all deployed in same terminal, specifically can utilize virtual machine technique to realize, each test lead can be just the example of a virtual machine.
The comparatively preferred deployment way of one is, it is upper that operating side 21 is deployed in terminal A, and it is upper that Distributor 31 and proxy server 41 are deployed in terminal B, each test lead 22 iall be deployed in respectively in different terminals is terminal N iupper, i is for being more than or equal to 1, and is less than or equal to the integer of n, the quantity that n is test lead.
It should be noted that, the function of operating side in embodiment corresponding to Fig. 1, in the test macro that all can be provided by the present embodiment, realize operating side 21; The function of at least one test lead in embodiment corresponding to Fig. 1, at least one test lead 22 in the test macro that all can be provided by the present embodiment 1, 22 222 nrealize; The function of Distributor in embodiment corresponding to Fig. 1, in the test macro that all can be provided by the present embodiment, Distributor 31 is realized; The function of Distributor in embodiment corresponding to Fig. 1, in the test macro that all can be provided by the present embodiment, proxy server 41 is realized.Detailed description can, referring to the related content in embodiment corresponding to Fig. 1, repeat no more herein.
In the present embodiment, operation behavior on the page to be tested representing at the first browser by operating side Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation, and then, according to described operation behavior, generating run instruction, make described operating side to send test instruction and described operational order to each test lead at least one test lead, like this, described each test lead can be according to described test instruction, on the page described to be tested representing at the second browser, carry out described operational order, only need to use operating personnel of operating side on the browser page to be tested that the first browser represents, manually carry out a test operation, just can drive on other browsers page to be tested that the second browser represents and automatically perform identical test operation by test lead in real time, and the page to be tested representing at different browsers without operating personnel, manually carry out repeatedly identical test operation, simple to operate, and accuracy is high, thereby efficiency and the reliability of test operation are improved.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, and the kind of the second browser does not have restricted number, therefore, can effectively improve the coverage rate of browser in test process.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, therefore, can contrast in real time the operating result of each test operation, thereby realize the object of real-time monitoring.
In addition, adopt technical scheme provided by the invention, be this test starting Service Instance by Distributor, to generate the test instruction of described this test, the test that each test can be corresponding different is indicated, therefore, Distributor can, simultaneously for multiple operating sides provide testing service, can effectively improve the efficiency of test operation.
The structural representation of the operating side that Fig. 5 provides for another embodiment of the present invention, as shown in Figure 5.The operating side of the present embodiment can comprise collecting unit 51, generation unit 52 and transmitting element 53.Wherein, collecting unit 51, the operation behavior on the page to be tested representing at the first browser for Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation; Generation unit 52, for according to described operation behavior, generating run instruction; Transmitting element 53, for sending test instruction and described operational order to the each test lead of at least one test lead, so that described each test lead is indicated according to described test, carries out described operational order on the page described to be tested representing at the second browser.
Wherein, the second browser and the first browser, be different browsers; The quantity of the second browser is identical with the quantity of test lead, and the second browser is corresponding one by one with test lead, and corresponding the second browser of described each test lead, is different browsers.
Be understandable that, so-called different browsers, it can be the different browser moving in same operation system, or can also be the identical browser moving in different operating system, or can also be the different browser moving in different operating system, the present embodiment be particularly limited this.
It should be noted that, described operating side and described the first browser, can independent operating on first terminal; Or described operating side can also, with SDK (Software Development Kit) (Software Development Kit, SDK) form or card format, be arranged on the inside of described the first browser; The present embodiment is not particularly limited this.
It should be noted that, described each test lead and corresponding described the second browser, can independent operating in the second terminal; Or described test lead can also, with SDK form or card format, be arranged on the inside of described the second browser; The present embodiment is not particularly limited this.
Alternatively, in one of the present embodiment possible implementation, described transmitting element 53, specifically can be for by Distributor, sends test instruction and described operational order to each test lead at least one test lead.
Alternatively, in one of the present embodiment possible implementation, as shown in Figure 6, the operating side that the present embodiment provides can further include receiving element 61.Wherein, described transmitting element 53, can also be further used for sending trigger message to described Distributor.Described receiving element 61, the described test instruction sending for receiving described Distributor, to make described user determine described each test lead, described test is designated as described Distributor according to described trigger message, for this test starting Service Instance, generate.Correspondingly, described transmitting element 53, can also be further used for sending described test instruction, the identification information of the described page to be tested and the identification information of described each test lead to described Distributor, to make described Distributor according to the identification information of described each test lead, send the identification information of described test instruction and the described page to be tested to described each test lead, to make described each test lead drive described the second browser to represent the described page to be tested.
It should be noted that, the function of operating side in embodiment corresponding to Fig. 1, realize the operating side that the test macro that all can be provided by the present embodiment provides.Detailed description can, referring to the related content in embodiment corresponding to Fig. 1, repeat no more herein.
Like this, operation behavior on the page to be tested representing at the first browser by collecting unit Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation, and then, by generation unit according to described operation behavior, generating run instruction, make transmitting element to send test instruction and described operational order to each test lead at least one test lead, like this, described each test lead can be according to described test instruction, on the page described to be tested representing at the second browser, carry out described operational order, only need to use operating personnel of operating side on the browser page to be tested that the first browser represents, manually carry out a test operation, just can drive on other browsers page to be tested that the second browser represents and automatically perform identical test operation by test lead in real time, and the page to be tested representing at different browsers without operating personnel, manually carry out repeatedly identical test operation, simple to operate, and accuracy is high, thereby efficiency and the reliability of test operation are improved.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, and the kind of the second browser does not have restricted number, therefore, can effectively improve the coverage rate of browser in test process.
In addition, adopt technical scheme provided by the invention, owing to driving on other browsers page to be tested that the second browser represents and automatically performing identical test operation by test lead in real time, therefore, can contrast in real time the operating result of each test operation, thereby realize the object of real-time monitoring.
In addition, adopt technical scheme provided by the invention, be this test starting Service Instance by Distributor, to generate the test instruction of described this test, the test that each test can be corresponding different is indicated, therefore, Distributor can, simultaneously for multiple operating sides provide testing service, can effectively improve the efficiency of test operation.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or page assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
The integrated unit that the above-mentioned form with SFU software functional unit realizes, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) or processor (processor) carry out the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, ROM), the various media that can be program code stored such as random access memory (Random Access Memory, RAM), magnetic disc or CD.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (17)

1. a method of testing, is characterized in that, comprising:
Operation behavior on the page to be tested that operating side Gather and input equipment represents at the first browser, described operation behavior comprises the page elements information of operation and the behavioural information of operation;
Described operating side is according to described operation behavior, generating run instruction;
Described operating side sends test instruction and described operational order to each test lead at least one test lead, so that described each test lead is indicated according to described test, on the page described to be tested representing, carries out described operational order at the second browser.
2. method according to claim 1, is characterized in that, described operating side sends test instruction and described operational order to each test lead at least one test lead, comprising:
Described operating side is by Distributor, sends test instruction and described operational order to each test lead at least one test lead.
3. method according to claim 2, is characterized in that, described operating side is by Distributor, before sending test instruction and described operational order, also comprises to each test lead at least one test lead:
Described operating side sends trigger message to described Distributor;
Described operating side receives the described test instruction that described Distributor sends, and to make described user determine described each test lead, described test is designated as described Distributor according to described trigger message, is this test starting Service Instance, generates;
Described operating side sends described test instruction, the identification information of the described page to be tested and the identification information of described each test lead to described Distributor, to make described Distributor according to the identification information of described each test lead, send the identification information of described test instruction and the described page to be tested to described each test lead, to make described each test lead drive described the second browser to represent the described page to be tested.
4. method according to claim 1, is characterized in that, described method also comprises:
Proxy server receives the first candidate HTTP request, and described the first candidate HTTP request, for described the first browser is according to the operating result of described operation behavior, generates;
Described proxy server receives the second candidate HTTP request, and described the second candidate HTTP request is described the second browser is carried out described operational order operating result according to described test lead, generates;
Described proxy server sends described the first candidate HTTP request to Web server, and receives described Web server according to described the first candidate HTTP request, first candidate's http response of transmission; Described proxy server sends described the second candidate HTTP request to Web server, and receives described Web server according to described the second candidate HTTP request, second candidate's http response of transmission; Described proxy server sends described first candidate's http response to described the first browser, sends described second candidate's http response to described the second browser; Or
Described proxy server is according to described the first candidate HTTP request and described the second candidate HTTP request, generate target HTTP request, send described target HTTP request to Web server, and receive described Web server and ask according to described target HTTP, the target http response of transmission; Described proxy server, to described the first browser and described the second browser, sends described target http response.
5. according to the method described in the arbitrary claim of claim 1~4, it is characterized in that, described operating side and described the first browser, independent operating is on first terminal; Described operating side, with SDK form or card format, is arranged on the inside of described the first browser.
6. according to the method described in the arbitrary claim of claim 1~4, it is characterized in that, described each test lead and corresponding described the second browser, independent operating is in the second terminal; Described test lead, with SDK form or card format, is arranged on the inside of described the second browser.
7. a test macro, is characterized in that, comprises operating side and at least one test lead; Wherein,
Described operating side, the operation behavior on the page to be tested representing at the first browser for Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation; According to described operation behavior, generating run instruction; And send test instruction and described operational order to each test lead in described at least one test lead;
Described each test lead, for according to described test instruction, carries out described operational order on the page described to be tested representing at the second browser.
8. system according to claim 7, is characterized in that, described system also comprises Distributor; Described operating side, specifically for
By described Distributor, send test instruction and described operational order to described each test lead.
9. system according to claim 8, is characterized in that,
Described operating side, also for sending trigger message to described Distributor;
Described Distributor,, for according to described trigger message, is also this test starting Service Instance, to generate the described test instruction of described this test; Send described test instruction to described operating side, to make described user determine described each test lead;
Described operating side, also for sending described test instruction, the identification information of the described page to be tested and the identification information of described each test lead to described Distributor;
Described Distributor, also, for according to the identification information of described each test lead, sends the identification information of described test instruction and the described page to be tested to described each test lead;
Described each test lead, also for driving described the second browser to represent the described page to be tested.
10. system according to claim 7, is characterized in that, described system also comprises proxy server, for
Receive the first candidate HTTP request, described the first candidate HTTP request, for described the first browser is according to the operating result of described operation behavior, generates; Receive the second candidate HTTP request, described the second candidate HTTP request is described the second browser is carried out described operational order operating result according to described test lead, generates;
Send described the first candidate HTTP request to Web server, and receive described Web server according to described the first candidate HTTP request, first candidate's http response of transmission; Send described the second candidate HTTP request to Web server, and receive described Web server according to described the second candidate HTTP request, second candidate's http response of transmission; Send described first candidate's http response to described the first browser, send described second candidate's http response to described the second browser; Or
According to described the first candidate HTTP request and described the second candidate HTTP request, generate target HTTP request; Send described target HTTP request to Web server; Receive described Web server and ask according to described target HTTP, the target http response of transmission; To described the first browser and described the second browser, send described target http response.
11. according to the system described in the arbitrary claim of claim 7~10, it is characterized in that, and described operating side and described the first browser, independent operating is on first terminal; Described operating side, with SDK form or card format, is arranged on the inside of described the first browser.
12. according to the system described in the arbitrary claim of claim 7~10, it is characterized in that, and described each test lead and corresponding described the second browser, independent operating is in the second terminal; Described test lead, with SDK form or card format, is arranged on the inside of described the second browser.
13. 1 kinds of operating sides, is characterized in that,
Collecting unit, the operation behavior on the page to be tested representing at the first browser for Gather and input equipment, described operation behavior comprises the page elements information of operation and the behavioural information of operation;
Generation unit, for according to described operation behavior, generating run instruction;
Transmitting element, for sending test instruction and described operational order to the each test lead of at least one test lead, so that described each test lead is indicated according to described test, carries out described operational order on the page described to be tested representing at the second browser.
14. operating sides according to claim 13, is characterized in that, described transmitting element, specifically for
By Distributor, send test instruction and described operational order to each test lead at least one test lead.
15. operating sides according to claim 14, is characterized in that, described operating side also comprises receiving element; Wherein,
Described transmitting element, also for sending trigger message to described Distributor;
Described receiving element, the described test instruction sending for receiving described Distributor, to make described user determine described each test lead, described test is designated as described Distributor according to described trigger message, for this test starting Service Instance, generate;
Described transmitting element, also for send described test instruction, the identification information of the described page to be tested and the identification information of described each test lead to described Distributor, to make described Distributor according to the identification information of described each test lead, send the identification information of described test instruction and the described page to be tested to described each test lead, to make described each test lead drive described the second browser to represent the described page to be tested.
16. according to the operating side described in the arbitrary claim of claim 13~15, it is characterized in that, and described operating side and described the first browser, independent operating is on first terminal; Described operating side, with SDK form or card format, is arranged on the inside of described the first browser.
17. according to the operating side described in the arbitrary claim of claim 13~15, it is characterized in that, and described each test lead and corresponding described the second browser, independent operating is in the second terminal; Described test lead, with SDK form or card format, is arranged on the inside of described the second browser.
CN201410301283.3A 2014-06-27 2014-06-27 Test method and system and operation terminal Active CN104102578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410301283.3A CN104102578B (en) 2014-06-27 2014-06-27 Test method and system and operation terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410301283.3A CN104102578B (en) 2014-06-27 2014-06-27 Test method and system and operation terminal

Publications (2)

Publication Number Publication Date
CN104102578A true CN104102578A (en) 2014-10-15
CN104102578B CN104102578B (en) 2017-01-25

Family

ID=51670747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410301283.3A Active CN104102578B (en) 2014-06-27 2014-06-27 Test method and system and operation terminal

Country Status (1)

Country Link
CN (1) CN104102578B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886489A (en) * 2015-12-16 2017-06-23 百度在线网络技术(北京)有限公司 Method and apparatus for being debugged to Mobile solution
CN106970870A (en) * 2016-01-14 2017-07-21 腾讯科技(北京)有限公司 Webpage test platform, webpage method of testing and webpage test system
CN107358407A (en) * 2017-07-11 2017-11-17 明珠家具股份有限公司 A kind of data processing method and system
CN109189344A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of logical volume management method, system, equipment and computer readable storage medium
CN110262931A (en) * 2019-05-31 2019-09-20 深圳市杰科数码有限公司 A kind of keyboard test method and keyboard test computer
CN110362488A (en) * 2019-07-12 2019-10-22 北京字节跳动网络技术有限公司 A kind of page test method, device, electronic equipment and storage medium
CN112148254A (en) * 2019-06-27 2020-12-29 Sap欧洲公司 Application evaluation system for achieving interface design consistency between microservices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100568808C (en) * 2006-10-12 2009-12-09 国际商业机器公司 Method and apparatus to a plurality of webserver parallel work-flows
CN102033803B (en) * 2009-09-29 2014-07-09 国际商业机器公司 Method and device for testing web application across browsers
CN102999424B (en) * 2012-11-27 2015-06-17 广东欧珀移动通信有限公司 Parallel remote automated testing method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886489A (en) * 2015-12-16 2017-06-23 百度在线网络技术(北京)有限公司 Method and apparatus for being debugged to Mobile solution
CN106970870A (en) * 2016-01-14 2017-07-21 腾讯科技(北京)有限公司 Webpage test platform, webpage method of testing and webpage test system
CN107358407A (en) * 2017-07-11 2017-11-17 明珠家具股份有限公司 A kind of data processing method and system
CN109189344A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of logical volume management method, system, equipment and computer readable storage medium
CN110262931A (en) * 2019-05-31 2019-09-20 深圳市杰科数码有限公司 A kind of keyboard test method and keyboard test computer
CN110262931B (en) * 2019-05-31 2023-02-28 深圳市杰科数码有限公司 Keyboard testing method and keyboard testing computer
CN112148254A (en) * 2019-06-27 2020-12-29 Sap欧洲公司 Application evaluation system for achieving interface design consistency between microservices
CN112148254B (en) * 2019-06-27 2024-04-19 Sap欧洲公司 Application evaluation system for achieving consistency of interface design between micro services
CN110362488A (en) * 2019-07-12 2019-10-22 北京字节跳动网络技术有限公司 A kind of page test method, device, electronic equipment and storage medium
CN110362488B (en) * 2019-07-12 2023-08-08 北京字节跳动网络技术有限公司 Page testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104102578B (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN104102578A (en) Test method and system and operation terminal
CN107402880B (en) Test method and electronic equipment
CN106326104B (en) Terminal control testing method and device
CN107423048B (en) Data collection method, device, medium and computing equipment
CN107688529B (en) Component debugging method and device
US9292413B2 (en) Setting breakpoints in a code debugger used with a GUI object
CN104156213A (en) Android application running method and device
US10084637B2 (en) Automatic task tracking
US11245601B2 (en) Automated integrated test system and method thereof
CN108111364B (en) Service system testing method and device
CN110795353B (en) Quick application debugging method, device, equipment and storage medium
CN104598267B (en) The tune of application plays method and device
CN109684571A (en) A kind of collecting method and device, storage medium
CN114036439A (en) Website building method, device, medium and electronic equipment
CN114490383A (en) Remote debugging system, remote debugging method, computing device and readable medium
CN107844486B (en) Method and system for analyzing webpage problems for client
CN112988588B (en) Client software debugging method and device, storage medium and electronic equipment
CN106708717B (en) A kind of exploitation adjustment method and device
De Boeck et al. High-level modeling of multimodal interaction techniques using nimmit
CN106383765A (en) Data monitoring method and apparatus
Maxwell et al. Developing ContemporaryWeb-Based Interaction Logging Infrastructure: The Design and Challenges of LogUI.
CN112131092A (en) Page debugging method and device
EP3991047B1 (en) Chat bot diagnostic visualization
CN111162960B (en) Method and server for starting debugging panel
CN111338609B (en) Information acquisition method, device, storage medium and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant